Esempio n. 1
0
        public BotModule() : base("bots/")
        {
            Get["available"] = ctx =>
            {
                return(BotManager.ClassNames("bots/"));
            };

            Get["load"] = ctx =>
            {
                return(BotManager.Load("bots/"));
            };

            Get["unload"] = ctx =>
            {
                BotManager.Unload("bots/");
                return(string.Empty);
            };
        }