public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "authenticate") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ": Internal. Allows the bot to connect to a server. Cannot be unloaded."); } }
public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "pinghandler") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ": Internal. Handles the connection. Cannot be unloaded."); } }
public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "youtuberesolve") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ": Allows for resolving of youtube links posted to a channel."); } }
public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "channeljoin") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ": Lets the bot join channels on startup."); } }
public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "say") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ", " + Program.C.Config.CommandPrefix + "say usage:"); C.WriteLine("PRIVMSG " + e.Target + " :" + Program.C.Config.CommandPrefix + "say <text>"); C.WriteLine("PRIVMSG " + e.Target + " :Causes me to message the sender <text>"); } }
public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "cmdprefix") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ", " + Program.C.Config.CommandPrefix + "cmdprefix usage:"); C.WriteLine("PRIVMSG " + e.Target + " :" + Program.C.Config.CommandPrefix + "cmdprefix <prefix>"); C.WriteLine("PRIVMSG " + e.Target + " :Changes my command prefix. <prefix> is the prefix (no spaces)"); } }
public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "ls") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ", " + Program.C.Config.CommandPrefix + "ls usage:"); C.WriteLine("PRIVMSG " + e.Target + " :" + Program.C.Config.CommandPrefix + "ls"); C.WriteLine("PRIVMSG " + e.Target + " :Causes me to list off my loaded modules."); } }
public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "mode") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ", " + Program.C.Config.CommandPrefix + "mode usage:"); C.WriteLine("PRIVMSG " + e.Target + " :" + Program.C.Config.CommandPrefix + "mode <mode>"); C.WriteLine("PRIVMSG " + e.Target + " :Causes me to change the current channel's modes. <mode> is the modes to apply."); } }
public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "quit") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ", " + Program.C.Config.CommandPrefix + "quit usage:"); C.WriteLine("PRIVMSG " + e.Target + " :" + Program.C.Config.CommandPrefix + "quit [message]"); C.WriteLine("PRIVMSG " + e.Target + " :Causes me to quit. [message] is optional; it is my quit message."); } }
/// <summary> /// Called when bot receives a help query /// </summary> /// <param name="sender">Boxed Connection object</param> /// <param name="e">Event args</param> public abstract void OnHelpReceived(object sender, IRCHelpEventArgs e);
public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "permissions") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ": Internal. Permissions system."); } }
public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "c#") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ", usage:"); C.WriteLine("PRIVMSG " + e.Target + " :" + Program.C.Config.CommandPrefix + "C# <code>"); C.WriteLine("PRIVMSG " + e.Target + " :Where <code> is C# code to compile and execute."); C.WriteLine("PRIVMSG " + e.Target + " :Example:"); C.WriteLine("PRIVMSG " + e.Target + " :" + Program.C.Config.CommandPrefix + "C# using System; namespace CSharpBot { class Program { public static string Main() { return \"Hello world!\"; } } }"); } }
public override void OnHelpReceived(object sender, IRCHelpEventArgs e) { if (e.Topic == "autorejoin") { Connection C = (Connection)sender; C.WriteLine("PRIVMSG " + e.Target + " :" + e.Nick + ", " + Program.C.Config.CommandPrefix + "Autorejoin usage:"); C.WriteLine("PRIVMSG " + e.Target + " :" + Program.C.Config.CommandPrefix + "autorejoin <on|off>"); } }