Fix command parsing
This commit is contained in:
parent
fa97d3a049
commit
a43096b84c
1 changed files with 4 additions and 3 deletions
|
|
@ -261,6 +261,10 @@ class Bot:
|
|||
delayed_delete[message.id] = message
|
||||
continue
|
||||
|
||||
if self._parse_command(message):
|
||||
immediate_delete[message.id] = message
|
||||
continue
|
||||
|
||||
if init_message_found:
|
||||
self.logger.debug('Marking message for immediate deletion (init found): %s', message)
|
||||
immediate_delete[message.id] = message
|
||||
|
|
@ -310,9 +314,6 @@ class Bot:
|
|||
init_message_found = True
|
||||
continue
|
||||
|
||||
if self._parse_command(message):
|
||||
continue
|
||||
|
||||
self.logger.debug('Reading attachment')
|
||||
attachment = message.attachments[0]
|
||||
if attachment.size > self.MAX_DOWNLOAD_SIZE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue