diff --git a/app/dragon-bot.py b/app/dragon-bot.py index 89a92c5f..8e93ee15 100644 --- a/app/dragon-bot.py +++ b/app/dragon-bot.py @@ -169,7 +169,7 @@ async def on_message(message): except ValueError: # If they dont enter a number, show them an error and return out of the function await client.send_message(message.channel, "You need to give me a number, you entered {}".format(message.content.split()[1])) - return + return await client.purge_from(message.channel, limit=num, check=is_me) # await client.send_message(message.channel, 'Deleted {} message(s)'.format(len(deleted)))