diff --git a/Youtube.py b/Youtube.py index 574d525..4104cd5 100644 --- a/Youtube.py +++ b/Youtube.py @@ -5,29 +5,40 @@ client = commands.Bot(command_prefix = '.') -players = {} +players = {'https://www.youtube.com/'} -@client.evet +TOKEN = 'NTA3NjMyNDUwMzkwODUxNTg1.Drzsew.lVbUm7WKIPrV56q_9LegdqZuXZo' + +"""Code From The online disclord.py documentation""" +@client.event async def on_ready(): await client.change_presence(game=discord.Game(name = 'Fortnite like a Boss')) print ("BOT ONLINE") +"""""" +"""Code From The online disclord.py documentation""" @client.command(pass_context = True) async def join(ctx): - channel = ctx.message.author.voice.coice_channel + channel = ctx.message.author.voice.voice_channel await client.join_voice_channel(channel) - +"""""" + +"""Code From The online disclord.py documentation""" @client.command(pass_context = True) async def leave(ctx): server = ctx.message.server voice_channel = client.vocemessage_in(server) await voice_channel.disconnect() - - +"""""" + +"""Code by Lucas Kumara""" @client.command(pass_context = True) async def play(ctx, url): server = ctx.message.server client = client.voice_client_in(server) player = await voice_client.create_ytdl_player(url) players [server.id] = player - player.start() \ No newline at end of file + player.start() +"""""" + +client.run(TOKEN) \ No newline at end of file