We learned basic Python syntax, some Python libraries, how to use P圜harm and do collaborative editing and debugging, as well as how to use the Discord API and their bot commands framework. We're proud that we implemented basic features of a music discord bot using an API and a programming language that we had no experience with. We tried many approaches to create a working song queue but got stuck when a user would add a song to the queue while a song was playing. The other challenge was trying to implement a song queue with a doubly-linked list using deque(). We used Discord.Voice_ay() to play an MP3 file but it was a huge challenge to get the FFmpeg executable file linked. The first was the ability for the discord bot to play audio via FFmpeg. We also utilized the PyNaCl library for the discord bot to join voice channels and, a bot commands framework. ![]() We used FFmpeg for our discord bot to play audio files. We used the Discord.py API to create the discord bot using Python to implement commands and events. Users can play MP3 files from their local music folder. Our bot currently allows users to play, pause, resume, and stop songs. The bot plays local files from your music folder in the voice channel of the user issuing the command. We wanted to be able to play music that we purchased and saved on our computers so our friends would be able to listen along on Discord.
0 Comments
Leave a Reply. |