Skip to content
AxisPanel Docs

Automation modules

Custom Commands

1 min read

Add your own !commands with a reply, like !rules or !ip.

Set it up

  1. Choose a name and write the reply.
  2. Members type !name in chat.

Variables

Put these in a reply and the bot fills them in:

VariableBecomes
{user} / {username} / {userid}The member who used the command
{server} / {channel} / {membercount}The server, the channel, how many members
{args}Everything typed after the command, like !hello big world gives big world
{arg1} to {arg9}One word of what was typed after the command
{mention}The first member they mentioned, or themselves
{uses}How many times the command has been used
{date}Today's date

Two more pick something at random: {random:a|b|c} gives one of the choices, and {random:1-100} gives a whole number in that range.

Simple conditions

Show different text depending on who asks or what they typed:

  • {if hasrole:ROLEID}Staff only text{else}Everyone else{/if}
  • {if args}You said {args}{else}Add something after the command{/if}
  • {if arg1=yes}Great!{else}Okay.{/if}
  • {if channel:CHANNELID}...{/if}

The {else} part is optional. Conditions can't be nested. Role and channel IDs come from Discord's developer mode: right click, then Copy ID.

Good to know

If Custom Commands is off, they stop replying.

Tip

You can switch Custom Commands on or off any time from Modules in the panel. Switching a module off never deletes your settings.

Something missing or unclear? Tell us in the AxisPanel Discord.