How does Nightbot add a ban reason?

Okay so yesterday I was moderating a stream, and I saw Nightbot banning people with a reason, it said something like “User has been timed out for spamming caps (5 seconds)”. How do you re-create this?

My bot is made in C#, things being send like this:

string announcestring = “:” + channel + “!” + channel + “@” + channel + “ PRIVMSG #” + channel + " :Hi, this is an announcement string! \r\n";
Byte[] announce = System.Text.Encoding.ASCII.GetBytes(announcestring);
stream.Write(announce, 0, announce.Length);

Check out this thread: [BETA] Timeout reasons & durations

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.