Song request not working correctly

So, I’ve been messing around with the song requests and I have made a custom command that makes !sr = !songrequest $(urlfetch url) then i try to request a song in chat and i get this:

sumokat : !sr https://www.youtube.com/watch?v=A26bIVoqSU0&list=PL8HcRHwaD7XAjYgotb14oIBwrD6fSaG4r&index=5

Nightbot : sumokat -> There was an error requesting the song. Error: No results found

What am i doing wrong?

How does your !sr command look like, you dont need to use urlfetch to accomplish that.

What you need is:
!commands add -a=!songs !sr request $(query)

This creates an alias for the !songs request command.
When you type !sr http://youtube.com
Nightbot will execute: !songs request http://youtube.com

1 Like

You don’t need to make a custom !Sr command, nightbot already has an !Sr command that is an alias of !songs request

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.