Best Custom Nightbot Commands For Twitch 2022 (2022)

Best Custom Nightbot Commands For Twitch 2022 (1)

Streaming on Twitch can be a lot of work, but it’s also fun and rewarding. It takes time to get the hang of streaming, and even longer to learn how to use all the features that are available.

One popular Twitch add-on is an easy-to-use chatbot called Nightbot. There are so many commands for Nightbot that you could spend hours just trying them out!

I’m a small-time Twitch affiliate and also a moderator in a popular channel. After spending hours researching and creating different commands, I’ve come up with a list of the best custom Nightbot commands for Twitch.

You might be surprised to learn how some of these commands work. They go a lot further than just responding to user interaction – they can make your stream uniquely appealing and memorable.

Before we get into the commands, let’s take a quick look at what Nightbot is and how the commands work. This will give you a lot of insight if you want to get creative and invent your own commands.

This article contains banner ads and affiliate links. If you follow them and then make a purchase, I may receive a commission at no additional expense to you. Thanks for reading!

Best Custom Nightbot Commands For Twitch 2022 (2)

Best Custom Nightbot Commands For Twitch 2022 (3)

What is Nightbot and How Does it Work On Twitch?

If you’re new to streaming, the first question you might ask is: what is Nightbot? Nightbot is a chatbot that can be used to do many things from advertising any streamer affiliate programs you may be part of to shouting out your friends.

(Video) 10 Nightbot Commands You NEED as a Beginner! (Twitch Mod Commands)

Nightbot offers several benefits for Twitch streamers, primarily chat moderation and commands . You can set the bot up to “automod” based on a few settings, including filtering out bad language or links.

That’s great for helping keep your chat in line with your channel’s values, but this article is going to focus on custom Nightbot commands and ideas you can use to get really creative with them.

Best Custom Nightbot Commands For Twitch 2022 (4)

Common Uses For Nightbot Commands

Commands respond to specific user input that triggers a message from the bot. Most Nightbot commands start with an exclamation mark, such as !socials, but you can also create commands that respond to normal input.

Here’s a non-inclusive list of commonly used Nightbot commands:

  • !shoutout or !so followed by a fellow streamer’s name. This command will bring up a link to the streamer’s channel so people can follow them.
  • !donate to bring up a link where you can support the streamer.
  • !socials or !social to bring up the streamer’s social media links
  • !quote to bring up a random quotation
  • !death or something similar to count the number of times a game character has perished

You may have noticed that Nightbot can do different things. It can respond with a link, respond with a customized link, respond with a random canned message, count… it can even tell you the weather!

Nightbot Code You Need To Know

If you’re going to use Nightbot in your channel (or if you mod for someone who does), you’re going to want to have the following information.

Adding a New Command and Editing Commands

You can use “!commands add [command]” and “!commands edit [command]” as well as “!commands delete [command name]” to accomplish the obvious actions, but there is also a far superior shorthand that accomplishes the same things:

  • !addcom to add
  • !editcom to edit
  • !delcom to delete

When adding or editing a command, you start with the command name (including an exclamation mark (!) if you are using one) and then include the entire message. When deleting, you can just use the command’s name.

Creating Mod-Only or Streamer-Only Commands

The key to managing certain chat features is making commands only accessible to the streamer and/or their mods. To establish the permitted user level, Nightbot acknowledges -ul=.

An example would be !addcom -ul=mod !shoutout. This prefix would only allow moderators to call the ensuing command. To only allow the streamer to use a command, notation is -ul=owner. For a complete list of user levels, consult the Nightbot documentation.

Tagging Yourself and Others With $(user) and $(touser)

As the heading above suggests, you can create Nightbot commands that target the user and the person they tag. In normal Twitch chat, you tag others using @username. In order to get Nightbot to tag someone, you use $(user) and $(touser).

$(user) will tag the person executing the command, and $(touser) will tag the FIRST PERSON who they tag in their message.

(Video) Best Twitch CHAT BOT COMMANDS! Streamelements, Streamlabs, Nightbot, & More!

A common example is the !so (shoutout) command. Note that there are actually multiple ways you can set this command up. In my opinion the easiest is:

!addcom !so Please check out the wonderful streamer $(touser) at https://twitch.tv/$(touser)

Using JavaScript With Nightbot For Advanced Commands

I didn’t realize for a long time that most of the code used in advanced Nightbot commands is actually JavaScript. JavaScript (often called JS) is a scripting language used in a lot of applications including ordinary websites.

In order to evaluate JavaScript in a command, you must employ a $(eval ) command, in which all of the code goes in between “eval” and the closing bracket.

Now, chat messages on Twitch are limited to 300 characters, which would seriously limit what you could do with JavaScript *IF* it wasn’t possible to use external code.

Best Custom Nightbot Commands For Twitch 2022 (5)

How to Make Nightbot Count

Counting commands are among the most popular in some streams, especially for gamers who want to let the chat keep track of their in-game deaths or other events. I know one streamer who has a command that counts the number of times they’ve burped while live!

Count is actually super easy to invoke – you just use $(count) in the command where you want the number to go. Resetting or editing a count command is trickier, but still pretty simple.

How to Call a Link With Nightbot

In order to incorporate external code into your commands, you can use $(urlfetch json ). This looks like the following example:

!addcom !yourcommand $(eval $(urlfetch json LINK))

The above command would get Nightbot to reference the link included and return a command based on its content.

Please note that you can only call the content of a raw text file hosted on a public website.

Most web pages are full of different types of code including (but not limited to) HTML, CSS, and JavaScript. This would make it impossible for Nightbot to know what you wanted it to do.

A raw text file on the other hand contains no “hidden” code – it contains only text, which allows Nightbot to read the JavaScript it contains.

(Video) Top 5 Nightbot Commands You NEED As A Streamer

If you have your own website or hosting you can upload text files there, but there are several free options available. The most common one I see referenced online is a website called Pastebin. Personally, I prefer to use GitHub.

Either way, make sure you use the raw text link.

Examples of Awesome Nightbot Commands

I don’t want to brag, but I’ve created some pretty cool Nightbot commands in the past few months. That said, I’ve really only scratched the surface of what’s possible.

This is because I’m a very junior JavaScript user, and Nightbot doesn’t really read JavaScript perfectly. If you call a JavaScript file that uses standard vanilla JavaScript, there’s a good chance Nightbot will return an error.

To save you time, I’ve compiled a list of my favorite commands and ways to use them.

How to Create a Randomized Nightbot Command

Command randomizers are great – you can use them to pull random quotes or inspiration, or just say silly things when your chatters least expect it. Here’s an example for a common randomizer:

!addcom !slap $(user) has slapped $(touser) with a $(eval a=["a herring", "a codfish", "a trout", "a salmon", "a dolphin", "a swordfish"]a[Math.floor(Math.random()*a.length)])

I’m sure that looks confusing if you don’t know at least a little JavaScript, so I’ll break it down.

  • !addcom !slap $(user) has slapped $(touser) with a $(eval – we’ve seen this earlier. This part of the command tags both the user and the person they’re directing the slap at, and initiates the JavaScript evaluation.
  • a=[“a herring”, “a codfish”, “a trout”, “a salmon”, “a dolphin”, “a swordfish”] – this part of the command uses a variable (a) to call an array, which just means a list.
  • a[Math.floor(Math.random()*a.length)]) – this final section uses JS to randomly select one of the entries in the array. To briefly explain, it checks a.length which is the number of entries in the array, and then picks a random within that value.

You can also call an array from an external JS file, allowing you to use longer entries and nearly as many items as you please. I have a !scare command in my friend’s channel which uses two randomizers to create a “mad libs” style output about the user scaring whoever they target.

How to Create a Sequential Nightbot Command

