diff options
Diffstat (limited to 'cogs/music/leave.py')
| -rw-r--r-- | cogs/music/leave.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cogs/music/leave.py b/cogs/music/leave.py new file mode 100644 index 0000000..0be2068 --- /dev/null +++ b/cogs/music/leave.py | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | import discord | ||
| 2 | from discord.ext import commands | ||
| 3 | |||
| 4 | class Leave(commands.Cog): | ||
| 5 | def __init__(self, bot): | ||
| 6 | self.bot = bot | ||
| 7 | |||
| 8 | @commands.slash_command(name="kick", description="kickuje bota z kanalu") | ||
| 9 | async def kick(self, ctx): | ||
| 10 | await ctx.voice_client.disconnect() | ||
| 11 | |||
| 12 | def setup(bot): | ||
| 13 | bot.add_cog(Leave(bot)) \ No newline at end of file | ||
