New! The Potato Stock Exchange is open. Get in early! New! Try the new dashboard!

#addcmd

Custom channel commands

Ambassadors only

Add/delete/edit/copy/list custom commands in your channel! If you specify a runcmd param, the response param will be ignored. I will gladly help set these up for you or explain how they work

Usage

#addcmd trigger:"regular expression or phrase" response:"phrase" cooldown:number delay:number offline:boolean online:boolean reply:boolean chance:number runcmd:"bot command to run"

<angle brackets> are required [square brackets] are optional flags change what it does

Arguments

  • command Optional Text

    The name of the command to delete, edit or copy

  • from Optional Channel

    The channel to copy the command from, as #channel or from:<channel> (defaults to the current channel) Can also be given as from:<channel>.

  • in:channel Optional Channel Bot admins only

    The channel to add the command to

Flags 34

  • name: Text

    The name of the command, must be unique

    #addcmd name:"command"
  • trigger: Regex

    The trigger for the command, can be a regular expression or a phrase

    #addcmd trigger:"regular expression or phrase"
  • response: Text

    The response for the command, can be a phrase or a command

    #addcmd response:"phrase"
  • whitelist: Text

    User IDs to whitelist for the command, separated by commas

    #addcmd whitelist:"12345,67890"
  • blacklist: Text

    User IDs to blacklist for the command, separated by commas

    #addcmd blacklist:"12345,67890"
  • runcmd: Text

    A bot command to run, if specified, the response param will be ignored

    #addcmd runcmd:"!command args"
  • -online Switch

    Whether the command is active when the streamer is online

    #addcmd online:true
  • -offline Switch

    Whether the command is active when the streamer is offline

    #addcmd offline:true

Examples 22

Add a custom command

MoonwalkingSock:#addcmd name:hello trigger:"!hello" response:"Hello chat, welcome to the potato patch"
PotatBotat:Successfully added command in #potatochannel (ID: 42)

Add a temporary command with a cooldown

EmbellishingPlatypus672:#addcmd name:giveaway trigger:"!giveaway" response:"Type !enter to join the giveaway" cooldown:30 for:1h
PotatBotat:Successfully added command in #potatochannel (ID: 43) (Expires in 1h)