feat: add qotw reminder - #15
Conversation
added some types, provisional database global keyvaluepair, the qotw reminder and manager Signed-off-by: stifskere <stifskere@gmail.com>
There was a problem hiding this comment.
It would be better if this were more modular and could support multiple scheduled events using an API similar to the command and event listener loader, with files exporting objects containing a cron formatted time property and a handler function. It shouldn't be too hard to combine the listener code and the current scheduling code to do this. Additionally, you can use something like cron-scheduler to help with parsing and scheduling the scheduled events.
There are two other, smaller things: first of all, while djs-fsrouter uses oop, we are trying to avoid it here. Luckily, I don't think it will be necessary with the new API. The other thing is that it might be better to just recreate this branch and create a new pull request so you can clean up the git tree.
Once these things are finished, I will review more of the minutiae.
closes #7;
Added the commands
1-7:1-24:0-59as ofday-of-week:hour:minuteAdded the listeners
qotwManagerAdded the schemas
Added the types
IntRange<F, T>: it lets you define a type for a range of numbers from F to T including F and TQotwReminderManager: used statically contains all the methods for the reminder command and bot managingQotwDate: interface for the date QOTW date format.Notes
exported the client in an exports file for the sake of access in other files.
Requires revision