Message if !songrequest is empty (I use !radio as alias)

Asked Nov 8, 2023·1 reply·Last activity 2 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hi,
I use the song request feature. with "!radio YOUTUBELINK" you can request a song. But when you only enter "!radio" I will get a Message like a short How to in the chat.

For testing, I created a command !rad with this message: $(eval if ('$(1)' != 'null'){'$(query)'} else { 'How to wish a Song!'})
When I entered "!rad test" then Nightbot says "test". When I enter "!rad" then Nightbot says "How to wish a Song!".

How can I change this? On "!radio test" Nightbot must search youtube for "test" and put a video in the playlist, like on !sr or !songrequest.

1 reply

Hey @Stripy Goose!

I'm afraid you can't change the current behavior, when using an alias, the output of the original command is forwarded to the alias no matter what.