Skip to content

Commit

Permalink
quick fix for minimum account age checker
Browse files Browse the repository at this point in the history
  • Loading branch information
PenguinBoi12 committed Sep 26, 2024
1 parent af3432a commit 05edae9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/extensions/moderation_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
5 changes: 5 additions & 0 deletions bot/helpers/log_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 05edae9

Please sign in to comment.