jamiew / helium-discord-bot

Helium hotspot stats & leaderboards for your Discord server
13 stars 3 forks source link

Incorrect input is not properly detected/rejected in the hotspot activity command. #35

Open ch40s opened 2 years ago

ch40s commented 2 years ago

hotspot activity A B C : throws an error as expected, however the following command will return an empty table with no results, instead of an error:

hotspot activity A
B
C

We should find the best way to detect and reject incorrect input however this also has to do with how the API behaves. For example, if the HTTP status code is 404 the bot should throw an error without trying to parse anything. However the API won't respond with 404, but with 200, when looking for activity of nonexistent hotspots.