aboutsummaryrefslogtreecommitdiff
path: root/modules/ragequit.py
diff options
context:
space:
mode:
authorromangraef <romangraef@loves.dicksinhisan.us>2018-08-21 16:12:39 +0200
committerromangraef <romangraef@loves.dicksinhisan.us>2018-08-21 16:12:39 +0200
commita4c058b5c0ec4e441c63ae2ef15235a4869d2bac (patch)
tree64a039e55976adace41fb56d4fc77e88333db802 /modules/ragequit.py
downloadnotaselfbotv2finalforsure-a4c058b5c0ec4e441c63ae2ef15235a4869d2bac.tar.gz
notaselfbotv2finalforsure-a4c058b5c0ec4e441c63ae2ef15235a4869d2bac.tar.bz2
notaselfbotv2finalforsure-a4c058b5c0ec4e441c63ae2ef15235a4869d2bac.zip
Initial commit
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))