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: