Skip to content
Permalink
Browse files
Made some legal changes
  • Loading branch information
veleva committed Nov 29, 2018
1 parent ceb46f2 commit 310f3bc
Showing 1 changed file with 18 additions and 7 deletions.
@@ -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()
player.start()
""""""

client.run(TOKEN)

0 comments on commit 310f3bc

Please sign in to comment.