Inspiration
Youtube is after music bots on Discord. So we are here to fill the void. Introducing Treble, the next generation of Discord music bots!
What it does
Just like Groovy and Rhythm, Treble will play music from YouTube. Just invite the bot to your server and type -play {Youtube URL} to play music. Alternatively, if you don’t want to find the url, you can simply type -play {song title} and Treble will scrape Youtube and find the closest match using a sophisticated natural language processing algorithm with optimized query prediction.
How we built it
Treble is built using the Python programming language. Primarily, the discord.py was used to facilitate communications with the Discord API. Beautiful soap aided in scraping Youtube to find urls.
Challenges we ran into
The biggest challenge we ran into was setting up ffmpeg. Essentially, ffmpeg is a complete, cross-platform solution to record, convert and stream audio and video. The issue was that setting up ffmpeg on a Windows operating system required more steps than on Mac or Linux. We identified this problem early on thanks to the detailed documentation of discord.py. This was ultimately fixed by the manipulation of system variables and shell resets.
Accomplishments that we're proud of
We are impressed with our resolute dedication to finishing this project within the rather short time frame allocated. Additionally, we are proud of the thorough logging capabilities of the application.
What we learned
We learned about the API’s used for developing Discord bots, as well as how to web scrape to find music links based on keywords.
What's next for Treble
We would like to implement support for other music or video streaming sites, such as Spotify and Soundcloud.
Built With
- beautiful-soup
- discord.py
- python
Log in or sign up for Devpost to join the conversation.