I am trying to create and use a pokemon battle command. The command is below:
!battle
A wild $(user) appears & attacks $(touser)! $(user) uses $(eval a=$(urlfetch json https://pastebin.com/1C3yDEzj);a[Math.floor(Math.random()*a.length)]). $(eval var a=["It misses...","It's super effective! $(touser) faints","It's not very effective... "]; a[Math.floor(Math.random()*a.length)];)!
The command itself works but it gives an error code when trying to pull from the pastebin link. Error code here:
"Code generation from strings disallowed for this context"
Is there a fix or workaround I can use?
Thanks in advance