Nightbot comes with default commands like !commands, !title, !game, !permit, !poll, !songs and !winner, and you add your own with !commands add !name response. Below is the full default list, the variables you’ll actually use, and 20 custom commands you can paste straight into chat.
Nightbot default commands
| Command | What it does |
|---|---|
!commands | Links to your channel’s command list. Also used to add, edit and delete commands. |
!commercial | Runs an ad break for a set length. |
!filters | Manages spam protection filters. |
!game | Shows the current category. !game [name] changes it. |
!marker | Adds a stream marker from chat. |
!nightbot | Channel controls, such as !nightbot part to make Nightbot leave. |
!permit | Lets a user post a link for a short time. |
!poll | Creates a poll (!poll new) or shows results (!poll results). |
!regulars | Adds or removes people from the Regular userlevel. |
!songs | Song requests: request, current, next, skip, list, volume and more. |
!tags | Shows the stream tags. !tags [tags] sets them. |
!title | Shows the stream title. !title [text] changes it. |
!winner | Picks a random person from chat. |
Default commands are listed in the Nightbot dashboard, where you can switch them off or change who can use them.
How to add Nightbot commands
From chat
You need to be the channel owner or a moderator. The pattern is:
!commands add !name response text
!commands edit !name new response text
!commands delete !name
Optional flags go after the command name:
-ul=sets who can use it:owner,moderator,twitch_vip,regular,subscriberoreveryone(the default).-cd=sets a cooldown in seconds, so the command can’t be spammed.-a=makes the command call another command (an alias).
!commands add !rules -ul=everyone -cd=30 Be kind, no spam, no spoilers. Full rules on the About page.
From the dashboard
- Log in to nightbot.tv with the account you stream on (Twitch or YouTube).
- If Nightbot isn’t in your chat yet, click the Join button at the top right, then follow the pop-up to make Nightbot a moderator (on Twitch, type
/mod nightbotin your chat). - Go to Commands, then Custom, and click Add Command.
- Fill in the command name, the message, the userlevel and the cooldown, then save.
The dashboard is easier for long messages and for commands with variables, since you can see the whole thing before saving.
Nightbot variables you’ll use most
| Variable | What it prints |
|---|---|
$(user) | The name of the person who used the command |
$(touser) | The first word after the command, or the user’s name if there isn’t one |
$(query) | Everything typed after the command |
$(1) to $(9) | The first to ninth word after the command |
$(count) | How many times the command has been used |
$(channel) | Your channel name |
$(time US/Eastern) | The current time in a timezone |
$(countdown Dec 25 2026 12:00:00 AM EST) | Time left until a date |
$(twitch $(channel) "{{uptimeLength}}") | Twitch info such as uptime, game, title or followers |
$(urlfetch https://...) | Plain-text output from a URL (under 400 characters) |
$(eval ...) | Runs a short piece of JavaScript, useful for random picks |
The $(twitch) variable can show {{game}}, {{title}}, {{followers}}, {{viewers}}, {{uptimeLength}} and more for any channel.
20 custom Nightbot commands to copy
Paste these into your chat as the owner or a mod. Replace anything in square brackets first.
Info commands
!commands add !discord Join the Discord: [your invite link]
!commands add !socials YouTube: [link] | TikTok: [link] | Instagram: [link]
!commands add !schedule I stream [days] at [time + timezone]. Full schedule on the About page.
!commands add !rules Be kind, no spam, no self-promo, no spoilers. Mods have the final say.
!commands add !setup Camera: [model] | Mic: [model] | PC: [specs]. Full list in the Setup panel.
!commands add !uptime Live for $(twitch $(channel) "{{uptimeLength}}")
!commands add !time It's $(time [Your/Timezone] "h:mm a") for me right now.
!commands add !stats $(twitch $(channel) "{{followers}} followers, {{viewers}} watching now")
Shoutout and community commands
!commands add !so -ul=moderator Go follow $(touser) at https://twitch.tv/$(touser) - they were last playing $(twitch $(touser) "{{game}}")
!commands add !lurk $(user) is lurking. Enjoy, and thanks for the view.
!commands add !unlurk Welcome back, $(user).
!commands add !hug $(user) hugs $(touser). That's $(count) hugs given in this chat.
!commands add !hydrate -cd=600 Water check. Everyone take a sip, including me.
Fun commands
!commands add !8ball -cd=10 $(eval a=["Yes.","No.","Maybe.","Ask again later.","Definitely.","Not a chance."]; a[Math.floor(Math.random()*a.length)])
!commands add !roll -cd=5 $(user) rolled a $(eval Math.floor(Math.random()*6)+1)
!commands add !love $(user) and $(touser) are $(eval Math.floor(Math.random()*101))% compatible.
!commands add !death -ul=moderator Death counter: $(count)
!commands add !nextstream -cd=30 Next stream in $(countdown [Mon DD YYYY hh:mm:ss AM TZ])
Mod helper commands
!commands add !links -ul=moderator Links are off for non-mods. Ask a mod for a !permit if it's relevant.
!commands add !spoilers -ul=moderator No spoilers please. Repeat spoilers get a timeout.
To show your commands to viewers, add a Commands panel to your About page that says “Type !commands in chat”. Our panel size guide has the specs.
Timers and spam protection
Nightbot can also post messages on a timer, such as your Discord link or a follow reminder, from the Timers section of the dashboard. Keep timers few and spaced out, or chat starts scrolling past them.
Under Spam Protection you can filter caps, emotes, links, symbols, repeated messages and a blacklist of words. The blacklist accepts wildcards like test* and regular expressions written as ~/pattern/. For which words to block, see our Twitch banned words list.
Common problems
- Nightbot doesn’t reply. Check it’s joined your channel in the dashboard and that it’s a moderator.
- “You don’t have permission”. Only owners and mods can add commands from chat. Check the command’s userlevel.
- A command replies once then goes quiet. That’s the cooldown. Lower
-cd=if it’s too long. - The variable prints as text. Check the brackets: variables use
$( ), and quotes must be straight quotes, not curly ones.
FAQ
How do I see all my Nightbot commands?
Type !commands in chat. Nightbot replies with a link to your channel’s public command list. You can also see them in the dashboard under Commands.
How do I make a command mod-only?
Add -ul=moderator after the command name, for example !commands add !so -ul=moderator ..., or change the userlevel in the dashboard.
Can Nightbot do a shoutout?
Yes. Use $(touser) for the name and $(twitch $(touser) "{{game}}") for what they last played, like the !so command above.
How do I make a counter?
Use $(count). It goes up by one every time the command runs, so make counters mod-only to stop chat inflating them.
Does Nightbot work on YouTube and Kick?
Nightbot works with Twitch, YouTube, Trovo and SOOP. It doesn’t list Kick as a supported platform, so Kick streamers use Kick’s own bot tools or a bot that supports Kick. Some variables, like $(twitch), only return Twitch data.
How do I remove Nightbot from my channel?
Type !nightbot part in chat as the channel owner. Nightbot leaves your channel, and you can bring it back with the Join button in the dashboard.
Match your commands to your panels
Commands like !discord, !schedule and !rules work best with panels that say the same thing. Our panel sets include Commands, Discord, Schedule and Rules panels in 4 colours, and there’s a free set of six to start with.