Lichess4545 / Chesster

Chesster Moderator Bot for Lichess45+45
28 stars 22 forks source link

Clean up command handlers #395

Open mathgeek opened 2 years ago

mathgeek commented 2 years ago

Decide how to handle command callback typing. Currently it's (bot, message) => void with most of the handlers actually returning a Promise or Promise. Should we bubble up the promises? Go through and explicitly type them as well.

https://github.com/Lichess4545/Chesster/pull/388#discussion_r744190381