Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error trapping from bot's perspective #42

Open
DWMagus opened this issue Jun 5, 2023 · 0 comments
Open

Add error trapping from bot's perspective #42

DWMagus opened this issue Jun 5, 2023 · 0 comments
Labels
feature request New feature or request

Comments

@DWMagus
Copy link
Collaborator

DWMagus commented Jun 5, 2023

Add try/catch around whenever the bot tries to send something to the API. If it except's, change response emoji to that of a red x or the 'no entry' sign to provide feedback. Possibly have the bot respond with "API down" or something, or even log to console.

Might also be worthwhile to move emoji response to another function so that if there's an error you can simply call "error response" and it'll clear green flag reacts and change them.

@DWMagus DWMagus added the feature request New feature or request label Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant