コード例 #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);
            motdModule           = new MotdModule(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);
            countdownmodule      = new CountDownModule(this, jsconfig);

            Console.WriteLine("Modules loaded and ModuleList intitialised");

            foreach (BaseModule module in ModuleList)
            {
                module.OnAllModulesLoaded();
            }
        }
コード例 #2
0
ファイル: SetMotd.cs プロジェクト: monster860/TF2MChatBots
 public SetMotd(VBot bot, MotdModule motd) : base(bot, "Set", motd)
 {
 }