示例#1
0
        static void Main(string[] args)
        {
            var opts = ParseOptions(args);
            var bot  = new BotCore(opts);

            bot.RegisterModule <Cmd.Commands>();
            bot.RegisterModule <Cmd.Actions>();
            bot.ConnectAsync();
            Environment.Exit(0);
        }
示例#2
0
 public BotMessageContext(BotCore core, IrcClient irc, PrivateMessage msg)
 {
     Core = core; IRC = irc; Msg = msg;
 }
示例#3
0
 public BotCommandContext(BotCore core, IrcClient irc, IrcUser user)
 {
     Core = core; IRC = irc; User = user;
 }