From 05edae9e356faab50a74e0d922a2d7d269c20519 Mon Sep 17 00:00:00 2001 From: penguinboi Date: Thu, 26 Sep 2024 16:42:25 -0400 Subject: [PATCH] quick fix for minimum account age checker --- bot/extensions/moderation_cog.py | 4 ++-- bot/helpers/log_helper.py | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bot/extensions/moderation_cog.py b/bot/extensions/moderation_cog.py index 81d0eb2..3e551b0 100644 --- a/bot/extensions/moderation_cog.py +++ b/bot/extensions/moderation_cog.py @@ -3,7 +3,7 @@ from logging import info from discord import Message, Member, Reaction from discord.ext.commands import Cog, has_permissions, hybrid_command, Context -from bot.helpers.log_helper import danger, info +from bot.helpers.log_helper import danger, notice from datetime import datetime from emoji import demojize from bot.models.channel import Channel @@ -63,7 +63,7 @@ async def on_reaction_add(self, reaction: Reaction, member: Member) -> None: # Grace also reacts and log the reaction because some people remove their reaction afterward await message.add_reaction(reaction) - log = info("HELP REACTION", f"{member.mention} reacted to {message.jump_url} with {reaction.emoji}") + log = notice("HELP REACTION", f"{member.mention} reacted to {message.jump_url} with {reaction.emoji}") await log.send(self.moderation_channel or message.channel) @Cog.listener() diff --git a/bot/helpers/log_helper.py b/bot/helpers/log_helper.py index d50d533..bc73a73 100644 --- a/bot/helpers/log_helper.py +++ b/bot/helpers/log_helper.py @@ -3,9 +3,14 @@ def info(title, description): + # Will be deprected in favor of notice return LogHelper(title, description, "info") +def notice(title, description): + return LogHelper(title, description, "info") + + def warning(title, description): return LogHelper(title, description, "warning")