How to make a nightbot command that convert a given number of Thai baht to Euro
Like !baht 25000 and then the nightbot shows that in Euro.
$(urlfetch json h t t p s://api.wolframalpha.com/v2/query?input=$(querystring)&includepodid=Result&format=plaintext&output=json&appid=xxxxxx-xxxxxxxxxx)
That is how it looks like now.
What it should look like ?
I have no clue, sorry I am new to this !
Edit: OK, I tried that and when I type in !baht 25000 into the chat nothing happens
Try this:
$(urlfetch json https://api.wolframalpha.com/v2/query?input=thb%20$(querystring)%20eur&includepodid=Result&format=plaintext&output=json&appid=YOURAPPIDHERE)
Or this:
$(urlfetch json https://api.wolframalpha.com/v2/query?input=thb $(querystring) eur&includepodid=Result&format=plaintext&output=json&appid=YOURAPPIDHERE)
And make sure you set up the alias properly.
Didn't find your answer? The community is on Discord.
Ask on Discord