Nightbot 8Ball fixed response

Hey I was wondering if it was possible to set up a Nightbot command where if anyone asks !8ball a question, it responds usually with the traditional random answers. But if a specific viewer in my chat asks Nightbot/8ball, Nightbot would respond with a fixed answer I gave it.

Hey @haychq!

Yes, do it like this:

$(eval u=`$(user)`; r=[`RANDOM_ANSWER_#1`,`RANDOM_ANSWER_#2`, ... ,`RANDOM_ANSWER_#n`]; u==`SPECIFIC_VIEWER`?`FIXED_ANSWER`:`${r[Math.floor(Math.random()*r.length)]}`;)

Just replace the RANDOM_ANSWER, SPECIFIC_VIEWER, and FIXED_ANSWER fields.

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