I'm trying to make a command in my stream chat that tells you what Pokemon you are, so I would like if you type !pokemon for it to pull a random name off a list and tell you what you are. I'm using paste bin (https://pastebin.com/raw/hYAnXRZZ) but it keeps giving me errors, I've tried repeated fixes and scoured the internet to no avail. It doesn't like the name Pineco, Wobbaffet or Forretress apparently... How would I appropriately fix this link and the command so that it comes out reading (user) is a (pokemon) :(
Nightbot Command error
2 replies
Regarding the content of Pastebin, check that you need to place a (`) in Unown, the pokemon before Pineco on the list. That's why you get the error there.
Also delete from pastebin ;a[Math.floor(Math.random()*a.length)])! since this will be in the syntax of the command that I will share with you below
$(user), if you were a pokemon you would be $(eval a=$(urlfetch json https://pastebin.com/raw/Vva5kHgZ);a[Math.floor(Math.random()*a.length)])