R
R
Roman9212021-05-10 18:54:18
Python
Roman921, 2021-05-10 18:54:18

How can I make the user who used the command be able to reuse it only after 10 minutes?

How can I make the user who used the command be able to reuse it only after 10 minutes?

@client.command(aliases = ['race', 'гонка'])
async def __race(ctx):

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Ferbines, 2021-05-10
@Ferbines

https://realpython.com/python-sleep/

M
Maxim Nevzorov, 2021-05-11
@fixator10

https://discordpy.readthedocs.io/en/stable/ext/com...

@commands.cooldown(1, 600, type=commands.BucketType.member)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question