On this page

Documentation

How to use AxyraBot

AxyraBot moderates your Twitch chat, answers commands, posts scheduled messages and keeps your Discord server in sync. This guide covers everything you can set up, from the first login to the variables you can use in your own messages.

Getting started

  1. Click Connect with Twitch on the home page and approve the permissions. AxyraBot uses them to moderate, update your title and category, and post in your chat.
  2. On the Dashboard, press Join channel. AxyraBot joins your chat and starts listening for commands. Press Part channel any time to remove it.
  3. Turn on the features you want: Blocked Terms, Spam Filters, Modules and Commands.
  4. Optional: link your Discord server on the Discord page.

Every change you make in the dashboard applies right away. There's nothing to restart, and the Dashboard's Recent Activity lists what changed.

Chat commands

These commands are built in. You can turn each one on or off, and change who can use it with its pencil icon, on the Commands page. The tables below show who can use each command by default. Words in <angle brackets> are required; words in [square brackets] are optional.

CommandWho can use itWhat it does
!title <new title>Broadcaster, modsChanges your stream title.
!game <category>Broadcaster, modsChanges your Twitch category. Use the category's full name, e.g. !game Elden Ring.
!uptimeEveryoneSays how long you've been live, or that you're offline.
!followage [user]EveryoneHow long someone has followed you. Without a name, it's the person asking.
!accountage [user]EveryoneHow old someone's Twitch account is.
!watchtime [user]EveryoneHow long someone has watched your streams. Time counts while they chat during a live stream.
!clipEveryoneCreates a clip of the last moments of the stream and posts the link.
!commandsEveryonePosts a link to your public list of custom commands.
!songEveryoneSays what you're listening to, once you set up Last.fm.
!vanishEveryoneTimes the person out for one second, which clears their messages. Just for fun.

The birthday commands are listed under Birthdays.

Custom commands

Custom commands are your own !commands with your own replies, like !discord or !socials. They work in your Twitch chat and in your linked Discord server.

From the dashboard

On the Commands page, add a command, write its reply, and choose who can use it: Everyone, VIPs, Moderators or only you. You can also edit, turn off or delete commands there.

From chat

The broadcaster and moderators can manage commands without leaving the stream:

CommandWhat it does
!addcom !name replyCreates a command (or replaces it). !addcom !discord Join us at discord.gg/example
!editcom !name new replyChanges the reply of an existing command.
!delcom !nameDeletes a command.

Commands added from chat can be used by everyone. To limit one to VIPs or mods, change it on the Commands page. Built-in commands like !title can't be replaced, only turned off.

Replies can include variables. For example, !hug with the reply $(user) gives $(touser) a big hug! turns !hug @quietfox into “@nopopcorn gives quietfox a big hug!”

Variables

Variables are placeholders written like $(name). When AxyraBot sends the message, it replaces each one with real text. They're grouped below by what they do, and each one lists where you can use it.

A variable only works in the places listed next to it. Anywhere else it's sent exactly as typed. For example, $(title) and $(game) don't work in custom commands yet.

People

Name someone in the message: whoever used the command, who they mentioned, or someone else in chat.

VariableWhat it becomesWorks in
$(user)The person who used the command. AxyraBot starts its reply with an @mention of them (a real mention on Discord). In a Discord welcome message, it mentions the new member.Custom commandsDiscord welcome
$(touser)Whatever was typed after the command, without the @. !hug @quietfox gives quietfox. If nothing was typed, it's the person who used the command.Custom commands
$(random.chatter)A random viewer who is in chat right now.Custom commandsTimers
$(raider)The channel that just raided you.Raid shoutout
$(username)The new member's Discord username, as plain text without a mention.Discord welcome

Channel and stream

Fill in details about your channel, your current stream, or your Discord server.

VariableWhat it becomesWorks in
$(channel)Your Twitch channel name.Custom commandsGo live announcementTimersDiscord notifications
$(title)Your current stream title (“Untitled stream” if it's empty).Go live announcementTimersDiscord live alert
$(game)Your current Twitch category (“Just Chatting” if it's empty). In a raid shoutout, it's what the raider was streaming.Go live announcementRaid shoutoutTimersDiscord live alert
$(server)Your Discord server's name.Discord welcome

Counters

Show a number that the bot keeps track of.

VariableWhat it becomesWorks in
$(count)In a custom command: how many times that command has been used in your channel, including this time. In !birthday: how many birthdays are today.Custom commands!birthday

Birthdays and dates

Used in the custom wording for birthday commands (Modules → Birthdays) and the Discord birthday post.

VariableWhat it becomesWorks in
$(names)Everyone whose birthday it is, separated by commas.!birthday!nextbdayDiscord birthday post
$(name)The person the command is about.!whenbday!addbday!delbday!editbday
$(date)The birthday date: 02/14 in !whenbday, Feb 14 in !nextbday.!whenbday!nextbday
$(month)The month that was saved, as two digits (02).!addbday!addmybday!editbday
$(day)The day that was saved, as two digits (14).!addbday!addmybday!editbday

Moderation log (Discord)

Used in the Discord alert AxyraBot posts when it deletes a message, times someone out or bans someone in your Twitch chat. A line whose variables are all empty is left out, so "Message: $(message)" only shows for deleted messages.

VariableWhat it becomesWorks in
$(target)The person who was moderated: for a deleted message, who sent it.Discord mod alert
$(message)The chat message that was deleted, exactly as it was typed. Empty for bans and timeouts.Discord mod alert
$(moderator)Who took the action. For automatic actions, that's AxyraBot.Discord mod alert
$(action)The action: ban, timeout or delete.Discord mod alert
$(verb)The action as words: “banned”, “timed out” or “moderated (message deleted)”, so it reads well after “was”.Discord mod alert
$(emoji)An emoji for the action: 🔨 ban, ⏱️ timeout, 🗑️ delete.Discord mod alert
$(reason)Why it happened, for example “Blocked term: …”.Discord mod alert

Moderation

AxyraBot checks every chat message against your blocked terms first, then your spam filters. When one matches, it takes the action you picked: delete the message, time the person out (60 seconds unless you set a length), or ban them. It stops at the first match. Your own messages as the broadcaster are never moderated.

Blocked terms

On Blocked Terms, add words or phrases that aren't allowed. They match whole words, in any capitalization: blocking “cat” catches “CAT” but not “category”.

Spam filters

On Spam Filters, turn on any of these:

FilterCatches a message when…
CapsIt has at least 10 letters and 70% or more of them are capitals.
LinksIt contains a web address, like https://…, www.… or something.com (also .gg, .tv, .io and other common endings).
LengthIt's longer than 400 characters.
EmotesThe same word or emote appears 5 or more times.

If you link Discord, AxyraBot can post an alert there each time it deletes, times out or bans someone. See Discord.

Modules

Modules are optional automations. Turn them on with the switch next to each one on the Modules page, and press its pencil to change its settings.

ModuleWhat it doesVariables
Go live announcementPosts a message in your chat when your stream goes live.$(channel)$(title)$(game)
Raid auto-shoutoutThanks raiders with a message in chat. It can also send Twitch's own /shoutout, with an optional minimum raid size.$(raider)$(game)
BirthdaysTurns on the birthday commands and the midnight birthday post.Birthday variables

Timers and Last.fm are modules too, and are explained next. The Timers switch pauses all your timers at once, and each timer also has its own switch.

Timers

Timers post a message in your chat on a schedule, like your socials every 20 minutes. Create them in the Timers section of the Modules page. You can have several, and each runs on its own.

SettingWhat it means
MessagesOne or more messages, up to 500 characters each. With several, they're sent in order or at random (random never repeats the same one twice in a row).
IntervalHow often the timer comes due: every 5 to 1440 minutes.
Minimum chat messagesHow many messages viewers must have sent recently. Use 0 to always send.
Counted over the lastHow far back those messages are counted (1–120 minutes). The bot's own messages don't count.
Only while liveWhen on, the timer is skipped while you're offline.

When a timer sends

  • A new or re-enabled timer waits one full interval before its first message.
  • When it comes due, it sends one message, unless chat was too quiet, you're offline (for “only while live” timers), or AxyraBot isn't in your chat. Then it's skipped.
  • Sent or skipped, it waits a full interval again. You'll never get a burst of catch-up messages after a quiet stretch.
  • Timers in the same channel always send at least 30 seconds apart.

Timer messages can use $(channel), $(title), $(game) and $(random.chatter). Each timer shows when it next checks, and why it was last skipped.

Last.fm

Connect your Last.fm profile, and !song in your chat says what you're listening to. Set it up from the Modules page: press the pencil next to Last.fm, add your username or profile link, save, and turn the module on.

PlaceholderWhat it becomes
{songname}The song's name.
{artist}The song's artist.
  • The default message is {artist} - {songname}. If nothing is playing, it says “No song is playing”. You can change both.
  • Your music app has to be scrobbling to Last.fm, and your recent listening has to be public on Last.fm.
  • While the module is on, it answers !song instead of any custom command with that name. While it's off, a custom !song works as usual.
  • A channel gets one answer every 5 seconds, so a chat full of !song gets one reply.

Birthdays

With the Birthdays module on, your community can save birthdays and AxyraBot celebrates them at midnight in your time zone. Manage the list on the Birthdays page, and change any command's wording on the Modules page.

CommandWho can use itWhat it does
!addmybday MM DDEveryoneSaves your own birthday, e.g. !addmybday 02 14. Once saved, only a mod can change it.
!birthdayEveryoneLists today's birthdays.
!nextbdayEveryoneShows the next upcoming birthday.
!whenbday @userEveryoneShows someone's saved birthday.
!addbday name MM DDBroadcaster, modsSaves a birthday for someone else.
!editbday name MM DDBroadcaster, modsChanges a saved birthday.
!delbday nameBroadcaster, modsDeletes a saved birthday.

Giveaways

Run a giveaway from the Giveaways page:

  1. Set a keyword. Viewers enter by typing it in chat exactly, with nothing else in the message (capitals matter).
  2. Optionally give subscribers better odds with the subscriber luck multiplier, and turn on chat announcements.
  3. Press Start. Entries appear in the Users list as they come in, and you can remove anyone.
  4. Stop the giveaway and pick a winner. AxyraBot picks at random, weighted by the multiplier.

Discord

On the Discord page, sign in with Discord and pick a server you manage. If AxyraBot isn't in that server yet, you'll get an Add to Discord button. Then you can set up:

  • Notifications: a post when you go live, a birthday post, and alerts when AxyraBot moderates your Twitch chat. Each message can be customized with variables.
  • Welcome messages for new members, with an optional image banner. Use $(user), $(username) and $(server).
  • Moderation log: choose which server events (bans, deleted messages, role changes and more) get logged to a channel. A deleted message is logged with who sent it, what it said and who deleted it. Messages people delete themselves aren't logged.
  • Role mappings, reaction roles and tickets to organize your server. When a ticket is closed, the person who opened it loses access and the channel is kept as a record, moved into a category you choose.
  • Modules: turn whole groups of slash commands on or off for the server.

Slash commands

Type / in your server to see them all. Moderation commands only appear for members with the matching Discord permission.

GroupCommands
Moderation/ban, /kick, /softban, /timeout, /untimeout, /warn, /warnings, /delwarn, /clearwarnings, /purge, /lock, /unlock, /lockdown, /slowmode, /deafen, /undeafen
Case history/modlogs, /modstats, /case, /reason, /note, /notes, /delnote, /clearnotes
Roles/role, /addrole, /delrole, /rolecolor, /rolename, /temprole, /rolepersist, /members, /addmod, /delmod, /rank, /addrank, /delrank
Server tools/announce, /setnick, /addemote, /ignorechannel, /module, /giveaway
Info/whois, /roleinfo, /avatar, /emotes, /inviteinfo, /commands
Personal/afk, /remindme, /highlights
Fun/poll, /roll, /rps, /color, /pokemon, /github
Tags/tag, /tags (saved text snippets anyone can post)

Your Twitch custom commands also work in the linked server: type !name in any channel.

Importing commands

Moving from another bot? On the Import page you can bring over your custom commands from Nightbot, StreamElements or Fossabot instead of retyping them.

Editors & access

On the Roles page, give someone the Editor role to let them manage your channel's dashboard: commands, moderation, modules, timers and more. After logging in, they can switch to your channel with the channel picker at the top of the dashboard. Only you and your Editors can change your settings.

Chat commands that change things, like !title or !addcom, follow your Twitch roles instead: they work for you and your Twitch moderators.