Another cool way to use JavaScript arrays in Twitch commands is to call the data sequentially. This means that rather than picking a random entry from an array, Nightbot will work through the array in order.

I used a sequential command in my channel to create a !story command which tells a story one sentence at a time. With a bit more coding, you could make something really cool like a Nightbot calendar.

Here’s my story command:

$(eval c=`$(count)`; a=$(urlfetch json URL; if(c<=a.length){a[c-1]} else{`The story is over, please use !resetstory if you'd like to hear it again!`};)

Again, I’ll break it down a piece at a time, so you can see how to make your own.

(Video) SETUP NIGHTBOT In 8 Minutes (2022 Tutorial)

  • $(eval c=`$(count)`; – This section establishes the variable c as representing the count. Using this variable allows me to pass the count variable into my external JavaScript document. The semicolon is merely a breakpoint
  • a=$(urlfetch json URL; – This section calls a raw text document I have hosted on GitHub. All it contains is an array filled with pieces of a story.
  • if(c<=a.length){a[c-1]} – This section declares that if c (the count variable) is less than or equal to the number of entries in the array, the output should be the next sequential entry in the array. We need to use c-1 rather than c because $(count) starts counting at 1, whereas JavaScript starts counting at 0.
  • else{`The story is over, please use !resetstory if you’d like to hear it again!`};) – This section states that the count is not less than or equal to the number of entries in the array, the ensuing message should be the output.

I then have the commands !resetstory, which starts the count back at 1, and !editstory, which allows me or a moderator to set the count to a specific number.

To add a reset command you need to use !addcom !yourresetcommand !yourcommandtobereset -c=0 – Mine, for example, was !addcom !reset !story -c=0.

To add an edit command, use !addcom !youreditcommand !yourcommandtoedit -c=$(query). Mine is !story -c=$(query).

As you probably noticed, -c is used to set the count. Reset simply sets it to 0, whereas $(query) sets it to a user input number.

How to Create a Conditional Nightbot Command

You can use JavaScript if/else statements to create conditional commands, and this is one of my favorite Nightbot tricks.

What’s a conditional command? It’s a command that returns different messages according to the input it receives.

I have one command in my channel that has 12+ custom greetings built into it. My friends and regular viewers can use the !hello command and get a customized greeting that no one else can trigger.

There are a couple of ways to create conditional scenarios with JS, but if/else is the easiest, at least to me. Here’s an example:

if (a == "TwitchName"){"Custom greeting for relevant user".}else if (a == "OtherTwitchName"){"Other custom greeting for relevant user".}else {"Generic greeting."}

The above code is almost exactly what I use to have Nightbot greet my friends by name. The part in brackets establishes the condition, and the part in curly brackets is the output message. To call this file you could use !addcom !yourcommand $(eval a=”$(user)” $(urlfetch LINK)).

Conclusion – This Article is Far From Finished

The article on how to create amazing Nightbot commands is far from finished. I’ve only scratched the surface of what you can do with a little code and Twitch commands, so stay tuned for regular updates to this post.

I’m currently obsessed with learning JavaScript, and the more I learn the more I’m able to apply to Nightbot. I look forward to sharing it all with you!

Streaming can be a great way to make money online, but only if you really commit to it. Of course that’s the same for most methods. Best of luck!

(Video) How to add NIGHTBOT Popular Custom Commands !uptime !counter !followage !quote !queue etc...

FAQs

How do you make custom commands on Nightbot? ›

You go to add. And what you can do is make it. Basically type exclamation mark commercial here as

Can Nightbot use BTTV emotes? ›

So yes they can however if you don't subscribe nightbot so you don't give this up to nightbot it

Is Nightbot good for Twitch? ›

A chatbot for Twitch and YouTube, Nightbot is a good, solid chatbot for your channel. It allows a user to automate chat in real-time with moderation. It is one of the most used chatbots and has been around since the launch of Twitch. It allows Twitch to spend more time entertaining your channel viewers.

What commands do people use on Nightbot? ›

Fun Nightbot Commands
  • 1. ! socials. This command is used to list all the social media that you use, so links to your Facebook, Instagram, Twitter accounts, YouTube channels, etc. ...
  • 2. ! discord. ...
  • 3. ! insta, ! ...
  • 4. ! follow. ...
  • 5. ! donate. ...
  • 6. ! sub. ...
  • 7. ! welcome. ...
  • 8. ! win.
22 Sept 2022

What language is Nightbot written? ›

In reality, it's NodeJS.

How do I get Nightbot to say things automatically? ›

How to Setup Automated Twitch Messages with Nighbot Timers

How do you set a hug command on Nightbot? ›

How to Make a Slap or Hug Command on Twitch with Nightbot - YouTube

How do I enable KEKW on Twitch? ›

To get the KEKW emote for Twitch you will need to download the BTTV extension and then add the KEKW emote to your channel. As a viewer, to use the KEKW emote install the BTTV extension and then type “KEKW” (without quotation marks) in the chat of a streamer that has BTTV emotes enabled.

How do I add a death counter to Nightbot? ›

Nightbot Death Counter – Definition and How to Add It (2022)
  1. Open the Nightbot and click on the option “Commands edit”
  2. Create the command ! death (or ! deathcount, or ! deathadd if the first one isn't working) in the command box.
  3. Save the command and confirm the action.
26 Sept 2022

How do I add CatJAM to Twitch? ›

How Can I Add The CatJAM Emote on My Twitch Channel? To add the CatJAM emote to your own channel you will need to go over to BTTV, login with your twitch account and authorise your credentials. You will then be able to add as many emotes as you want from BTTV emote list as you want.

Does Nightbot count as a viewer? ›

Chat bots do not count towards your viewer count, as they do not view your stream.

Who invented Nightbot? ›

Nightbot was created by one of the first JTV streamers, Kona, and was originally named “SFXBot.” It was designed solely to request songs, but later the features were extended.

Should I use Nightbot or Moobot? ›

Nightbot offers regular expression based chat filtering as well as simple wildcard based word/phrase matching, and has many of the same preset chat filters that Moobot offers. Moobot and Nightbot serve similar functions, so it is best if you choose one and stick with it.

How do you add 8 Ball commands to Nightbot? ›

How To Use Magic !8ball Command | Nightbot tv - YouTube

How do I make Nightbot welcome new viewers? ›

As stated previously, Nightbot does not detect new viewers. Instead, you can follow jumonjii's suggestion and make a command that responds to a user if they say “hello” or “hi”.

How does the lurk command work? ›

lurk command is a command that the streamer has created in their channel that allows viewers to announce that they are present in the stream, but lurking. Usually this command prompts a message in the channel such as “John is now lurking in the shadows!”

How do you mod a Nightbot? ›

How to Allow Twitch Moderators to See Your Nightbot Dashboard!

How do I get unbanned from Twitch chat? ›

The easiest way to get unbanned from Twitch chat is to change your username and IP address. To change your IP address, subscribe to a VPN, download its app(s) onto your device(s), connect to a VPN server, and then you're set. With this new IP address, sign up for a new account with a new username.

How do I use Nightbot in chat? ›

Ready in 3 Steps
  1. Sign Up. Sign up by logging in with Twitch or YouTube. ...
  2. Join Nightbot. Click the "Join Channel" button on your Nightbot dashboard and follow the on-screen instructions to mod Nightbot in your channel.
  3. Ready to Go. Nightbot should now be in your channel.

How do you use the nuke command on Twitch? ›

Use the ! Nuke command with just the unique phrase which is contained within all the messages you wish to remove. E.g. for the 3 messages This is my spam message , Look at this spam , and Spam me some more , you would use the chat command like ! Nuke spam to remove all those messages.

How do you add 8 Ball commands to Nightbot? ›

How To Use Magic !8ball Command | Nightbot tv - YouTube

What is the lurk command on Twitch? ›

lurk command is a command that the streamer has created in their channel that allows viewers to announce that they are present in the stream, but lurking. Usually this command prompts a message in the channel such as “John is now lurking in the shadows!”

How do you add a slap command? ›

How to Make a Slap or Hug Command on Twitch with Nightbot - YouTube

How do you make a Nightbot lurk command? ›

How To Set Up ! Lurk Command On Twitch
  1. Step 1 – Mod Nightbot. To ensure that night bot works on our channel we will have to first mod Night bot in our chat. ...
  2. Step 2 – Add A Custom Command In Nightbot (Lurk) In Night bot navigate to Commands –> Custom –> Add Command. ...
  3. Step 3 – Test The ! Lurk Command.
20 Mar 2022

How do you add love on Twitch? ›

How to add Hug Love and Slap commands for Twitch ... - YouTube

Can mods change stream title? ›

Yes, a mod can change the title of a stream. For this reason you will want to choose who you make a mod in your stream carefully so they don't mess with your stream title.

How do I make Streamelement commands? ›

Now, start creating your commands.
  1. 1 Click on 'Chat Commands' On the left sidebar menu, select 'Chat Commands'. ...
  2. 2 Click on 'add new command' ...
  3. 3 Edit the new command. ...
  4. 4 Set the 'Advanced settings' ...
  5. 5 Enable the command. ...
  6. 6 Set StreamElements as a moderator or editor.
26 Apr 2021

Can mods run ads on Twitch? ›

Don't worry — that's what you have mods for! However, just making someone a moderator doesn't immediately give them the ability to run ads on your channel. To allow your mods to run ads for you, you need to assign them the EDITOR role on your channel.

How do I add a death counter to Nightbot? ›

Nightbot Death Counter – Definition and How to Add It (2022)
  1. Open the Nightbot and click on the option “Commands edit”
  2. Create the command ! death (or ! deathcount, or ! deathadd if the first one isn't working) in the command box.
  3. Save the command and confirm the action.
26 Sept 2022

What does this emoji mean 🎱? ›

The 🎱 (8 Ball) emoji refers to a game of pool or billiards. The original poster might be bragging on TikTok or Twitter about a great pool game they just played, giving a shout-out on Instagram or Snapchat to an excellent pool player, or texting something billiards-related to a friend.

What is the 8ball command? ›

The 8ball command is a fun way to get more user interaction in your chat and can make for some funny scenarios. Just like a magic 8ball in real life the 8ball command will return a random answer in chat when prompted by a viewers.

How do you get 3 viewers on Twitch by yourself? ›

How to Get 3 Average Viewers on Twitch
  1. Set Up Your Channel for Growth. Take time to plan the direction of your channel. ...
  2. Plan Content in Advance for Each of Your Streams. Know what you want to stream, what games you want to play, and what you will talk about in advance. ...
  3. Set Up Your Stream Schedule.
13 Feb 2022

Does Nightbot count as a viewer? ›

Chat bots do not count towards your viewer count, as they do not view your stream.

Can Twitch streamers see lurkers? ›

Twitch streamers are able to see the names of lurkers by scrolling down the list of active viewers.

Videos

1. Most Popular Chatbot Commands! | Nightbot tv
(CalmCoolTutorials )
2. Setup NIGHTBOT In Less Than 10 Minutes - 2022 Tutorial
(Streamloots)
3. Setup Custom Random Response Twitch Bot With Nightbot
(Content Creator Corner)
4. Hype Emote Command For Twitch! Stream hyper!
(Mercredi Benz)
5. Let Nightbot Make Dadjokes! Unique Command for Twitch and YouTube
(Trui)
6. How to Do EVERYTHING with Nightbot [Full Tutorial]
(Qwad)

Top Articles

Latest Posts

Article information

Author: Fredrick Kertzmann

Last Updated: 12/30/2022

Views: 6194

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.