Weather command

Asked Dec 18, 2021·7 replies·Last activity 4 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hi,
I'm trying to add a weather command for my Twitch channel and wondered if i've done something wrong as nothing comes up in chat when I type !weather city name
Thanks

Screenshot_2021-12-18_at_09.56.12.png

7 replies

Hey @Frisky Whale!

It's $(query), not $query).

Thanks, i just amended that but when I type !weather rome (for example) in the chat room on my Twitch channel nothing happens.
Any ideas?
Do I need an API URL somewhere also or should the command in the screenshot be sufficient?

Screenshot_2021-12-18_at_16.11.41.png

Hi @Frisky Whale, first make sure the Nightbot isn't banned in your channel. I mean, Nightbot must have permission to send message in the chat.

In case that doesn't work. Try this (similar to weather command):

!addcom -cd=5 !weather $(urlfetch https://api.scorpstuff.com/forecast.php?units=metric&city=$(querystring))

Regards

Hi,
Thanks very much for your reply.
I have added that command but in chat nothing is still happening, though you can see that Nightbot currently isn't banned and is also a mod on the channel just for good measure..do you have any other suggestions at all? Thanks in advance.

Screenshot_2021-12-20_at_19.20.14.png

Hi @Frisky Whale

Well, that's not it should be done. You just need to type:

$(urlfetch https://api.scorpstuff.com/forecast.php?units=metric&city=$(querystring))

in Message.

Incase you are adding command from the Twitch. Then you need to type (on chat).

!addcom -cd=5 !weather $(urlfetch https://api.scorpstuff.com/forecast.php?units=metric&city=$(querystring))

Also, I think that's not should be the case. Consider having a look at. https://discord.com/channels/229471495087194112/1534597676505497683

Regards

Didn't find your answer? The community is on Discord.

Ask on Discord