예제 #1
0
 private void Reload(IPluginManager loader)
 {
     // Remove schedules from bot
     // - there is no schedules becaus this is called on initialize the plugin.
     // Reset JSWrapper
     ResetJSWrapper();
     // Load JSON configs and create schedules
     DoReload();
     // Add schedules to bot
     foreach (var s in this.schedules)
     {
         loader.AddSchedule(s);
     }
 }
예제 #2
0
        public void Initialize(IPluginManager loader, IPlugin[] plugins)
        {
            WelcomeSchedulerConfig config = LoadCofig(loader);

            loader.AddSchedule(new WelcomeTask(config));
        }