How do I make the bot stop responding when the streamer says 'hello'?
Excluding greeting streamer
7 replies
You don't need to use $(twitch $(user) "{{displayName}}"), $(user) gives you the same result.
Right now, if I said "hello" in your chat, the response would be:
Emily 님 welcome~/hi~/hello~ Hello,welcome,hiYou have to combine the bit of code I gave earlier with your array if you want to have a randomly picked answer:
$(eval a=[`welcome~`, `hi~`, `hello~`]; `$(user)`.toLowerCase()==`$(channel)`?` `:`$(user) 님 ${a[Math.floor(Math.random()*a.length)]}`)
Didn't find your answer? The community is on Discord.
Ask on Discord