F
F
fodiche2021-09-26 17:53:50
Python
fodiche, 2021-09-26 17:53:50

How to make the command not be used for 24 hours?

how to make it so that when a person writes a command, money is credited to him, but if during the day he writes the same command, then nothing will happen, and after 24 hours the command will be available again

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-09-26
@fodich

Damn, did you use the search? There are a lot of such questions on this site, for a variety of messengers. And just in the same wording as yours.
For each user, store the last date and time the command was entered. At the next input, check when the last input was, and whether a day has passed since then.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question