Home play Youtube audio with python Discord bot
Reply: 0

play Youtube audio with python Discord bot

Jesse Vrooman
1#
Jesse Vrooman Published in 2017-12-04 11:54:31Z

Hey i wanted to know if its possible to play youtube audio without doing anything to special. this is my code:

if message.content.upper().startswith('!PLAY'):
    args = message.content.split(" ")
    url = args[1]
    author = message.author
    voice_channel = author.voice_channel
    vc = await Client.join_voice_channel(voice_channel)

    player = await vc.create_ytdl_player(url)
    player.Start()

I thought this was enough but i guess not does anyone have some tips on how to do this if its possible?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.305735 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO