Help with Nightbot

Asked Aug 2, 2024·3 replies·Last activity 2 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.

Im just learning to use and create nightbot commands for different responses. I tried the god command on YouTube. I checked it on YouTube and nightbot returned, all hail use name , God of remote server returned code 404.

This is the command i have in nightbot.

All hail $(user), God of $(eval a="$(urlfetch json https://pastebin.com/raw/uM3SxvThJ)".split(";");a[Math.floor(Math.random()*a.length)])

Someone please help

Also with this command, what am I doing wrong?
Everything worked but the choosing animal.

$(user) summons a creature and $(eval const animals = ['a raccoon,'a monkey','a parrot','an otter']; animals[Math.floor(Math.random() * animals.length)];) appears and whacks $(user) with a frying pan.

3 replies

Hiya, the pastebin you linked doesn't exist.

Hmmm, it's in my account. I guess it isn't public.

Ah, yeah set it to public and try again.