Basically, I did it with a function that wraps the command handlers like moderatorOnly but called needsDatabase and it catches gracefully whether the database has been correctly initialized in db init, and prevents to command to be executed if it isn't the case.
This idea is suggested in #8
Basically, I did it with a function that wraps the command handlers like
moderatorOnly
but calledneedsDatabase
and it catches gracefully whether the database has been correctly initialized indb
init, and prevents to command to be executed if it isn't the case.