A variety of utility cogs and fun cogs including Hockey information from the NHL, badge creation from discord user information, starboard for use on Redbot, twitch follow notifications and more.
MIT License
168
stars
119
forks
source link
[weather] API key instructions and error handling #306
This PR makes two corrections to the weather cog API key instructions and improves API key error handling. The patch has been tested on my dev bot instance running V3/develop branch both with an invalid key and a valid key with a One Call subscription.
the name of the API key is openweathermap, not openweather; fixed in the [p]weather set creds instructions
One Call subscription is now needed for the onecall endpoint to work; fixed by this amendment to the instructions:
6. go to https://home.openweathermap.org/subscriptions and Subscribe to the Base plan
when calling any endpoint does not result in 200 status (e.g. 401 due to a missing One Call subscription), the error text is passed back to the user, e.g.
This PR makes two corrections to the
weather
cog API key instructions and improves API key error handling. The patch has been tested on my dev bot instance running V3/develop branch both with an invalid key and a valid key with a One Call subscription.openweathermap
, notopenweather
; fixed in the[p]weather set creds
instructionsonecall
endpoint to work; fixed by this amendment to the instructions: