SOTD Bot
- 5 Devlogs
- 2 Total hours
Discord bot that gives you a song of the day - named jrock-enthusiast
Discord bot that gives you a song of the day - named jrock-enthusiast
Added some more functionality and details to the bot, so it specifies the date when it prints out the Song of the Day and also just commented more of my code. Since all of these APIs connect to Music Brainz’s ID system for some reason, I may use that to be able to query for general song info.
I made it so the bot is able to keep track of songs that have already been selected as Songs of the Day, and also made it so the bot keeps track of the date and won’t generate a new song for the same day if one’s already been selected. These both, of course, only work when the bot is running the entire time.
Devlog #3
I switched to the AudioDB API since it’s IDs are just 8 digit codes, rather than UUIDs like what MusicBrainz has. However, this has come with its own set of problems, mainly being that finding a track takes a minute. Since I’m generating an 8 digit number and not all numbers will actually have songs assigned to them, sometimes I’m just sitting there staring at it find null results over and over again. That, however, is an issue that will be approached once I have the code properly printing the information I want it to. For now, it at least can find a song and turn it into a list.
Also, working on two scripts at once (since I would rather not leak my bot token) is a lot harder than I thought it would be, since I’m effectively coding on one file (which gets its time tracked) and debugging on another (which does not get its time tracked).
There surprisingly aren’t many ways to randomly search for a song, and whatever ones do exist continue to fail for some reason.
I’m currently using the ISWC code that’s assigned to all musical works, but MusicBrainz API either doesn’t feel like actually using it or there’s something wrong with the API. I guess I’ll find out eventually.
Made it so the bot can respond to keywords. Now to start reading up on various different music APIs to find one which properly suits my needs.