-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add counting punishment #257
base: master
Are you sure you want to change the base?
Conversation
Hi Gran, A couple notes on this that I'd like you to knock out before merging:
Once these are done I'll re-evaluate as having changed the indentation of every line, it makes it hard to view the actual change log. |
There's a few ways you could do date times in mongo, personally I'd store the timestamp their punishment expires i.e. via System.getCurrentTimeMillis() and add |
No I get that part, I meant like how to check, like do I set something up that constantly checks the time? Thats the part I'm confused on |
I mean I could get the information from mongo on start and make schedulers based on that, so if the bot restarts the schedulers will go back, or I could have a scheduler check every minute or two |
What are the schedulers for? In my comment I meant dissolve the role entirely, and just deny valid counts manually in the listener if their time hasn't passed. |
Oh yeah that makes sense I was thinking of something else |
better? I changed to use mongo, cant figure out the indent thing though |
that should be good now, idk if the indents are still messed up or not though |
Make sure to change the .getRoleById() to a new role you make that doesn't have send messages perm in #counting
made from suggestion