Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using TwitchmIRCbot;
- namespace TwitchBot
- {
- class Program
- {
- static void Main(string[] args)
- {
- IrcClient irc = new IrcClient("irc.twitch.tv", 6667, "[BOT USERNAME HERE]", "[OAUTH HERE]");
- irc.joinRoom("[TWITCH CHANNEL HERE]");
- while (true)
- {
- string message = irc.ReadMessage();
- //commands
- //here is a test command to check if the bot is connected to your desired chat
- if (message.Contains("!test"))
- {
- irc.SendChatMessage("Working"));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment