-
Notifications
You must be signed in to change notification settings - Fork 14
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
Remind command #75
Comments
@Ramsfield @Axanimander @CodeMastr3 if any of you have something to add, please do. I'll be implementing this next week, and time willing, over the next few days. |
By bot's message do you mean the message that triggered the bot to remember or will the bot actually reply something along the lines of "Reminding in blank" Only a couple of things I have questions about. Will this basically have a little database stored that it checks everytime it boots up if it goes down? |
The latter.
That's the general idea. We can just store a JSON reminder file server-side, unless you think there's a better solution.
My thought was to perhaps use a timer library and have the command spin up a separate thread. If the bot shuts down, it reads the reminder file and spins up a thread for each reminder. On that note, we'll also need some way to delete reminders.
My thought was to send it in the server channel that the reminder was created in. |
Well I hope you draw inspiration from the watched message variable and the add message command in the roles cog |
We currently have a JSON nrdb that we should leverage to perform this. Since this is non-performance demanding (minutes/hours should be fine, not seconds), we should store in the JSON dict and have a job run every 5-10 minutes that will check the DB for reminders to occur. Before this actually gets developed, I would love to see what the schema for this looks like. |
!remind
: Remind me about something important.Initial feature set:
When someone posts a message, say
!remind
with a specified time. The bot will store that user's @ handle along with the original message link. Additional users can react to the bot's message (which will present a '⏰' reaction) to be added to the reminder. When the specified time is reached, the bot pings everyone who wanted to be reminded.The text was updated successfully, but these errors were encountered: