Fixed bug with resetqueue command

This commit is contained in:
BarsTiger
2023-03-13 14:45:40 +02:00
parent 1a798260d7
commit 2fad159f2e

View File

@@ -11,7 +11,7 @@ async def resetqueue(message: types.Message, is_command: bool = True):
'It is only for this bot instance maintainers and admins') 'It is only for this bot instance maintainers and admins')
return return
if is_command and message.text.lower() != 'reset': if not is_command and message.text.lower() != 'reset':
return return
db[DBTables.queue]['n'] = 0 db[DBTables.queue]['n'] = 0