public override sealed void StartupListener() { IrcCommand = IrcCommand ?? new IrcCommand(client); client.RegisterCommand("irc", IrcCommand); client.Self.ChatFromSimulator += IrcBot_OnChat; client.Self.IM += IrcBot_IM; }
public IrcBotModule(BotClient parent) : base(parent) { IrcCommand = IrcCommand ?? new IrcCommand(client); if (client != null) client.RegisterCommand("irc", IrcCommand); //parent.Commands.Add(); }
public IrcBotModule(BotClient parent) : base(parent) { IrcCommand = IrcCommand ?? new IrcCommand(client); if (client != null) { client.RegisterCommand("irc", IrcCommand); } //parent.Commands.Add(); }