Skip to content

Chat automation

Nightbot commands list: 30 best custom commands to copy

A list of 30 copy-paste Nightbot commands for YouTube Live and Twitch: shout-outs, lurk, 8ball, dice, counters and more, each with the one chat line that adds it.

A live chat window where short bot replies answer viewer commands such as shout-outs, dice rolls and links.

Every command below comes with one line you can paste into your own live chat. Type it as the channel owner or a moderator, and the bot creates the command on the spot. The same !commands add line works in Nightbot and in Looomy.

Most of these work the same in both bots. Where they differ, usually because Nightbot has no random variable, you get a Looomy line and a Nightbot line. Where a command depends on Twitch, its notes say what to use on YouTube.

To add one, copy its line with the copy button, paste it into chat and send it. The bot confirms, or tells you why it could not add the command, for example because the name is already taken. Then have someone else type the command to test it. Replace anything that says "your", such as @yourhandle, before you send it.

Two things to know first:

  • One bot at a time. If Nightbot and Looomy are both in your chat, one !commands add line creates the command in both, and viewers get two replies. Add each command to one bot only.
  • 200 characters. YouTube chat messages are limited to 200 characters, and every line here fits. If you write a longer one, add it from your bot's dashboard instead.

Nightbot commands list at a glance

CommandWhat it doesIn Nightbot
!socialsLists your linksSame line
!discordShares your community inviteSame line
!subAsks viewers to subscribeSame line
!uptimeSays how long you have been liveTwitch version only
!timeShows your local timeSame line
!scheduleShows when you streamSame line
!todaySays what today's stream is aboutSame line
!rulesPosts the chat rulesSame line
!setupLists your gearSame line
!questionRepeats a viewer's questionSame line
!soShouts out another creatorSame line
!lurkLets a viewer say they are lurkingSame line
!unlurkWelcomes a lurker backSame line
!helloGreets a viewerSame line
!byeSays goodbye to a viewerSame line
!hugSends someone a hugSame line
!hydrateReminds the streamer to drink waterSame line
!8ballAnswers a yes-or-no questionDifferent line
!rollRolls a dieDifferent line
!coinflipFlips a coinDifferent line
!rpsPlays rock, paper, scissorsDifferent line
!lovecalcScores two people's compatibilityDifferent line
!iqGives a viewer a random IQDifferent line
!vibePicks today's vibeDifferent line
!dropPicks where to drop in a battle royaleDifferent line
!pickuplinePosts a gamer pickup lineDifferent line
!matchSets up a matchup from two wordsSame line
!hypeCounts how many times chat brought the hypeSame line
!deathsCounts the streamer's deathsSame line
!roastWrites a new friendly roast every timeLooomy only

Everyday commands

These answer the questions your chat asks every stream. Let everyone use them, with a short cooldown so a burst of requests gets one reply.

!socials

!commands add !socials Find me everywhere: YouTube @yourhandle · Instagram @yourhandle · Discord https://discord.gg/yourcode

  • Viewer types: !socials
  • Bot replies: your links, exactly as written.

!discord

!commands add !discord Join the community Discord: https://discord.gg/yourcode

Test the invite while signed out before you share it.

!sub

!commands add !sub Enjoying the stream? Subscribe so you catch the next one: https://www.youtube.com/@yourhandle?sub_confirmation=1

The ?sub_confirmation=1 ending opens YouTube's subscribe prompt as soon as someone clicks the link.

!uptime

!commands add !uptime $(channel) has been live for $(uptime).

  • Viewer types: !uptime
  • Bot replies: Aaveg Plays has been live for 1 hour 24 minutes.

$(uptime) is a Looomy variable. Nightbot has no uptime variable; on Twitch, Nightbot users read it from the Twitch profile with $(twitch ...) instead:

!commands add !uptime $(channel) has been live for $(twitch $(channel) "{{uptimeLength}}").

That version does not work on YouTube, because it reads Twitch data.

!time

!commands add !time It's $(time Asia/Kolkata "h:mm A") here right now.

  • Viewer types: !time
  • Bot replies: It's 8:30 PM here right now.

Replace Asia/Kolkata with your own timezone, such as America/New_York or Europe/London.

!schedule

!commands add !schedule Live every Tuesday, Thursday and Saturday at 8 PM IST. It's $(time Asia/Kolkata "ddd h:mm A") here now.

Showing your current local time saves viewers in other countries from converting your schedule.

!today

!commands add !today Today's plan: building a stream overlay, then questions. Ask anything!

Edit it before each stream so a late arrival knows what is happening.

!rules

!commands add !rules Keep it kind. No spoilers or repeated self-promotion. Ask questions freely, and follow moderator guidance.

!setup

!commands add !setup Camera: your camera · Mic: your microphone · Software: OBS Studio

Viewers also try !gear and !pc. In Looomy, add those as alternative triggers on the same command so you only keep one list up to date.

!question

!commands add !question Question for the stream: $(query)

  • Viewer types: !question which microphone do you use?
  • Bot replies: Question for the stream: which microphone do you use?

$(query) is everything the viewer types after the command. This makes the question stand out so you notice it. To have the bot answer it instead, see commands versus real answers.

Community commands

These make regulars feel seen. Give them a cooldown long enough that chat does not fill with them.

!so (shout-out)

!commands add !so Go check out $(touser)! Tell them $(channel) sent you.

  • Viewer types: !so @Priya
  • Bot replies: Go check out Priya! Tell them Aaveg Plays sent you.

$(touser) is the first word after the command. If nobody is named, it uses the viewer's own name. Twitch shout-outs often add the other channel's last game; YouTube has no equivalent, so keep it simple. Restrict this one to moderators if you do not want viewers shouting each other out.

!lurk

!commands add !lurk $(user) is lurking. Enjoy the stream, we'll keep your seat warm!

  • Viewer types: !lurk
  • Bot replies: Maya is lurking. Enjoy the stream, we'll keep your seat warm!

!unlurk

!commands add !unlurk Welcome back, $(user)! What did we miss?

!hello

!commands add !hello Hey $(user), welcome to $(channel)!

!bye

!commands add !bye $(user) is heading out. Thanks for hanging out, see you next stream! 👋

!hug

!commands add !hug $(user) gives $(touser) a big hug!

  • Viewer types: !hug @Priya
  • Bot replies: Maya gives Priya a big hug!

!hydrate

!commands add !hydrate $(user) says: drink some water, $(channel)! 💧

Fun commands

These are the ones chat plays with. Pick three or four, not all of them: a few good fun commands get used more than ten forgettable ones.

Most use $(random ...), a Looomy variable that picks one of several options, or a number in a range. Nightbot has no random variable, so its versions use $(eval ...), which runs a short piece of JavaScript.

!8ball

Looomy: !commands add !8ball 🎱 $(user), $(random It is certain|Ask again later|Very doubtful|My sources say no|Signs point to yes)

Nightbot: !commands add !8ball 🎱 $(user), $(eval const r=["It is certain","Ask again later","Very doubtful","My sources say no","Signs point to yes"]; r[Math.floor(Math.random()*r.length)])

  • Viewer types: !8ball will we win this round?
  • Bot replies: 🎱 Maya, Signs point to yes

New Looomy accounts already include an 8ball command, without the exclamation mark, that adds a short AI-written reason to the verdict. This one is the classic fixed-answer version.

!roll

Looomy: !commands add !roll $(user) rolled a $(random 1 6)!

Nightbot: !commands add !roll $(user) rolled a $(eval Math.floor(Math.random()*6)+1)!

Change the 6 for any other die.

!coinflip

Looomy: !commands add !coinflip $(user) flipped a coin: $(random Heads|Tails)!

Nightbot: !commands add !coinflip $(user) flipped a coin: $(eval Math.random()<0.5?"Heads":"Tails")!

!rps

Looomy: !commands add !rps $(user) throws $(random rock 🪨|paper 📄|scissors ✂️)!

Nightbot: !commands add !rps $(user) throws $(eval const r=["rock 🪨","paper 📄","scissors ✂️"]; r[Math.floor(Math.random()*r.length)])!

!lovecalc

Looomy: !commands add !lovecalc $(user) and $(touser) are $(random 1 100)% compatible 💘

Nightbot: !commands add !lovecalc $(user) and $(touser) are $(eval Math.floor(Math.random()*100)+1)% compatible 💘

  • Viewer types: !lovecalc @Priya
  • Bot replies: Maya and Priya are 87% compatible 💘

New Looomy accounts already include a lovecalc command, without the exclamation mark, that adds an AI-written verdict. This one is the plain percentage version.

!iq

Looomy: !commands add !iq $(user) has an IQ of $(random 1 200). Science has spoken.

Nightbot: !commands add !iq $(user) has an IQ of $(eval Math.floor(Math.random()*200)+1). Science has spoken.

!vibe

Looomy: !commands add !vibe Today's vibe is $(random cozy|chaotic|legendary|sleepy|unhinged).

Nightbot: !commands add !vibe Today's vibe is $(eval const r=["cozy","chaotic","legendary","sleepy","unhinged"]; r[Math.floor(Math.random()*r.length)]).

!drop

Looomy: !commands add !drop $(user), drop $(random north|south|east|west|dead center|wherever the streamer does) and good luck.

Nightbot: !commands add !drop $(user), drop $(eval const r=["north","south","east","west","dead center","wherever the streamer does"]; r[Math.floor(Math.random()*r.length)]) and good luck.

Swap the directions for real locations on the map you play.

!pickupline

