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

VinylBot

  • 7 Devlogs
  • 19 Total hours

This bot isn't slacking off, it replies to messages 24/7!

Open comments for this post

43m 27s logged

Just fixed a little bug, the same songs kept coming back whenever you played the same artist twice. That’s because the artist track pool was too small, so every game used it up entirely. I fixed this and also added a nice thing, suggested by @stef. I improved the hints, now it’s easier to guess a song after hints 2 and 3.
I hope you enjoy playing

0
0
3
Ship #2

This project contains three microprojects, all related.
There’s the slack_bot, already shipped for the mission.
There’ s the ds_bot, improved from it’s first version in flavortown.
And there’s a newborn, a website, containing everything necessary for the bot, with also docs, for hosting the bot locally.
For making the design of the website, since I’m not that great with graphics, I used v0, which generated mockups for me. That’s why the website Ui seems so AI.

  • 1 devlog
  • 7h
Try project → See source code →
Open comments for this post

6h 42m 57s logged

Spent today hardening VinylBot for production: fixed a crash bug where an unhandled ffmpeg/stream error in the audio player could take down the entire bot for every server at once, added global uncaughtException/unhandledRejection handlers to both bots, fixed a race condition in the Slack round timer, and cleaned up leaked temp mp3 files on failed downloads.

Also dockerized the Angular website (nginx + multi-stage build) and got all three services (Discord bot, Slack bot, website) live on their own subdomains behind the VPS firewall.

For the problem of the streaming on server or vps I decided to add two methods for gathering audio mp3s. The first time it will try with spotify, searching for the preview_url. After that it will try deezer and Itunes, that represents a valid alternative.

0
0
3
Open comments for this post

1h 56m 15s logged

Hey guys, today I’m working on fixing the ds bot. First of all I had to review the method of streaming the song.
I was first using yt-dlp for everything, but I noted that putting it on a server was making it not working anymore. I discovered that is because yt blocks certain ips and certain requests, so this was an impossible choice. The solution was spotify preview, which are basically like 20 seconds of a song. That’s perfect for me, since I don’t have to stream the whole song, but instead just a little part.

The approach is this. I created a variable in the env, called DEPLOY_ENV. This specifies if we’re running the bot locally, or on a server or vps.

If the variable is vps, first the bot is gonna try finding the song on spotify. If it’s not present, it’s gonna search for local files, as alternative.

If the variable is local, the first alternative remains spotify, but as a second there’s also yt-dlp, since locally it works fine.

I also adjusted the cards of some commands, as you can see from the screens, along with testing out the bot.

I still have some more work to do, but I think soon the ds bot will be ready.

0
0
5
Open comments for this post

1h 52m 24s logged

As you can see, I’m currently working on fixing some minor details, like improving the card. This card is displayed whenever you use the commands play, nowplaying, pause, skip, previous.

In this card you can see the song, the album it comes from, who requested to see the card and also the timing.
Additionaly there are buttons for pausing, skipping and level up or down the button by 10 units.

I also discovered something I didn’t know. Recently you can use your own emojis, so I generated this one with chatgpt and used them for the commands, as you can see in the card. Really useful

0
0
3
Open comments for this post

4h 34m 24s logged

Hey guys, so I decided to improve this project. I created another repo, containing both the bot in slack, made in this “session”, and the bot made for discord, made in Flavortown.
Along with those two projects, I added a website. So now the repo contains the two bots, and the website.
I just built the website, it’s a simple landing page. For generating mockups for the design I used v0 by vercel, which is really useful for people like me, who aren’t able to produce anything graceful without a designer.

So, as I was saying, the website it’s just a simple landing page, containing infos about the bots, allowing to download the bots and more.

I also added two routes /status and /docs.
The names explain the function. The first oen contains the status of each bots.
The second one contains well-written docs, very useful for people who want to host the bot locally.

0
0
4
Open comments for this post

1h 49m 39s logged

Adapted everything to slack, now it’s quite working. The only problem is that I have still to fix the gain of the music resource, but it’s processing in my mind right now.
/vinylbot-stop

0
0
3
Open comments for this post

1h 16m logged

I’m currently working on VinylBot, a Slack bot with two main features.
Imagine you’re chatting with friends on Slack: with VinylBot, you can manage your music directly from Slack without having to open Spotify every time.
The main feature, though, is the Vinyl Game, a music guessing game where players have to identify a song based on just a few seconds of playback.
I’ve already built a Discord version of the project, which is available on my GitHub. However, bringing it to Slack is becoming a challenge, since a lot of the logic has to be reworked due to the differences between Discord and Slack and the way they handle interactions.
I hope you’ll like it.

0
0
7

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…