ORDER STREAM
BOOSTING IN 1 MINUTE
  • Full confidentiality
  • No risk of ban
  • From 0.0004$ per hour
Until price increase:
02:50:58
Start boosting →
How to Set Up Nightbot on Twitch: Adding a Bot and Configuring Chat Commands
29 June, 2026

How to Add Nightbot to Your Twitch Chat and Configure Commands

Twitch constantly updates its viewer retention algorithms—from simple counters to strict activity analysis. When you're grinding out content for 12 hours straight, having unmoderated spam in your chat is incredibly demotivating. A Twitch chat bot (and specifically the legendary Nightbot) is your 24/7 cloud-based moderator. It filters garbage, triggers timers, and lets viewers interact with the streamer using simple commands. A basic Nightbot setup for Twitch takes five minutes tops.

Drawing on our experience moderating dozens of channels, we constantly see beginners making the exact same mistake. People invest in promotion and get traffic, but they bleed organic viewership simply because their chat looks dead. Automation solves this. Let's break down how to create Twitch chat commands using the exclamation mark, assign permissions, and set up anti-spam so the platform's algorithm sees engagement, not chaos.

What is a Twitch Chat Bot and Why Do You Need One?

A chat bot is a fully-fledged application running via the modern Twitch API (EventSub) and the IRC protocol. The bot reads your viewers' messages, analyzes them, and instantly drops a reply or a punishment (timeout/ban). Twitch limits a single bot message to 500 characters, and you can pack a massive amount of functionality into that space.

For your channel to grow, you need synergy: the official chat bot keeps order, while smart positioning sends the algorithm the right signals. If you're just starting your career, we initially recommend learning how to set up Twitch chat before diving into automation.

Automation is critical for mid-sized and large channels once the chat starts moving too fast. While you're sweating in a ranked match, someone has to answer questions like "What rank is this?" and "Where can I download your crosshair?". This is exactly where out-of-the-box solutions come in. So, if you're wondering how to add a bot to your Twitch chat, keep reading—this article covers every aspect, from configuration to comparing different bots.

How to Connect Nightbot to Twitch: A Step-by-Step Guide

First, you need to link your account to the bot's servers. Installing Nightbot doesn't require downloading any software to your PC—everything runs in the cloud. If you're looking for how to add Nightbot to your Twitch stream, just follow this workflow.

  1. Go to the official nightbot.tv website and click the Sign Up button.
  2. Choose to log in with Twitch (OAuth). The platform will request permission to read your chat.
  3. In the Dashboard that opens, click the blue Join Channel button in the top right corner.
  4. Crucial step: open your own Twitch chat and manually type the /mod nightbot command.
  5. Basic setup: navigate to the Settings tab. Verify that the Command Prefix is set to the default — !. Select your current Timezone so your timers work correctly. You don't need to configure the language separately: Nightbot automatically understands inputs in any language or character set. 

The bot will be able to answer simple commands without moderator privileges, but Twitch will block it from deleting someone else's spam, issuing timeouts, or posting links (the standard user anti-spam will kick in). You can check its status by typing /mods in your chat—the bot should be on the list.

How to Create Twitch Commands Using the Exclamation Mark

How to Create Twitch Commands Using the Exclamation Mark

The bot's syntax is straightforward: a viewer types a trigger (prefix), and the bot responds. By default, the exclamation mark is used because the server can easily parse it in a wall of text. Let's break down how to configure Twitch chat commands for different tasks.

Default Nightbot Commands

Once logged in, you immediately have access to a basic command pool. Go to Commands -> Default. You'll find the defaults here: !poll (voting) and !commands (displays a list of all available commands). You can simply Enable or Disable them.

Creating Custom Commands: Syntax, Variables, and Responses

To add a command tailored to you, go to Commands -> Custom and click Add Command. In the Command field, type your trigger (e.g., !pc), and in the Message field, drop your specs. You can make the text dynamic by using variables.

  • $(user) — outputs the username of the person who typed the command.
  • $(touser) — targets the user who was tagged. Example response: $(user) firmly high-fives $(touser).
  • $(urlfetch) — a top-tier feature for gamers. It parses external APIs. For example, you can output your FACEIT Elo or Valorant stats directly into the chat.

Commands for Viewers and Moderators

