What a Twitch command is and why you'd add one

A Twitch command is a text shortcut that does something when you or your viewers type it in chat. The most common use is a command that displays information — type !socials and the bot posts your Discord link, or type !schedule and it shows when you stream next. Commands save you from typing the same thing over and over, and they let viewers find information without asking you directly.

You create commands through a chatbot, a program that watches your chat and responds to commands you've set up. The most widely used free option is Nightbot, which works on any Twitch channel and requires no coding knowledge. Other options like StreamElements and Moobot do the same thing, but Nightbot is the simplest starting point.

Commands are part of how you control what information flows through your chat. Unlike the channel settings that control who can post, commands let you decide what gets said and when — which matters if you're streaming content you want to keep family-friendly or if you want to direct people to specific links without repeating yourself.

Key Takeaways

  • Nightbot is the most straightforward free chatbot for adding commands, and it connects to your Twitch channel in under five minutes.
  • A command needs a trigger (what viewers type, like !socials) and a response (what the bot posts back).
  • You create and edit commands through Nightbot's dashboard, not through Twitch itself.
  • Commands take effect when ready after you save them, and any viewer can use them unless you restrict who can trigger them.
  • The most useful first commands are ones that answer questions you answer repeatedly — schedule, socials, donation link, or game name.

Setting up Nightbot on your Twitch channel

Go to nightbot.tv and click the blue "Sign In with Twitch" button. You'll be taken to a Twitch login page where you enter your Twitch username and password. Twitch will then ask you to confirm that you're letting Nightbot access your channel — click "Authorize" to proceed.

After authorization, you'll land on Nightbot's dashboard. Look for the left sidebar menu and click Commands. This is where you'll add, edit, and delete commands. You should see a few default commands already there (like !commands, which lists all available commands). These are harmless — you can leave them or delete them if you prefer.

Before you add your first command, you need to make Nightbot a moderator in your channel so it has permission to post. Go back to your Twitch channel, click the gear icon (Settings), then select Moderation from the left menu. Under the Moderators section, type nightbot and click the plus icon to add it. Nightbot will now be able to post commands in your chat.

Creating your first command

In the Nightbot dashboard, click the blue Add Command button on the Commands page. A form will appear with two main fields: Command and Message.

In the Command field, type the trigger — the text that viewers will type to set up the command. Always start with an exclamation mark. For example, type !socials or !discord. Keep it short and straightforward to remember. In the Message field, type what you want the bot to post in response. If you're making a !socials command, you might type: Join our Discord at discord.gg/yourcode — follow on Twitter @yourhandle.

Leave the other settings at their defaults for now (Cooldown, User Level, and Aliases are optional tweaks you can add later). Click Create Command and you're done. The command is now live in your channel.

Test it by typing the command in your own chat — you should see the bot respond when ready. If it doesn't work, go back to the Commands page, check that you added Nightbot as a moderator, and verify that the command text matches exactly what you typed.

Common commands to set up first

The commands that save you the most time are the ones that answer questions you hear repeatedly. Here are four that most streamers add early:

  • !schedule — Post when you stream next. Example: I stream Monday, Wednesday, and Friday at 8 PM EST.
  • !socials — Post your Discord, Twitter, or other links. Example: Discord: discord.gg/yourcode | Twitter: @yourhandle | YouTube: youtube.com/yourname
  • !donate — Post your donation or tip link. Example: Support the stream at streamlabs.com/yourname or tip at ko-fi.com/yourname
  • !game — Post the current game title. Example: We're playing Elden Ring today!

Add these one at a time so you can test each one. Once you're comfortable with the process, you can add more specialized commands — !rules for channel guidelines, !lurk for viewers who want to watch silently, or !uptime (which Nightbot can fill in automatically to show how long you've been streaming).

Controlling who can use commands

By default, any viewer can trigger any command. If you want to restrict a command so only you or your moderators can use it, you can set that in the command settings.

Click on an existing command to edit it. Look for the User Level dropdown. The options are Viewer (anyone), Regular (people you've marked as regulars), Moderator (your mods and you), and Streamer (only you). If you have a command that costs money or gives away something, set it to Moderator or Streamer so you control when it runs. For informational commands like !schedule, leave it at Viewer.

You can also add a Cooldown so the command doesn't spam chat if multiple people trigger it at once. A 5-second cooldown means the bot will only respond once every 5 seconds, even if ten people type the command. This is useful for popular commands but not necessary for most setups.

Editing and deleting commands

To change what a command does, go to the Commands page in Nightbot, find the command in the list, and click the pencil icon next to it. Edit the Message field with whatever new text you want, then click Update Command. The change takes effect when ready.

If you want to remove a command entirely, click the trash icon next to it. Nightbot will ask you to confirm — click Delete and it's gone. Viewers who try to use it will get no response.

You can also create aliases — alternate triggers for the same command. If you have a !socials command, you might add !links as an alias so viewers can type either one and get the same response. To add an alias, edit the command and look for the Aliases field, then type the alternate trigger.

Troubleshooting commands that don't work

If you type a command and nothing happens, check these three things first. One: make sure Nightbot is a moderator in your channel (go to your Twitch channel settings and verify it's in the Moderators list). Two: make sure you typed the command exactly as you created it — !socials and !Social are different. Three: check that the command actually exists by going to the Nightbot dashboard and looking at the Commands list.

If Nightbot was working and suddenly stops responding to commands, you may have been logged out of the dashboard. Go back to nightbot.tv, sign in again, and check that your channel is still connected. If commands work in your channel but not in another channel you moderate, remember that Nightbot commands are channel-specific — you'd need to set them up separately in each channel.

If you see an error message when trying to create a command, the most common cause is a special character in the Message field that Nightbot doesn't recognize. Stick to regular letters, numbers, spaces, and basic punctuation (periods, commas, hyphens, parentheses). Avoid emoji or symbols unless you're sure they're supported.

Moving beyond basic commands

Once you're comfortable with straightforward text commands, Nightbot supports more advanced features. You can use variables — placeholders that change automatically. For example, $(user) inserts the name of whoever typed the command, so !hug $(user) would post !hug @viewername. The !uptime command uses a variable to show how long you've been live without you having to update it manually.

You can also link commands to external data. Some streamers create a !song command that pulls the current song from their music player, or a !weather command that shows the real weather. These require a bit more setup but Nightbot's documentation walks you through it.

For now, focus on getting three or four basic text commands working. That covers most of what a new streamer needs, and you can expand later as your channel grows.

Frequently Asked Questions

Can I add commands without using a chatbot?

Twitch itself doesn't have a built-in command system, so you need a chatbot. Nightbot is free and requires no setup beyond signing in. Other options like StreamElements and Moobot work the same way but have different interfaces. Stick with Nightbot unless you have a specific reason to switch.

What if I want a command that only I can see?

Set the User Level to Streamer so only you can trigger it. The command will still exist and work, but viewers won't be able to use it. This is useful for testing commands before making them public or for personal reminders you want to post yourself.

Can I use the same command trigger in multiple channels?

Yes, but each channel's version is separate. If you moderate multiple channels, you'd need to create the command in each channel's Nightbot dashboard. Changes to one channel's command don't affect the others.

How long does it take for a command to start working after I create it?

Commands take effect when ready. If you create a command and it doesn't work right away, the issue is usually that Nightbot isn't a moderator or you typed the trigger incorrectly. Test it in your own chat first before assuming it's broken.

Can viewers see a list of all available commands?

Yes. Nightbot includes a default !commands command that lists every command you've created. Viewers can type it anytime to see what's available. You can edit this command if you want to customize the message, but most streamers leave it as-is.