How to add a commands that uses both message

Hello, I make live video on youtube. I have a command which is “spotify” when someone says spotify, my spotify playlist link comes up. But, now I want to make this spotify command 4-5 times. Which mean, I have 4-5 playlist and when someone writes “spotify” bot should give the link randomly one of my playlists. Is it possible

This outputs a random link.

$(eval a=[`link1`,`link2`,`etc`];a[Math.floor(Math.random()*a.length)])

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