// // Mod_Memo constructor // public Mod_Memo(Bot bot_) : base(bot_) { if (File.Exists("/srv/irc/vrobot3/data/memos." + bot.n_groupname + ".json")) { memos = JsonConvert.DeserializeObject <MemoDict>(File.ReadAllText("/srv/irc/vrobot3/data/memos." + bot.n_groupname + ".json")); } commands["memo"] = new BotCommandStructure { cmd = Cmd_Memo, help = "Sends a message to someone later. Activates when they say something. || " + "Syntax: .memo person message || " + "Example: .memo SomeDude wow u suck at videogames" }; commands["memoseen"] = new BotCommandStructure { cmd = Cmd_MemoSeen, help = "Sends a message to someone later. Activates when they do anything. || " + "Syntax: .memoseen person message || " + "Example: .memoseen SomeDude wow u suck at videogames" }; commands["memocount"] = new BotCommandStructure { cmd = Cmd_MemoCount, flags = BotCommandFlags.AdminOnly, help = "Gets the amount of memos for this session. || " + "Syntax: @memocount" }; events.OnMessage += Evt_OnMessage; events.OnDisconnected += Evt_OnDisconnected; events.OnSeen += Evt_OnSeen; postSetup(); }
// // Mod_Admin constructor // public Mod_Admin(Bot bot) : base(bot) { commands["kill"] = new BotCommandStructure { cmd = cmdKill, role = BotRole.Admin, help = "Kills all bot instances.\n" + "Syntax: %kill" }; commands["msg"] = new BotCommandStructure { cmd = cmdMsg, role = BotRole.Admin, help = "Sends a message.\n" + "Syntax: %msg channel, msg\n" + "Example: %msg #general, ur all dumb" }; commands["action"] = new BotCommandStructure { cmd = cmdAction, role = BotRole.Admin, help = "Sends an action.\n" + "Syntax: %action channel, msg\n" + "Example: %action #general, explodes violently" }; postSetup(); }
// // Mod_Quote constructor // public Mod_Quote(Bot bot_) : base(bot_) { commands["quote"] = new BotCommandStructure { cmd = cmdQuote, help = "Get a quote from the Doominati Quote DB.\n" + "Syntax: .quote [id]\n" + "Example: .quote 536" }; postSetup(); }
// // Mod_Idgames constructor // public Mod_Idgames(Bot bot) : base(bot) { commands["idgames"] = new BotCommandStructure { cmd = cmdIdgames, help = "Gets an entry from the idgames archive.\n" + "Syntax: .idgames [name or ID[, type[, position]]]\n" + "Example: .idgames scythe, filename, 4\n" + "Example: .idgames" }; postSetup(); }
// // Mod_Fun constructor // public Mod_Fun(Bot bot) : base(bot) { commands["carmack"] = new BotCommandStructure { cmd = new ShitpostingDevice("MM", "", 3, 20, bot).run, hidden = true }; commands["revenant"] = new BotCommandStructure { cmd = new ShitpostingDevice("AA", "", 3, 20, bot).run, hidden = true }; commands["wan"] = new BotCommandStructure { cmd = new ShitpostingDevice("wan ", "- !", 2, 12, bot).run, hidden = true }; commands["nyan"] = new BotCommandStructure { cmd = new ShitpostingDevice("nyan ", "!~", 2, 12, bot).run, hidden = true }; commands[":^)"] = new BotCommandStructure { cmd = (usr, channel, msg) => bot.message(channel, ":^)"), hidden = true }; // commands["box"] = new BotCommandStructure { // cmd = cmdBox, // hidden = true, // role = BotRole.HalfAdmin // }; events.onMessage += onMessage; postSetup(); }
// // Mod_Utils constructor // public Mod_Utils(Bot bot) : base(bot) { commands["rand"] = new BotCommandStructure { cmd = cmdRand, help = "Random number device.\n" + "Syntax: .rand maximum [minimum]\n" + "Example: .rand 100" }; commands["help"] = new BotCommandStructure { cmd = cmdHelp, help = "Shows help or a list of commands.\n" + "Syntax: .help [topic]\n" + "Example: .help\n" + "Example: .help eightball" }; commands["decide"] = new BotCommandStructure { cmd = cmdDecide, help = "Decides between 2 or more choices.\n" + "Syntax: .decide x, y[, ...]\n" + "Example: .decide apples, oranges, bananas" }; commands["eightball"] = new BotCommandStructure { cmd = cmdEightball, help = "Peer into the magic 8-ball.\n" + "Example: .eightball If I take the mask off, will you die?" }; commands["mystery"] = new BotCommandStructure { cmd = cmdMystery, help = @"Does nothing. \o/" }; postSetup(); }