How would you go on keeping track of the time after someone said a command? #6737
Unanswered
sirquackiii
asked this question in
Q&A
Replies: 2 comments
-
If you want to sleep, you could use |
Beta Was this translation helpful? Give feedback.
0 replies
-
You could save the latest timestamp. If the timedelta between now and the latest daily timestamp is smaller than 1 you can perform the action. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So, I'm working on a simple economy discord bot, and for the "daily" command, where you get your daily amount of coins, I need a way to check if someone has already gotten their daily coins. I can obviously do this with
time.sleep(x)
, but that would stop the whole program from listening to commands. How can I keep track of time while still having commands be useable?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions