示例#1
0
 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.");
     }
 }
示例#2
0
 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.");
     }
 }
示例#3
0
 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.");
     }
 }
示例#4
0
 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.");
     }
 }
示例#5
0
 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>");
     }
 }
示例#6
0
 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)");
     }
 }
示例#7
0
 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.");
     }
 }
示例#8
0
 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.");
     }
 }
示例#9
0
 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.");
     }
 }
示例#10
0
 /// <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);
示例#11
0
 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.");
     }
 }
示例#12
0
 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!\"; } } }");
     }
 }
示例#13
0
 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>");
     }
 }