From 64b3cea7a0c8d9716617d09338cab9cc7ae718b6 Mon Sep 17 00:00:00 2001 From: git-bruh Date: Sun, 3 Jan 2021 14:06:20 +0530 Subject: [PATCH] dont send empty message (embed) --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index d6f127f..000358b 100644 --- a/main.py +++ b/main.py @@ -175,7 +175,8 @@ class DiscordClient(discord.ext.commands.Bot): async def on_message(self, message): await self.process_commands(message) - if self.to_return(message.channel.id, message.author): + if self.to_return(message.channel.id, message.author) \ + or not message.content: return content = await self.process_message(message)