public static int Connect(TwitchIRCConnection connection, bool extendedInformation) { if (connection.ConnectionStatus == 0) { int isConnected = connection.Connect(); if (isConnected == 0) { connection.Send("PASS oauth:" + connection.UserPassword); connection.Send("NICK " + connection.Username); if (extendedInformation) { connection.Send("CAP REQ :twitch.tv/membership"); connection.Send("CAP REQ :twitch.tv/commands"); connection.Send("CAP REQ :twitch.tv/tags"); } } else { return(1); } } return(0); }
public static int SendServerMessage(String message, TwitchIRCConnection connection) { return(connection.Send(message)); }