aboutsummaryrefslogtreecommitdiff
path: root/modules/ragequit.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ragequit.py')
-rw-r--r--modules/ragequit.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/ragequit.py b/modules/ragequit.py
new file mode 100644
index 0000000..aaf43f8
--- /dev/null
+++ b/modules/ragequit.py
@@ -0,0 +1,17 @@
+from discord import Guild
+from discord.ext.commands import Bot, command, Context as CommandContext, guild_only
+
+
+class RageQuitCog(object):
+ def __init__(self, bot: Bot):
+ self.bot: Bot = bot
+
+ @command()
+ @guild_only()
+ async def ragequit(self, ctx: CommandContext):
+ guild: Guild = ctx.guild
+ await guild.leave()
+
+
+def setup(bot: Bot):
+ bot.add_cog(RageQuitCog(bot))