Looomy: !commands add !pickupline $(random Are you a loot drop? I've been searching all game.|Are you lag? My heart keeps skipping.|Are you a save point? I feel safe here.)

Nightbot: !commands add !pickupline $(eval const r=["Are you a loot drop? I've searched all game.","Are you a save point? I feel safe here."];r[Math.floor(Math.random()*r.length)])

The Nightbot version has room for only two lines, because its longer syntax has to fit in YouTube's 200 characters.

!match

!commands add !match Today's matchup: $(1) versus $(2)!

  • Viewer types: !match cats pandas
  • Bot replies: Today's matchup: cats versus pandas!

$(1) and $(2) are the first and second words after the command, in both bots.

!hype

!commands add !hype Chat has brought the hype $(count) times!

$(count) is how many times this command has run.

!deaths

!commands add !deaths Deaths so far: $(count). Chat has seen it all.

The classic death counter: every run adds one, so only moderators should be able to use it. In Nightbot, add -ul=moderator after the command name when you create it. In Looomy, add it with the line above, then change its permission to Moderators in Chatbot → Commands.

!roast

Looomy only: !commands add !roast $(ai Roast $(touser) in one friendly, harmless line)

  • Viewer types: !roast @Priya
  • One possible reply: Priya, your aim is so consistent it consistently misses.

$(ai ...) has the bot write a new line every time, which Nightbot cannot do. Each reply uses one AI answer from your Looomy plan. New Looomy accounts already include roastme, which roasts the viewer who types it; this one roasts the friend they name, or the viewer themselves if they name nobody.

Manage commands from chat

Change a command's reply without leaving the stream:

!commands edit !discord Our Discord moved: https://discord.gg/newcode

Remove one you no longer need:

!commands delete !discord

Typing !commands on its own lists the commands viewers can use. In Looomy, once your creator page is published, it replies with a link to the page's Commands tab instead, so the list never gets too long for chat.

In Nightbot, you can set who can use a command and its cooldown in the same line: -ul= takes a user level such as moderator, and -cd= takes a cooldown in seconds, for example !commands add !deaths -ul=moderator -cd=5 Deaths so far: $(count).

Looomy does not read those flags, so do not paste a line with -ul= or -cd= into Looomy: they would become part of the reply. Commands added from chat start open to everyone with a 5-second cooldown. Change permissions, cooldowns and alternative triggers in Chatbot → Commands.

Commands that need Twitch

Followage, $(twitch ...) lookups and /me replies read Twitch data or use Twitch chat features, so they have nothing to work with on YouTube. Nightbot on YouTube covers what changes and what to use instead.

Two popular commands are not in Looomy:

  • Song requests: there is no song queue. If you run loyalty points, the starter Song request reward lets viewers spend points to ask for a song, and you play it yourself.
  • Watchtime: there is no !watchtime command. With loyalty points on, viewers earn points for the time they spend chatting, and !points shows their balance.

Add a timer that points to your commands

Commands only help viewers who know they exist. One timer that names a few of them fixes that:

New here? Type !socials for my links, !discord to join the community, or !commands to see everything you can do.

Nightbot timer examples has 20 more timer messages, with settings for both bots.

A command list cannot answer every question

Thirty commands cover thirty questions. Chat will still ask what game this is, whether you finished the last boss, or which settings you use.

Looomy can answer those directly in YouTube chat from what you have taught it, and stays silent when it does not know. Viewers start a message with the bot's name, for example @looomybot what mic do you use?, and it replies with one short answer. How grounded AI answers work explains how it avoids making things up.

Commands can also do more than post text. One command can make an on-screen character react or launch a confetti burst. The command setup guide shows how.

Frequently asked questions

How do I add a custom command in Nightbot?

Type !commands add, then the command name, then the reply, in your own live chat as the owner or a moderator. For example: !commands add !discord Join us: https://discord.gg/yourcode. You can also add commands from the Commands page of the Nightbot dashboard. The same chat line works in Looomy.

Does Nightbot work on YouTube?

Yes, with limits. Nightbot's setup docs say it only joins your YouTube channel while you are live and the stream is public, and Twitch-specific variables and chat formatting do not work there. The Nightbot on YouTube guide covers setup and the alternatives.

Does Nightbot have a random variable?

No. Nightbot picks random answers with $(eval ...) and a line of JavaScript, as in the Nightbot versions above. Looomy has $(random ...), which takes options separated by | or two numbers.

What are the best Nightbot commands to start with?

Start with five: !socials, !uptime, !so, !lurk and one fun command such as !8ball. Add a timer that mentions them, test each one in chat, and add more as your viewers ask for them.

Can I move my Nightbot commands to Looomy?

Yes. Looomy can import your Nightbot commands, timers and trusted viewers, and marks anything that uses an unsupported variable for review instead of letting it break in live chat. Follow the Nightbot import guide before your next stream.

For every variable used here, with more examples, see the command variables guide.

Nightbot is a trademark of its respective owner. Looomy is not affiliated with Nightbot.