I am trying to add a !dadjoke command that when called it random dad jokes from a pastebin link, but so far I've been running into errors and error.
The command:
!addcom !dadjoke $(eval responses = $(urlfetch json https://pastebin.com/raw/wKzWNmgQ):responses[Math.floor(Math.random() * responses.length)])
Error message:
Unexpected token ':'
any help is appreciated