Skip to main content

Custom Commands

Sometimes you really want to add some command with a link to Boosty or Telegram, or just some funny pasta, but don't want to type it manually each time. For this purpose, there are now custom commands.

Adding on website​

The easiest way to add a new command is through the bot's control panel at https://jeetbot.cc/dashboard/commands

Adding a command in chat​

You can also add commands in chat with !setcmd !command text

For example, you can add a command with a link to your Telegram channel:

commands-setcmd.png

Editing a command​

The same !setcmd !command text command is also used to edit an existing command — if a command with that name already exists, its text is simply overwritten with the new one.

Deleting a command​

To delete a command, use the command !delcmd !command

Which for the command from the example above would be:

commands-delcmd.png

Data from external services​

Include exchange rates or other API data in a reply. See API data in command replies for a working example and instructions for $(api ...).

Changing the stream category​

The $(setgame "Category") variable changes the stream category right from a command. This is handy for commands like !irl or !chat that switch the stream with a single message. The category changes on the platform where the command was called: Twitch, Kick or VK Video Live.

Example: the !irl command replies Category changed to $(setgame "IRL"), and the !chat command replies Category changed to $(setgame CHAT). In chat it looks like this:

Moderator types !irl, bot replies: Category changed to IRL; streamer types !chat, bot replies: Category changed to Just Chatting

  • The name can be without quotes: $(setgame IRL) or $(setgame Just Chatting). Quotes are required if the name contains a ) bracket: $(setgame "Name (with bracket)").
  • Instead of the variable, the bot shows the name of the category that was actually set. The same short names as in the built-in !game command work: CS2 and CS → Counter-Strike (on Kick and VK Video Live, Counter-Strike 2), JUST and CHAT → Just Chatting, MINE → Minecraft, VAL → VALORANT, LEAGUE → League of Legends, GTA and GTA5 → Grand Theft Auto V. Any other name is searched for as a category name.
  • If the category is not found, or the bot is not allowed to change it, the bot shows ? instead.
  • If the reply has more than one $(setgame), only the first changes the category; each further one shows ?.
  • Anyone who has access to the command can change the category. To let only moderators run it, set the command's access to "Moderators" in the command settings. The command cooldown works as usual.
  • Category changes made through a command appear in the activity log in the control panel, the same as changes made with !game.
  • Such a command can only be created in the control panel: !setcmd and other chat commands refuse text that contains $(setgame).
  • $(setgame) cannot be used in the same reply as $(api ...): the control panel won't save such a command.

To change the category once without a custom command, use the built-in !game <category> command.