Nightbot can’t trigger its own commands by typing them in the chat it would have to be through the alias. What your trying to do isn’t really necessary you could do it all in one command if you use pastebin from what I’m understanding.
As you’ve been told before, Nightbot can’t be triggered by commands in its own messages as it ignores them, you can use an alias command to trigger an extra command, but that’s it, as @potatoeaterlove said, your best bet here seems to be using a Pastebin, or you can also use a multiple message API.
I´m using Pastebin Now, but I don´t know what url from pastebin I´ve to put on the command
My command is:
$(eval a=$urlfetch json PASTEBINURL) a[Math.floor(Math.random()*a.lenght)])
but it doesn´t work.
Inside the Pastebin doc, the items are between (’) and separated with (,)
I don´t know if it´s the command, the URL or both
Thanks a lot