diff --git a/cogs/automod.py b/cogs/automod.py index 73a0834a..075926f2 100644 --- a/cogs/automod.py +++ b/cogs/automod.py @@ -13,6 +13,7 @@ if TYPE_CHECKING: from utils.context import GuildContext + from kurisu import Kurisu async def rules_autocomplete(interaction: discord.Interaction, current: str) -> list[app_commands.Choice[str]]: @@ -45,8 +46,9 @@ class AutoMod(commands.GroupCog): Commands to manage AutoMod """ - def __init__(self): + def __init__(self, bot: Kurisu): self.emoji = discord.PartialEmoji.from_str('🤖') + self.bot = bot @is_staff("SuperOP") @commands.command() @@ -167,8 +169,9 @@ async def on_automod_action(self, action: discord.AutoModAction): if not rule or not action.member: return if rule.name == "Scams": + self.bot.actions.append(f"wk:{action.member.id}") await action.member.kick(reason="Suspicious behavior") async def setup(bot): - await bot.add_cog(AutoMod()) + await bot.add_cog(AutoMod(bot))