The Userlevel parameter dictates access rights. You can restrict triggers:

  • Owner: channel owner only.
  • Moderator: moderators (great for admin commands).
  • Subscriber / Regular: paid subs and regulars.
  • Everyone: available to anyone.

Always configure the Cooldown — the global delay between command uses. Set it to at least 5-10 seconds so a single viewer can't spam your chat.

How to Edit and Delete Commands

Nightbot allows you to manage it directly from the chat. To do this, use the built-in commands (by default, these are restricted to the Owner to protect the chat from vandalism):

!addcom !discord Join our Discord: [link]

!editcom !discord New link: [new link]

!delcom !discord

This is perfect for when you're mid-game and need to drop info quickly.

Advanced Settings

Nightbot for Twitch: Advanced Settings

Now that you know how to add a bot to your Twitch chat, let's talk about protection. The Spam Protection section is your shield. The Twitch algorithm penalizes channels where spam and phishing links run rampant.

  • Blacklist Words/Phrases: drop all your banned terms (TOS words) here. The bot will issue an instant timeout for them.
  • Excess Caps / Emotes: prevents walls of capital letters and emote spam.
  • Links: blocks URLs. With link filtering enabled, a mod can type !permit [username], giving that user a 60-second window to post a single URL without getting banned. By default, moderators and the owner are immune to these filters.

The second crucial feature is Timers. These are automated messages (like donation or social media links). In the timer settings, there are two sliders: Interval (how often it posts in minutes) and Chat Lines (the minimum number of messages from viewers required).

If the chat is asleep, the timer won't trigger — and that's exactly how it should be. Don't lower the Chat Lines parameter in a dead chat: a bot having a monologue with Discord links in 2026 is flagged by algorithms as spam and can tank your channel's visibility. Automation is useful for maintaining activity, not creating the illusion of it.

The AutoDJ Module (Song Requests): Why You Should Disable It

