From b69c8e07f162daa43921c7515b01ebbae4ac7d5d Mon Sep 17 00:00:00 2001 From: Lilac-Rose Date: Thu, 16 Oct 2025 20:33:19 +0200 Subject: [PATCH] Added meow command --- commands/meow.py | 14 ++++++++++++++ moderation/logger.py | 5 +---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 commands/meow.py diff --git a/commands/meow.py b/commands/meow.py new file mode 100644 index 0000000..54bd95c --- /dev/null +++ b/commands/meow.py @@ -0,0 +1,14 @@ +import discord +from discord.ext import commands +from discord import app_commands + +class Ping(commands.Cog): + def __init__(self, bot: commands.Bot): + self.bot = bot + + @app_commands.command(name="meow") + async def ping(self, interaction: discord.Interaction): + await interaction.response.send_message("Meowwwww~") + +async def setup(bot: commands.Bot): + await bot.add_cog(Ping(bot)) \ No newline at end of file diff --git a/moderation/logger.py b/moderation/logger.py index 401d087..76e3a55 100644 --- a/moderation/logger.py +++ b/moderation/logger.py @@ -430,12 +430,9 @@ class Logger(commands.Cog): await self.send_log(role.guild.id, "role_delete", embed) - async def log_moderation_action(self, guild_id: int, action_type: str, user: discord.User, - moderator: discord.User, reason: Optional[str] = None, - duration: Optional[str] = None): + async def log_moderation_action(self, guild_id: int, action_type: str, user: discord.User, moderator: discord.User, reason: Optional[str] = None, duration: Optional[str] = None): """ Public method to log moderation actions from commands. - Call this from your moderation commands. """ color_map = { "warn": discord.Color.yellow(),