Nightbot's Command that call another, but more than just one

Asked Dec 13, 2021·1 reply·Last activity 4 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.

I want to use a command as trigger to call another commands, but more than only one.

It should work like...
!ask discord
and the nightbot would call the !discord command

Is that possible?

1 reply

Hi @Minty Dodo You can do this way.

1. Create a JSON like file in pastebin
Somthing like:

{
"discord": "Join our discord server: discord.gg/nightdev",
"instagram": "Follow us on Instagram at: <LINK>",
"<COMMAND>": "<RESPONSE>"
}

2. Fetch and process it.

!addcom -cd=5 !ask $(eval a = $(urlfetch json pastebin.com/raw/xxxxxx); a.$(query))

Let me know, if you face any problem.

Regards