blob: 91a0b18d700f6077e0d04c0ad345b6f437b02206 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import discord
from discord.ext import commands
class Join(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.slash_command(name="join", description="dołącza do kanalu")
async def join(self, ctx):
await ctx.voice_client.connect()
def setup(bot):
bot.add_cog(Join(bot))
|