I need a command that takes this api https://blockchain.info/q/24hrprice, divide that number into 1000 and multiply it by the number of the command
example:
!calculate 20 —>> (https://blockchain.info/q/24hrprice)/1000*20
then show the result
I need a command that takes this api https://blockchain.info/q/24hrprice, divide that number into 1000 and multiply it by the number of the command
example:
!calculate 20 —>> (https://blockchain.info/q/24hrprice)/1000*20
then show the result
Try:
$(eval $(urlfetch https://blockchain.info/q/24hrprice)/1000*20)
This should do all the math
nono, 20 is the random number that people define when launching the command
!calculate “x” (https://blockchain.info/q/24hrprice)/1000*“x”
Sorry my bad english
i solved it
$(urlfetch http://twitch.center/customapi/math?expr=$(querystring)/1000*$(urlfetch https://blockchain.info/q/24hrprice))
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.