Documentation Chat

Commands

How to create commands for your chat, who can use them, their waits and their cost, and every variable you can put in their responses.

TwitchKick
Open my commands

What a command is

A command is a word starting with “!” that the bot answers in chat. You create it once in your dashboard and it works on Twitch and Kick.

They are for what people always ask you: your Discord, your socials, your schedule or your setup.

kaironn: !discord

ChatlyBot: Join the community: discord.gg/your-link

Create a command

In your dashboard, open Commands and click “New command”, or start from one of the ideas. Give it a name (what people type in chat, with “!” in front), write the response and, if you like, add aliases: other names that also trigger it.

Before saving, “Try it” shows you what the bot would do: you type as if you were someone in chat and see whether it replies and what it says, without saving anything.

Each response can be up to 400 characters, and each channel can have up to 200 commands.

Who can use it

Each command says who can use it. It works like a ladder: each step lets in everyone above it.

With “VIPs”, subscribers get in too; with “Subs”, someone who is only a VIP does not. If someone without permission types it, the bot stays quiet: it does not say anything in chat.

You can also name specific people: those in “Always allowed” can use it even if their rank falls short (with the same wait and cost as everyone), and those in “Never allowed” can never use it, even if they are moderators.

  1. Everyone anyone in chat
  2. VIPs VIPs and above
  3. Subs subscribers only
  4. Mods moderators and you
  5. Streamer only you

Waits and limits

A command can have two waits: the channel one, between one use and the next for the whole chat, and the per-person one, so nobody hogs it. They go up to one hour.

While the wait lasts, the bot stays quiet or, if you choose, tells whoever used it how long is left (once). Nobody skips it, not even moderators.

It can also have a limit per stream: at most so many uses in total and so many per person. Once reached, it stays quiet until the next stream. Offline uses count separately.

Several responses

A command can have up to five responses. The bot says one each time: at random, or in turns, one after another. Also when it posts automatically.

kaironn: !8ball will we win today?

ChatlyBot: Without a doubt. · Better not ask. · Ask again.

How it replies

The bot can reply like any other message, quoting the message of whoever used it (the reply hangs from that message) or with their @ first, so they get the mention.

When it replies

A command can reply always, only while you stream or only while the channel is offline. Also only in one category: in another one, the bot stays quiet.

If it needs something after it (who to greet, what to look up) and there is nothing, the bot replies with the usage message you set, or stays quiet.

And it can reply only a percentage of the time, or a few seconds later (up to a minute).

kaironn: !so

ChatlyBot: @your_name Usage: !so @someone

Cost

A command can cost points: each use charges what you set, in your channel’s currency. If someone does not have enough, the bot tells them (or stays quiet, if you choose).

With points paused it still charges: pausing stops earning, not spending. Only people who already have points can use it.

Posts automatically

A command can also post itself every so often, from 5 to 180 minutes, without anyone typing it. Other bots call this a “timer”.

It only posts if there has been chat activity (you choose the minimum number of messages), so it never talks to an empty channel.

Voice and screen

The response can also be read aloud on your stream, with Chatlybot’s voice. It needs Voice turned on in Tools, and it does not charge again: the command already paid.

A command can trigger something on your screen (a sound, an image, an alert) from “Actions and events” in Screens. Twitch only, for now.

Your commands page

Your channel has a public page with its commands, so your chat knows what it can use. A command can stay off it (it still works in chat) and can have a description, shown instead of the response.

Variables

Variables are gaps the bot fills in when it replies. Write them as they are in the response, with their ${ and }: “Hi, ${user}!” comes out as “Hi, kaironn!”.

Whatever the bot does not know at that moment (the uptime while offline, for example) shows as “not available”. A misspelled variable shows as written, and what chat types never becomes a variable.

Counters (${contador.muertes+1}) are saved in your channel and shared by all your commands. The command editor shows each one’s value and lets you set it by hand.

Who uses it and what they type

The name of whoever types the command, who they mention and what they type after it.

${user}

The name of whoever types the command.

Typed !hello Replies Hi, kaironn! Welcome to the stream.
${touser}

Who they mention: the first word after the command, without the @. If they mention nobody, whoever uses it.

Typed !hug @miloqx Replies kaironn gives miloqx a hug.
${args}

Everything typed after the command, as is.

Typed !say hello everyone Replies kaironn says: hello everyone
${user.name}

The name of whoever uses it as shown in chat, with its capitals.

Typed !hello Replies Welcome, Kaironn!
${1}

A single word of what was typed after the command: ${1} is the first, ${2} the second… up to ${9}. If there is none, it stays empty.

Typed !dice 6 red Replies kaironn rolls a 6-sided die, color red.
${user.seguidor} Only on Twitch

How long whoever uses it has followed your channel (“3 meses”, “2 años y 1 mes”). Kick does not give it to its bot.

Typed !followage Replies kaironn has followed you for 3 meses.
${user.rol}

The rank of whoever uses it in your chat (viewer, mod, streamer…), as the bot says it.

Typed !rank Replies kaironn, here you are mod.
${user.mensajes}

How many messages whoever uses it has sent in the current stream. It starts from zero every stream.

Typed !messages Replies kaironn, you've sent 37 messages today.
${user.usos}

How many times whoever types it has used this command, counting this one. It's saved in your channel and deleted with !borrarme.

Typed !hug @miloqx Replies kaironn has given 12 hugs.
${user.cuenta} Only on Twitch

How long the account of whoever uses it has existed. Kick doesn't give it to its bot.

Typed !account Replies kaironn, your account is 4 años y 2 meses old.
${2:}

What was typed from word N to the end: ${2:} skips the first one (for example, who they mention).

