sylphia-nox / Discord-Bot

Discord Bot to coordinate Destiny 2 raids and provide additional utilities for users to assist them in Destiny 2. This project is written in Python and makes use of MySQL, Discord.py, and the Bungie APIs
3 stars 0 forks source link

Error handling added #25

Closed sylphia-nox closed 4 years ago

sylphia-nox commented 4 years ago

Added error handling that messages the user (for most errors) and also DMs the bot admin (as defined in the bot_admin_code variable) with the error message and timestamp. This will allow further error checking to be added in the future for bugs.

Added type hinting to commands to try to prevent bad input (users will receive a message indicating they gave the wrong arguments)

Also added code to have commands (and the error handlers) delete command messages before concluding to try to keep channels cleaner.