What is going on guys, welcome back to
another video on the Gaming Careers
YouTube channel. My name is Pete and
today we're going to be talking about
chat bots for your Twitch or YouTube
chat and specifically we're going to be
talking about one of the most popular
bots which is called nightbot. Now you
might be wondering what a chat bot is,
you might have seen it but not really
know exactly what it does.
A chat bot is a piece of software that
sits in your Twitch or your YouTube
stream chat and it helps moderate and
respond to certain commands so that
you're less distracted by answering
simple questions or moderating the chat
from spam and things like that and you
can concentrate on playing the game
instead and answering real questions
from your fans
some of the features that night but
allows you to customize are things like
spam filtering so if you have certain
users always spamming certain things you
can allow night box to moderate that and
timeout or ban certain chatters that are
abusing the system. You can have nightbot
respond to some custom commands, if
your viewers always want to know you
know how long you've been streaming for
or what your current rating is or
something like what the current song
playing is you can allow nightbot to
respond to certain commands like those.
You can set nightbot to send
promotional messages every certain
number of minutes so if you want to be
you know sharing your Instagram, your
YouTube, your Twitter profiles, you can set
nightbot to automatically post these
things every so often. Now these are just
a handful of the different features that
nightbot allows you to customize and in
this video we're going to be helping you
set it up your Twitch or YouTube stream
as well as customizing some of these
features that we've been talking about
in this intro, so let's dive in!
So to get started the first thing that
you're going to need to do is to head to
the nightbot website, that is nightbot.tv
and you should be greeted with a screen
similar to this and we're going to click
sign up. Now like many of these streaming
services that we use you're going to
need to authorize either your Twitch or
your YouTube account to connect with
nightbot so for me I'm going to be using
Twitch but the process is exactly the
same for YouTube you're basically going
to log into your Twitch or YouTube
account and authorize the nightbot
application to use some of your Twitch
credentials. Once you've authorized your
Twitch or YouTube accounts you should
be taken to the dashboard, now the
dashboard is sort of a central location
where you can see some statistics about
how nightbot has been interacting with
your chat, such as you know how many
commands or timeouts or messages it's
sent as well as things like who your top
chatter is or what the top command is
what people are requesting from nightbot
the most. Now before we start
playing around with all the different
settings and commands the first thing
that we need to do is to have nightbot
actually join our Twitch channel. So if
you click join channel up in the top
right you're going to get a little
pop-up window saying the nightbot has
joined your channel but you need to make
sure that you give nightbot the
moderator status in your Twitch chat. If
you are doing this with YouTube
currently you need to make sure that
you're live when you're joining nightbot
into your channel, this is just to do
with the API limits on YouTube currently
so hopefully that won't be a case for
too much longer. But once you have had nightbot
join your channel if you head over
to your Twitch and YouTube channels to
make sure that you add nightbot to a
moderator. So for twitch if we go to our
Twitch channel and as the instructions
says we type in "/mod nightbot"
to give nightbot the moderator status.
You should see a text message just
saying that you have added nightbot as a
moderator of this room. Believe it or not
that is actually all of the setup that
you need to do to have nightbot as part
of your channel everything else now is
tinkering with the options to get
nightbot to work in a specific way that
you want it to. Now down the left hand
side you should have a list of all the
different things you can set up for
nightbot, we'll start with commands so if
you click commands
and then click default we can see a list
of the default commands that nightbot
has set up for us. Now as you can see
there's quite a few default once set up
there's things like showing the current
game that you're streaming, running commercials
updating the title, things like that.
nightbot has already set these up and as
you can see over on the right-hand side
for each one you can click to read some
more information in the docs and that's
a really good place if you want to
understand a little bit more about what
that command is doing, so I'd highly
recommend any of them that you're not
sure about what they're going to do
click the docs link and nightbot has a
really good documentation section
where you can learn a lot more about how
the commands work. You also have the
option to disable or enable the command
if you wish to and if you click options
it's going to open up a new window where
you can customize which level of user
can actually access that command, so if
they type in what level of user is
actually going to get some response back
from nightbot as well as some other
options depending on the command so why don't we look into one, let's have a look
at the game command and click options.
Now the game command, if somebody types
in !game into your chat, that will get nightbot to respond with
the current game that is being played on
the stream. The default user level for
the !game command is set
to everyone, which means anybody in your
chat can type the command, however the
game option also allows moderators or
higher user levels to update the game so
if they do "!game CS:GO"
then nightbot will update the
game to reflect that but only moderators
or higher user levels can modify the
game, if somebody else tries to do it
they'll get message saying that they
can't edit it. The cooldown box below is
just a way of being able to set what you
want the cooldown to be so this is the
minimum amount of time before the
command can be used again so you
obviously don't want to set this super
low because you don't want people
spamming your chat just to get response
out of nightbot and people don't really
need to know what the game is more than
every 10 seconds or so. So you can
like this across to be whatever cooldown
you'd like when you're happy with your
changes you can just click Submit. Now
I'm not going to go through every single
one of the commands because there's
plenty of documentation explaining
exactly what each command allows you to
do but I would advise spending some time
here and just making sure that you're
only enabling the commands that you want
to and you really understand how the
nightbot system works so spend some time
going through these default commands and when you're ready we can resume the
video and we're going to add a custom
command by clicking the custom button
just underneath commands here. Now in the custom commands we should see a table
which will currently be empty because
we haven't added any custom commands
but we are going to click the add
command button in the top right and a
new window should pop up. Now as we can see nightbot has actually provided us with
an example which we will go along with so
let's say we wanted to create a command
that would allow users to be able to
find out from nightbot a link to our
YouTube channel. So as we can see in the example here !youtube
is the command that we could
choose but this could be absolutely
anything you wanted, it could be
!youtubechannel, you
don't even have to have an exclamation
mark before it but it's worth having
that just because you don't want
nightbot spamming when people are just
having a conversation and mentioning the
word YouTube, you'd prefer them to
actually be requesting something from
nightbot and the typical way of doing
that is with an exclamation mark
beforehand. So for command let's do
!youtube. Now the message
box is what you want nightbot to respond
to this command, so the example that they
have there is a short description saying
you know subscribe to my YouTube and
then a link to your YouTube channel.
That's really the basic implementation
you can do some things with command
variables you'll see there a link
underneath the message where you can
click command variables which allows you
to you know add some dynamic responses
so that you can actually respond to the
user and call their username if you'd
like to or you know a lot of other
things but I think for this example
we'll just keep it nice and simple, follow
the example and you know have subscribe
to my YouTube and then paste your link
into your YouTube channel. Next we've got
those two commands that we've looked at
before the user level and the cooldown,
so user level is which kind of
access level you want to set for people
to be able to execute the command, so
something like this you want everyone
within your chat to be able to write the
command and get a response from nightbot,
but if you do want to restrict it to a
higher user level, you just click the
down arrow and then you can set from
everyone, subscribe, regular, moderator,
or owner but for something like this
we're going to leave it at everyone.
Cooldown as before is the minimum amount of time before the command can be used again, so
something in the range of you know 10
seconds should be fine for this and
finally we get an option for an alias, we
don't need to worry about this for this
command but if you want you know
nightbot to respond to a number of
different commands and you know if they
said youtube or youtube channel or link
to youtube or something like that you
could create commands for all of them
and then link the alias back to this one.
Once we're happy we can click Submit and
then you should see the table update
with your new custom command and we get
some options on the right-hand side to
edit or delete if we want to. Next we'll
look at the giveaways tab which maybe is
a little bit different to the rest of
the nightbot system but this is
basically a way for you to be able to
give well do a giveaway on your stream
so that one of your viewers or chatters
can win something. So when you load up
the giveaways page and you'll need to
come to this page when you want to do a
giveaway, you should be presented with an
eligibility list, a giveaway panel and a
chat window as we can see here. We'll get
through all of those now so the
eligibility list that is the pool of
users which have the chance to win the
current giveaway you can toggle users
ability to be eligible by just clicking
the mark next to their name, the next
panel is the giveaway panel which allows
you to choose what type of giveaway you
are wanting to do. Firstly you can see
who you want to make the giveaway
eligible for so the blue surrounded
boxes are who it's eligible for so
maybe you want to disclude your mods
from a giveaway or you want to do a
giveaway just for your subscribers and
regulars or something like that or maybe
you want to giveaway and anybody can win
and you want to select them all, you just
basically set that up here. Next we have
the giveaway type so there's a few
different ways of choosing a winner that nightbot allows you to do so the
first one is active user and that will select a user that
has chatted in a defined length of time,
so if they're an active user that is
basically defined by nightbot as if they
have chatted in the last X minutes. As
you can see under active user you can
give extra luck which basically means a
slightly higher chance for your
subscribers or regulars to win if you
want to or you can set it so that
everybody has an equal chance and the
third option there, the active timer that
allows you to choose what amount of time
they have to have chatted within to be
considered an active user. The next
giveaway type is keyword and again we
have the options for subscriber luck and
regular luck if you want to provide a
better chance for a subscriber or a
regular to win. Next you need to choose
the keyword that people need to send in
chat to be entered into the giveaway.
Finally we get the anti-spam option
which means that you can mark your users
as not able to take part in the
competition if they constantly spam the
keyword multiple times, so you know if
you don't want you track completely
filled by people spamming the word over
and over again even though they've
already been entered, then you
can set it so that they are removed if
they keep spamming it. The final giveaway
type that we're going to do is random
number, this will basically generate a
random number between two pick numbers so the default of 0 and 100 and the
first user to type that number into your
chat is generated the winner. So if you're
going to do this one then I really
encourage you not to have this screen in
your OBS because you don't want users to
see what the the winning number was but
you generate a random number between 0
and 100 and nightbot will choose whoever
chats that number first so you're going
to get lots of spam message from your
users trying to guess the number between
0 100. Whichever giveaway type you select
if you click roll it then nightbot will start the giveaway and
pick a winner so once a user has won a
giveaway that profile image will be
displayed and then there'll be options
to visit their Twitch channel page or
send a direct message to them so that
you can easily get in contact with your
winner. The next option I guess is logs
but that's just some history of what
nightbot has done so we won't really look
into that in
too much detail and regulars is a way
for you to add certain users to your
regulars list if you want to you know
honor some people that maybe aren't
subscribers to your channel that are
regulars in chat and you want them to be
recognized by nightbot. The next option
will see is song requests and I know
this is a really requested feature but
it's something that I really want to go
into proper amount of detail into
especially setting up things like
Spotify and I'm wary that this video is
already running on quite a bit so I'm
going to create a separate video for
dealing with song requests and the auto
DJ system in nightbot, let me know if you
are like really keen for that video and
I'll try and bump it up the priority list
and get that out sooner rather than
later for you guys. So the next section
we'll move on to is span protection and
this is a way for nightbot to be able to
moderate your chat and time out certain
users for you know breaking certain
rules. So you'll see this is similar to
the commands list there's some defaults
already set up and you can you know
enable or disable any of these and click
options if you want to customize, so for
let's say blacklisted words or phrases,
if we click options this new window pops
up and we can then enter a list of words
or phrases that you wish nightbot to
block. The next option is the timeout
length this is the maximum amount of
time that nightbot will timeout the user
that has used the blacklisted word or
phrase for. The way that nightbot works
is that the first time somebody breaks
an offense, so the first time somebody
uses a blacklisted word let's say, they
will get a five-second timeout and a
message saying that they've used a
banned word, if they repeat the offense
again nightbot remembers who the users
are and they will then be banned for the
length that you enter into this box.
Next option is the exempt user level so
you can set what level of user will be
not included for this filter so if you
want your moderators to be able to use
some of these words then you can set
that level here. The silent option below
is basically for much busier channels
where you don't want nightbot to be
constantly sending out its timeout
message in the chat, you can here enable
silent mode and nightbot won't send a
message saying that user has been timed
out that xy&z, so it won't be flooding
your chat. It will still filter out the
user and give them a timeout if they're
breaking the rules but it will no longer
give the message to punished users. The
final box allows you to set a custom
message if you would like to and this is
again the message that nightbot will
send to your user in chat, if you leave
it blank then it will just be a default
message that nightbot has already got
set up. Once you're happy with your
filter then you can click Submit and I
really recommend again similar to the
commands spending some time here looking
at the spam protection filters and just
setting them up exactly as you want in
chat making sure that you're black
listing certain words that you don't
want to be seen in your chat and you
know enabling or disabling excessive
caps or remotes and links and things
like that and just making sure that
you're getting the user levels right to
allow your moderators if you want to
allow them to be able to you know post
links and things like that then you need
to make sure that you have that set up
in the options. The final thing that
we'll look at today is the timers option
and this is a way of being able to
create a message that nightbot sends on a
certain timer so maybe the example that
we'll do today is having nightbot send
your social media links every let's say
10 minutes to your chat. So on the
timer's page if we click the Add button
we should get a new window and similar
to the custom commands that we had
earlier nightbot has sort of half filled in a
form for us to give an example. So the
example were going to be doing is the
same one that they've got filled in here
so let's do our social links that will
be sent every 10 minutes. The first box
is just the name and this doesn't
interact at all we give chat this is
just purely for you when you come back
to the timer's page for you to know
which timer is which so they give the
option of social links that sounds good
to me too let's type in social links. The
next box is the actual message that you
wish
nightbot to send on the timer so let's
fill this out properly with some links to
you know YouTube, Twitter, Instagram, Snapchat whatever
social media you want to let your users
know that they can follow you at, we can
add the message in here as well as the
links. The interval is how often you want
nightbot to send this message and it's
worth noting that this is the actual
interval on the hour so if you
set every 15 minutes that would be 14:00,
14:15, 14:30, 14:45. We're going to set every 10
minutes so that will be 14:00, 14:10, 14:20 and so on and so forth. The chat
lines option is a useful one this is
basically the number of lines of chat or
the minimum number of chat lines that
nightbot needs to have in between each
interval for it to send the message so
you know if you're just starting out and
you haven't got many users chatting and
you're just trying to get your name out
there for streaming, you don't want nightbot to be the only thing talking in chat
every 10 minutes just sending the same
message and there to be no chat in
between so this option allows nightbot
to actually check how many lines of chat
there have been between its last interval
and this next one and if there haven't
been this number of chat lines then it
won't send the next interval message. So
the default is 2, I like to put this up
to you know around 5 because even
with 2 lines of chat between each
social links message it can look a
little bit spammy so I'm going to change
this to 5 and we'll move on to alias.
Alias just like the alias that we had in
commands is just a way for the timer to
call a custom command when it is run so
if you wanted to you know run something
else every time it's called then you can
set that here but we're just going to
leave that completely blank. Other
timer examples are things like reminding
your users to subscribe if you have the
option to subscribe or follow your
stream, I'd just be a bit wary of being a
bit spammy in your chat you don't want
nightbot to be you know your most active
chatter, you want it to be there to
facilitate your users and help them when
they have a custom command. So that's
pretty much it for the nightbot
commands I know I'll do a completely
separate episode going into a lot of
detail on song requests, because that
kind of need its own episode to go into
the detail of Spotify andYouTube. Now
that you've kind of got it setup,  I would recommend just before you
go live just having a play around in
your actual Twitch or YouTube chat with
some of the commands make sure that
nightbot is responding as you expect it
to you know if you're going to do a
giveaway make sure you kind of tested
that with a few your users in chat
beforehand so it doesn't mess up on the
first time that you run it but you can
always come back to this dashboard and
play around with the commands after
you've got some experience using them
and seeing how your users interact with
them. That's it for this video guys if
you have found it useful and you got to
this point in the video please do give
it a thumbs up and share it with
somebody that you know is starting to
live stream. If you're new head to the
Gaming Careers YouTube channel, we're a
YouTube channel completely focused
around helping you guys build a career
out of gaming on Twitch on YouTube you
know building up your live stream,
building up your YouTube channel, audio
all these kind of things we're building
guides around all of those topics to
help you make a profession out of your
passion so if you are new here have a
look around and consider subscribing and
subscribers I'll see you in the next
video, peace!
you
