Esempio 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();
            }
        }
Esempio n. 2
0
 public ReplyRemove(VBot bot, RepliesModule repliesModule) : base(bot, "!ReplyRemove")
 {
     replymodule = repliesModule;
 }
Esempio n. 3
0
 public ReplyAdd(VBot bot, RepliesModule repliesModule) : base(bot, "!replyadd")
 {
     replymodule = repliesModule;
 }
Esempio n. 4
0
 public ReplyFunction(VBot bot, RepliesModule module) : base(bot, null)
 {
     this.module = module;
 }