public static String ReadMessage(TwitchIRCConnection connection) { String message = ""; message = connection.Receive(); if (message.ToLower().StartsWith("ping")) { TwitchIRCClient.SendServerMessage("PONG :tmi.twitch.tv", connection); } return(message); }
public static int Restart(TwitchIRCConnection connection, bool extendedInformation) { if (connection.ConnectionStatus == 0 || connection.ConnectionStatus == 2) { TwitchIRCClient.Connect(connection, extendedInformation); } if (connection.ConnectionStatus == 1) { TwitchIRCClient.Disconnect(connection); TwitchIRCClient.Connect(connection, extendedInformation); } return(0); }
public static int DepartChannel(String channelName, TwitchIRCConnection connection) { return(TwitchIRCClient.SendServerMessage("PART #" + channelName, connection)); }
public static int JoinChannel(String channelName, TwitchIRCConnection connection) { return(TwitchIRCClient.SendServerMessage("JOIN #" + channelName, connection)); }
public static int SendWisperMessage(String username, String message, TwitchIRCConnection connection) { return(TwitchIRCClient.SendServerMessage(".w " + username + " " + message, connection)); }
public static int SendChannelMessage(String channelName, String message, TwitchIRCConnection connection) { return(TwitchIRCClient.SendServerMessage("PRIVMSG #" + channelName + " :" + message, connection)); }