aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music/join.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cogs/music/join.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/cogs/music/join.py b/cogs/music/join.py
new file mode 100644
index 0000000..91a0b18
--- /dev/null
+++ b/cogs/music/join.py
@@ -0,0 +1,13 @@
1import discord
2from discord.ext import commands
3
4class Join(commands.Cog):
5 def __init__(self, bot):
6 self.bot = bot
7
8 @commands.slash_command(name="join", description="dołącza do kanalu")
9 async def join(self, ctx):
10 await ctx.voice_client.connect()
11
12def setup(bot):
13 bot.add_cog(Join(bot)) \ No newline at end of file