You are browsing as a guest. Sign up (or log in) to start making projects!

SOTD Bot

  • 5 Devlogs
  • 2 Total hours

Discord bot that gives you a song of the day - named jrock-enthusiast

Open comments for this post

15m 10s logged

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.

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.

Replying to @dhruvra

0
6
Ship #1

I made a bot for Discord that's able to respond to certain keywords and can generate a song of the day. It remembers what song is generated for the entire day. It also has a minor obsession with J-Rock (the best music genre, of course).

The project is coded entirely in Python. Through it, I learned more about how Discord.py works, as well as pulling information from APIs in Discord.

  • 5 devlogs
  • 2h
Try project → See source code →
Open comments for this post

41m 42s logged

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.

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.

Replying to @dhruvra

0
4
Open comments for this post

23m 54s logged

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).

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).

Replying to @dhruvra

0
5
Open comments for this post

34m 12s logged

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.

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.

Replying to @dhruvra

0
6
Open comments for this post

23m 22s logged

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.

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.

Replying to @dhruvra

0
2

Followers

Loading…