public IdentityModule(UserHandler bot, ModuleHandler handler, Dictionary <string, Dictionary <string, object> > Jsconfig) : base(handler, Jsconfig) { handler.AddListChangeEventListiner(this); DeletableModule = false; userhandler = bot; this.modulehandler = handler; username = config["DefaultUsername"].ToString(); status = config["DefaultStatus"].ToString(); UseStatus = bool.Parse(config["UseStatus"].ToString()); loadPersistentData(); savePersistentData(); handler.AddLoginEventListiner(this); adminCommands.Add(new Rename(handler, this)); adminCommands.Add(new SetStatusMessage(userhandler, modulehandler, this)); adminCommands.Add(new UnsetStatusMessage(userhandler, modulehandler, this)); }
public AdminModule(ModuleHandler handler, IHTMLFileFromArrayPasser HtmlHandler, UserHandler userhandler, Dictionary <string, Dictionary <string, object> > Jsconfig) : base(handler, Jsconfig) { DeletableModule = false; this.modulehandler = handler; this.HtmlHandler = HtmlHandler; loadPersistentData(); savePersistentData(); handler.AddLoginEventListiner(this); commands.Add(new CommandListRetrieve(handler, this)); commands.Add(new UserInfo(handler, this)); adminCommands.Add(new GetAllModules(handler, this)); adminCommands.Add(new Reboot(handler, this)); adminCommands.Add(new RunScript(handler, this)); }
public SetStatusMessage(UserHandler bot, ModuleHandler modulehandler, IdentityModule module) : base(modulehandler, "!StatusSet") { this.module = module; this.bot = bot; }
public static void AssignConnection(UserHandler userhandler, ApplicationInterface applicationinterface) { userhandler.AssignAppInterface(applicationinterface); applicationinterface.AssignUserHandler(userhandler); }