odsum / TinyChatBot

BuddyBot - TinyChat Moderator/Room Helper Bot
Other
13 stars 6 forks source link

Fixes and improves !wea #11

Closed guicaulada closed 5 years ago

guicaulada commented 6 years ago

Beforehand it didn't access the ['json'] parameter of the response so it always caught a KeyError, now it access that parameter to get the JSON data from the response of the request and returns the result. I also improved the weather API URL to get the weather data of the moment the command was typed instead of forecast, so it can give real time information about the weather in Celsius and Fahrenheit with humidity. The message is usually 2 lines long.

odsum commented 6 years ago

I can't figure out how to allow this commit - anyone?