/// <summary> /// Do not try using steamfriends, steamuser and all that since it'll be uninitialised at this point /// </summary> /// <param name="SteamConnectionHandler"></param> public VBot() { Console.WriteLine("VBot Initialised"); Console.WriteLine("Loading modules and stuff"); ModuleList = new List <BaseModule>(); MapChangeEventListiners = new List <ServerMapChangeListiner>(); HTMLParsers = new List <IHTMLFileFromArrayPasser>(); OnLoginlistiners = new List <OnLoginCompletedListiners>(); ListChangeEventListiners = new List <MapListChangeListiner>(); // loading modules WebServer = new WebServerHostingModule(this, jsconfig); mapModule = new MapModule(this, this, jsconfig); TrackingServerListmodule = new TrackingServerListHolder(this, this, jsconfig); ServerTrackingModule = new ServerTrackingModule(this, this, jsconfig); usersModule = new UsersModule(this, jsconfig); replyModule = new RepliesModule(this, jsconfig); searchModule = new SearchModule(this, jsconfig); adminmodule = new AdminModule(this, this, this, jsconfig); identitymodule = new IdentityModule(this, this, jsconfig); //motdModule = new MotdModule(this, jsconfig); //countdownmodule = new CountDownModule(this, jsconfig); Console.WriteLine("Modules loaded and ModuleList intitialised"); foreach (BaseModule module in ModuleList) { module.OnAllModulesLoaded(); } }
public ReplyRemove(VBot bot, RepliesModule repliesModule) : base(bot, "!ReplyRemove") { replymodule = repliesModule; }
public ReplyAdd(VBot bot, RepliesModule repliesModule) : base(bot, "!replyadd") { replymodule = repliesModule; }
public ReplyFunction(VBot bot, RepliesModule module) : base(bot, null) { this.module = module; }