!fight command not working?

Asked May 4, 2021·1 reply·Last activity 5 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.

So i have been trying to setup a fight command for my friends chat however it isnt working I used this to try and setup the command !addcom !fight $(eval u=$(user); t=$(touser);r=$(urlfetch json https://www.pastebin.com/raw/zRDj2X54).split(|); r[Math.floor(Math.random()*r.length)];) When ever the command is activated nightbot either responds with Sentence_2_$(u) Is the Victor!!!
or Sentence_1_$(u) couldn't take $(t) Smoke! If you know how to fix this please reach out!

1 reply

Hey @Sparkly Dolphin!

Simply remove Sentence_1_, Sentence_2_, and the last | (at the end of your second sentence).