From 824ae68825322edd6293f0973820174655e092bd Mon Sep 17 00:00:00 2001 From: Connor Smith Date: Sat, 6 Jan 2024 01:43:10 +1100 Subject: [PATCH] Update OC channel edit logic --- dictator/cogs/system.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/dictator/cogs/system.py b/dictator/cogs/system.py index c4b2bad..d6bdfcf 100644 --- a/dictator/cogs/system.py +++ b/dictator/cogs/system.py @@ -6,33 +6,21 @@ from get_version import get_dictator_version import random -import logging class System(commands.Cog): def __init__(self, dictator: commands.Bot) -> None: self.dictator = dictator - logging.basicConfig(level=logging.INFO) @commands.Cog.listener() async def on_message(self, message: discord.Message): if not message.channel.id == OC_CHANNEL_ID: return - - logging.info(f"Message sent in OC channel ({message.id})") if not message.webhook_id: return - - logging.info(f"Message sent by webhook ({message.id})") - if message.embeds: - await message.edit(suppress=True) - logging.info(f"Message edited ({message.id})") - return - - logging.info(f"Message not edited ({message.id})") - + await message.edit(suppress=True) @app_commands.command() async def ping(self, interaction: discord.Interaction) -> None: