Hello. So this was more of a self-challenge I did just to get back to coding after a loooong break - mostly to get a bit of understanding of how modern things like oauth2, bootstraps, etc work. But I thought that maybe it’ll be useful for someone else, so I tried to quickly pack it in shareable form.
What it does:
Allows you to add a custom comand to your nightbot that would allow your chat to save current song to their personal list. And not just for stream owner, but for the viewers as well (depending on permissions).
Why would they need it? Well, as someone who mostly hangs out on multiple creative/music streams, I personally always wanted it to be easier to save new songs I heard and liked. And the constant need to copypasta to random notes which I keep forgetting about was pretty annoying.
Isn’t it easier to just type !save and be done with it? Well, now you can:
https://feq.ru/savebot/songlist.php?u=Enbis - here’s an example of how it may look like (don’t mind the songs, they are random).
https://feq.ru/savebot/auth.php - and here’s the install link.
It (edit: no longer requires) extra steps like creating an app and (edit) will now automatically refresh the token.
Can be used from my host, but you can (and, if you have the means, it’s better to) upload it on your own. Source code (link at the auth page) is open and free to use, modify, do whatever you please with it. It’s not exactly a big thing, I’ve spent only couple evenings of free time on it, so obviously there won’t be any copyright hassle over it.
As of right now, I’d give about 70% chance something will go wrong, since I only tested it on myself. But I’ll try to fix whatever I can.
Update: if you used this bot before 10.11.2019 and suddenly discovered it doesn’t work, it’s because I had to move hosting. It still works, just update the !save command to this:
$(urlfetch https://feq.ru/savebot/save.php?u=$(user)&c=$(channel)&q=$(querystring))