12brendan3 / UC-Esports-Bot

A bot for the University of Cincinnati Esports Discord server. Written using discord.js.
MIT License
3 stars 0 forks source link

Handle errors more elegantly #42

Closed 12brendan3 closed 2 years ago

12brendan3 commented 3 years ago

Currently there are a number of spots where errors go unhandled when they should be. Fetching the weather can throw an error and isn't handled. There seems to be error when interacting with the Discord API here and there, we may want to handle that as well. A full test on all commands should also be done to potentially find more spots.

Maybe even just look over all the code. This could probably be done when #39 is being taken care of since we'll have to look over all the code for that anyway.

12brendan3 commented 2 years ago

This issue has been somewhat taken care of by the upgrade to v13, but is still something that should be actively taken care of if any issues arise.