Nightbot Slap Command with Variable Output

TLDR: i need a nightbot command with 2 varying outputs. I.E.: "user slapped user with [random item here]! [random pain response here]"

ok so im very new when it comes to java script. i recently got very into attempting to make interactive commands for nightbot for my twitch as to engage the viewers more! my issue is i can not figure out how to make a command that begins !slap @touser, when the command is executed, id like it to respond with "user slapped user with [enter random item here] [random pain response here]". im not sure if it can be done but, would greatly appreciate the assistance and anything that could be taught would be greatly appreciated.

2
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article