Answer the question
In order to leave comments, you need to log in
How to make a timer in the mute command?
How to make a mut command timer like this
!mute @test 13m test
Answer the question
In order to leave comments, you need to log in
Take and do. What exactly is the question? What exactly doesn't work?
Dumb frontal option - use a simple call chain
# выдать мьют
await asyncio.sleep(время) # подождать
# снять мьют
in the !mute command handler. But the problem is that if the bot is restarted while waiting, it will forget about this timer - and the user will remain muted. In addition, it will be problematic to manage the list of muted ones. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question