Part 1 - Music Cog Setup | How To Code A Discord.py Music Bot

Описание к видео Part 1 - Music Cog Setup | How To Code A Discord.py Music Bot

In this video, I show the steps to setting up the music cog so that we can start creating bot commands in the next video! Hope you enjoy!

GeraldTheRobot code:
https://github.com/TheRealDulanOoga/G...

My personal Discord bot's code, with a bit more features:
https://github.com/TheRealDulanOoga/B...


Copy/paste:

self.YTDL_OPTIONS = {'format': 'bestaudio', 'nonplaylist': 'True'}

self.FFMPEG_OPTIONS = {
'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5',
'options': '-vn'
}

htmContent = request.urlopen(
'http://www.youtube.com/results?' + queryString
)

return {
'link': 'https://www.youtube.com/watch?v=' + url,
'thumbnail': 'https://i.ytimg.com/vi/' + url + '/hqdefault.jpg?sqp=-oaymwEcCOADEI4CSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLD5uL4xKN-IUfez6KIW_j5y70mlig',
'source': info['formats'][0]['url'],
'title': info['title']
}


Timestamps:

Creating and initializing public variables- 00:00
Join voice channel function - 05:00
Search on YouTube function - 09:40
Extract video content function - 13:30


Music Used:

"Shrub" by Jobii
"Queen's Gardens" from Hollow Knight by Christopher Larkin
"Meander" by Jobii
"Shop" from Undertale by Toby Fox
"Gogaga" by Giants

Комментарии

Информация по комментариям в разработке