Exemplo n.º 1
0
        /// <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();
            }
        }
Exemplo n.º 2
0
 public SetStatusMessage(UserHandler bot, ModuleHandler modulehandler, IdentityModule module) : base(modulehandler, "!StatusSet")
 {
     this.module = module;
     this.bot    = bot;
 }