dook bot
- 3 Devlogs
- 4 Total hours
Audio and music focused discord bot named after a buddy of mine
Audio and music focused discord bot named after a buddy of mine
Added the music player command to the bot.
It first downloads the video using yt-dlp and and then broadcasts it to a voice channel. I basically moved the search code from the previous devlog for this.
I did have some issues getting it to play music for the first time, since discord has some niche annoying feature that requires you to set the bot’s intents and i forgot to do that. Eventually, I got it working.
It came with some bugs related to file formatting, but they got fixed, and the bot should be working.
Added a feature to search for youtube videos.
Was a quick and easy api call, but Google’s documentation kinda sucks. I thought it was just me, but apparently internet people seem to agree. To quote one blog author, “Why has the YouTube API have to suck dongs?”
Anyway Google also gives you essentially no search calls a day (100/day), so to bypass that I grabbed a bunch of alts and spun up 5 or more keys which seemed like an appropriate and reasonable amount.
I created and setup the bot.
Following the discordjs guide, I made a command handler and a very bare bone slash command.