diff options
author | romangraef <romangraef@loves.dicksinhisan.us> | 2018-08-21 16:12:39 +0200 |
---|---|---|
committer | romangraef <romangraef@loves.dicksinhisan.us> | 2018-08-21 16:12:39 +0200 |
commit | a4c058b5c0ec4e441c63ae2ef15235a4869d2bac (patch) | |
tree | 64a039e55976adace41fb56d4fc77e88333db802 /modules/ragequit.py | |
download | notaselfbotv2finalforsure-a4c058b5c0ec4e441c63ae2ef15235a4869d2bac.tar.gz notaselfbotv2finalforsure-a4c058b5c0ec4e441c63ae2ef15235a4869d2bac.tar.bz2 notaselfbotv2finalforsure-a4c058b5c0ec4e441c63ae2ef15235a4869d2bac.zip |
Initial commit
Diffstat (limited to 'modules/ragequit.py')
-rw-r--r-- | modules/ragequit.py | 17 |
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)) |