I would like to know how to create commands as a mod for someone

Asked Jul 25, 2024·1 reply·Last activity 2 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’m trying to make commands for my friend as mod but can’t how does he make me allowed to make me be able to make commands for his channel? Thank you

1 reply

@Jumpy Chick Hi,

Ask the owner of the channel to cross check if the default command "!commands" is enable.

From docs: "!commands" allows users to get a list of commands and moderators to manage commands.

To add command via chat:

md
!addcom <command name> <command response>

Example:

md
!addcom hi Hello

You can make the response much more dynamic with built in variables

md
!addcom hi Hello @$(user).

If you know little bit of JavaScript you can do "miracles". Here's the "!facts" command

js
!addcom !facts Fact: $(eval a = $(urlfetch json https://pastebin.com/raw/x0vgXCwJ); a[Math.floor(Math.random() * a.length)])

To delete command:

md
!delcom <command name>

Example:

md
!delcom !facts

There are lot many things. Consider looking at https://docs.nightbot.tv/

Regards