Typed !say @miloqx hello everyone Replies miloqx, kaironn says: hello everyone

Your stream

What the bot knows about your channel at that moment.

${channel}

Your channel name.

Typed !channel Replies You are in ItsEmmagt’s channel.
${uptime}

How long the stream has been live. With the channel offline it shows “not available”.

Typed !uptime Replies We have been live for 2h 14m.
${game}

The stream's category. With the channel offline it shows «not available».

Typed !game Replies Today we are playing Valorant.
${viewers}

How many viewers there are right now.

Typed !viewers Replies There are 1284 of us on stream.
${random.viewer}

Someone at random who has chatted in the last 5 minutes.

Typed !chosen Replies Today’s chosen one is soraluz.
${title}

The stream title.

Typed !title Replies Today: Ranked hasta Inmortal
${followers} Only on Twitch

How many followers your channel has. Kick does not give it to its bot.

Typed !followers Replies We are 12840 now. Thank you!
${last.follower}

Who was the last to follow your channel.

Typed !latest Replies Welcome, nube_azul.
${last.sub}

Who was the last to subscribe (or to give subscriptions to others).

Typed !thanks Replies Thanks for the sub, pepa_88.
${last.raid} Only on Twitch

Who was the last to bring you their community. Kick does not have it.

Typed !raid Replies Thanks for coming with your community, zorro_77.
${time}

The time in your channel's time zone (the one in Analytics). With no zone set, in UTC.

Typed !time Replies It's 21:05 here.
${date}

Today's date in your channel's time zone.

Typed !date Replies Today is martes, 21 de octubre.
${countdown 2026-12-31 20:00}

Time left until a date and time in your channel's time zone (the one in Analytics; with no zone set, UTC): “2026-12-31 20:00”, “2026-12-31” or “20:00” (the next time it comes). If it's passed, it says so.

Typed !event Replies 32 días, 11 h y 47 min until the event.
${time Europe/Madrid}

The time in the zone you write, like Europe/Madrid or America/Mexico_City. With date instead of time, the date.

Typed !spaintime Replies It's 09:12 in Spain.

Random and counts

Random numbers, lists, counters and how many times it has been used.

${count}

How many times this command has been used, counting this one.

Typed !hydrate Replies That is 118 reminders to drink water.
${random.1-100}

A random number from 1 to 100.

Typed !luck Replies kaironn, your luck today: 73 out of 100.
${random.1-6}

A random number between the two you set, both included: ${random.1-6} is a die.

Typed !dice Replies kaironn rolls a 4.
${random.pick piedra|papel|tijera}

One of the options you write, at random, separated by “|”.

Typed !rps Replies kaironn throws rock.
${contador.muertes+1}

A counter with any name you like, saved in your channel: ${contador.muertes} says it, ${contador.muertes+1} adds one (and -1 takes one away) and ${contador.muertes=0} resets it to zero.

Typed !death Replies That is 8 deaths.
${math $1*2}

Does a calculation with + - * / % ^ and parentheses. You can use $1…$9 (the words typed, if they're numbers), count (the uses) and viewers (the viewers).

Typed !double 6 Replies Double 6 is 12.

From Chatlybot

What is happening in your songs, your points and your giveaways.

${points}

The points whoever uses it has, in your channel’s currency.

Typed !balance Replies kaironn, you have 1200 puntos.
${points.name}

What your channel’s currency is called (you set it in Points).

Typed !currency Replies Here we play with puntos.
${song}

The song playing now in your song requests.

Typed !song Replies Now playing: One More Time — Daft Punk
${song.pidio}

Who requested the song that is playing.

Typed !who Replies Requested by soraluz.
${queue}

How many songs are in the queue.

Typed !queue Replies There are 3 songs in the queue.
${sorteo.palabra}

What to type to join the open giveaway. With no giveaway, it says so.

Typed !giveaway Replies Type !entrar to join.
${sorteo.participantes}

How many have joined the open giveaway.

Typed !entries Replies There are 42 in the giveaway already.
${comandos}

The link to the public page with all your commands.

Typed !help Replies All commands: chatlybot.tv/comandos/twitch/itsemmagt
${touser.points}

The points of the person they mention after the command. If they mention no one, their own.

Typed !balance @miloqx Replies miloqx has 900 puntos.
${subaton.tiempo}

Time left on the Tools clock that adds time with every support. If it's paused or there's none, it says so.

Typed !clock Replies 1h 23m of stream left.
${chatly}

Chatly answers what was written after the command, with your Brain's personality and rules, and counts toward your AI usage. If it can't answer (Brain off, paused or no AI usage left), the command stays silent.

Typed !ask what are we playing today? Replies kaironn, hoy toca Valorant hasta subir de rango
${points.puesto}

The rank of whoever uses it by points in your channel.

Typed !rank Replies kaironn, you're 4.º in puntos.
${top.points}

The three with the most points in your channel, with how many each has.

Typed !top Replies Top: soraluz (5200), kaironn (4100), miloqx (3900)
${sorteo.ganador}

Who won your channel's last giveaway.

Typed !winner Replies The last giveaway was won by nube_azul.
${song.siguiente}

The next song in the queue.

Typed !next Replies Up next: Faded — Alan Walker

From chat

You and your moderators can also create, change and delete commands without leaving chat. Whatever you do there shows up in your dashboard.

!addcmd <name> <response>

Creates a command.

Who: Moderators and streamer

!editcmd <name> <response>

Changes a command’s response.

Who: Moderators and streamer

!delcmd <name>

Deletes a command.

Who: Moderators and streamerAlso: !removecmd

!comandos

Gives the link to the public page with the channel’s commands.

Who: EveryoneAlso: !commands

Back to top