TeamNovaSoft / discord-bot

Un bot de discord para automatizar algunas cosas en nuestros servidores
MIT License
2 stars 0 forks source link

Improve error handling on the bot #31

Open heliomar-pena opened 5 days ago

heliomar-pena commented 5 days ago

Explanation

There are many places where a console.log() is used instead of send the error to the user, this can cause silent errors and user would not know that he should retry the command. However, there are places where console.log() is the unique option, like when bot is initializing, and in those cases is ok to leave only console logs to let the host of the bot to know what is the error.

We have not a consistent way to handle errors on the bot. Would be great to have an easy way to report an error, that end in the same way for the most of cases. I think we should consider two cases:

  1. When we can send a replication to the user
  2. When we can't send a replication to the user

My proposals are:

When we can send a replication to the user

When we can't send a replication to the user

Checklist

This issue can be closed when the following tasks are complete: