From a386e16cc97808b391474a48a7217cfb1e13f5d6 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 2 Jul 2020 03:34:46 +0100 Subject: [PATCH] Do nothing if the person dm's the bot --- main.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/main.py b/main.py index 4a410d40..761a045c 100644 --- a/main.py +++ b/main.py @@ -99,13 +99,7 @@ async def on_message(message): await channel.send(message.content) else: - # Sends error message if the person is not the owner - message = await message.channel.send("Sorry, you don't have permission to echo dms!") - - # Let the user read the message for 2.5 seconds - await asyncio.sleep(2.5) - # Delete the message - await message.delete() + return await client.process_commands(message)