Nightbot has a feature that lets viewers request tracks via the !sr command. We strongly recommend avoiding this in 2026. Playing music from YouTube or Spotify on stream instantly mutes your VODs and puts you at high risk for DMCA strikes and a subsequent channel ban. If you need copyright-free music, use dedicated, safe services (like Harris Heller's StreamBeats or Pretzel) instead of the bot's built-in player.

Nightbot Variables: How to Use Them

Variables make your custom commands dynamic. You can insert them right into the bot's text response. Basic examples:

  • $(user) — outputs the username of the viewer who triggered the command.
  • $(touser) — addresses a specific person if they were tagged with an @.
  • $(weather [city]) — shows the current weather.
  • $(count) — acts as a counter (e.g., how many times the streamer died in-game).

Moobot, StreamElements, Streamlabs

Nightbot Alternatives: Moobot, StreamElements, Streamlabs

The industry never stands still. While some are figuring out how to add Nightbot on Twitch, others are testing alternatives. The best bot depends entirely on your specific needs.

Moobot

An intuitive bot heavily focused on built-in engagement and Giveaways. Pros: the interface is simpler than Nightbot's, and it has its own built-in loyalty system (Moopoints). Cons: limited capabilities for handling custom APIs.

StreamElements / Streamlabs

The All-in-One giants. You get overlays, tip systems, and loyalty points all in one place. In 2026, their onboarding is as frictionless as possible. For full-time commercial streaming, they are practically mandatory.

Feature Comparison



Feature

Nightbot

Moobot

StreamElements

Streamlabs Cloudbot

Main Focus

Moderation and custom commands

Polls, engagement, and giveaways

All-in-One: chat, tips, overlays

Streamlabs software integration

Setup Difficulty

Medium

Low

Medium (onboarding required)

Low (if streaming via their OBS)

Loyalty System

No

Yes (Moopoints)

Yes (deep customization)

Yes

API Capabilities

Excellent ($(urlfetch))

Limited

Excellent

Good

You can find more tips on stream optimization and working with algorithms in our stream algorithms blog.

Chat command

Ready-to-Use Command Packs for Different Stream Formats

Here are proven Twitch Nightbot commands, broken down by format.

For Gamers

Viewers want to know your settings. Set up commands for your gear, crosshair, and sensitivity. If a bot quickly answers questions about DPI or hardware, the viewer sticks around. And if you're still looking for your niche, check out our tier list of the best games to stream on Twitch

For IRL and Just Chatting

Just Chatting is built entirely on interaction. ???? Warning: The $(eval) function executes JavaScript code on Nightbot's servers, and only the result is sent to chat. A syntax error or granting $(eval) access to untrusted viewers can break the bot. Use it only if you know JS (for example, to build a Magic 8-Ball).

For Creatives

Artists need commands for their Commissions and price lists.

Interactive Commands (Copy-Paste)

Copy these commands and paste them directly into your chat (make sure the bot is modded first). We intentionally removed dangerous $(eval) structures so you don't break the bot with a random typo. For displaying stream uptime (!uptime), we recommend simply enabling the built-in default command in the Default tab.

  • !addcom !discord Join the Discord: [link] (Note: Twitch might block direct invites, use linker services)
  • !addcom !twitter Follow my daily updates on Twitter/X: [link]
  • !addcom !followage $(touser) has been following the channel for: $(urlfetch https://beta.decapi.me/twitch/followage/$(channel)/$(touser)) (Warning: relies on the third-party decapi.me server. If it goes down, check the Nightbot forums for a new endpoint)
  • !addcom !hug $(user) gives a big hug to $(touser) <3
  • !addcom !slap $(user) lands a massive slap on $(touser)
  • !addcom !sens Sens: 800 DPI, 1.2 in-game.
  • !addcom !crosshair CS2 Share Code: CSGO-XxXxX
  • !addcom !pc CPU: Core Ultra 9 285K, GPU: RTX 5080, RAM: 32GB
  • !addcom !donate Tip jar for pizza: [link]
  • !addcom !rules 1. No politics 2. No toxicity 3. No spoilers
  • !addcom !lurk $(user) is going into lurk mode, but still supporting the stream!
  • !addcom !socials All my socials are here: [Linktree link]
  • !addcom !game We are currently playing: $(twitch $(channel) "{{game}}")
  • !addcom !title Current stream title: $(twitch $(channel) "{{title}}")

 

Please note: variables that ping the Twitch API to pull stream status only work correctly when your channel is online (stream is live). They might throw an error when you're offline.

Common Bot Setup Mistakes and How to Fix Them

In our testing, we noticed that 90% of bot issues are solved by a basic checklist. If you've finished setting up Nightbot for Twitch but it's acting up, check these points:

  • The bot can't delete spam: you forgot to type /mod nightbot in the chat. The bot can reply with text but lacks moderation privileges.
  • Commands are duplicating: you connected two bots at once using the exact same prefix. Leave moderation duties to one account.
  • The bot is deleting moderator links: by default, moderators are immune to filters. If they're getting timed out, someone manually changed the global Exempt Userlevel setting in Spam Protection to Owner. Switch it back to Moderator.

FAQ

Can I use multiple bots at the same time?

Yes, you can. The key is to separate their functions so they don't respond to the same command simultaneously.

 

How do I stop viewers from using certain commands?

In the Nightbot Dashboard, edit the command and change the Userlevel parameter from Everyone to Subscriber or Moderator.

 

Does the bot support non-English languages?

Yes. The bot easily parses inputs and sends responses in any language or character set without issue.

 

Why is the bot banning me (the channel owner) for caps?

By default, the Owner and Moderators have full immunity to spam filters and shouldn't get banned. If you got a timeout, it means someone manually revoked this immunity. Go into the Excess Caps module settings and check if the Exempt Userlevel is restricted.

 

How do I add emojis or variables to a command response?

You can simply copy and paste emojis straight into the Message field. For variables, use the dollar sign and parentheses syntax, for example: $(user) or $(touser).

 

Do I need to create a separate account for the bot?

No, official chat bots log in through their own accounts, which are given a special bot badge by the platform. You only need to read the documentation and grant access via OAuth.

Summary: Chat Bot Setup Checklist

Now you know how to set up a bot in your Twitch chat. Remember: automation is your foundation. While others are catching timeouts from broken scripts, you'll be streaming in peace.

  1. Log in via the website and click Join Channel.
  2. Give the bot moderator privileges via /mod.
  3. Load up a basic list of commands (socials, PC specs, rules).
  4. Configure Spam Protection against random trolls.
  5. Set up a couple of timers to keep your active audience informed, keeping Chat Lines limits in mind.

To ensure your channel's visuals match the quality of your newly leveled-up chat, check out the latest Twitch channel branding guidelines.

Twitch Mobile Banner