示例#1
0
        public async Task OnReady()
        {
            SetupGeneral();

            await GeneralHandler.UpdateRoleMessage();  // fix the role selection message on startup

            Ready = true;
            KLog.Important("Ready!");
        }
示例#2
0
 public static void SaveSettings()
 {
     BotUtils.WriteToJson(Settings, DataFileNames.GeneralConfigFile);
     KLog.Info("Settings Saved.");
 }
示例#3
0
 public static void ReloadConfig()
 {
     LoadSettings();
     ServerData.SetupServerData(Settings);
     KLog.Info("Settings Reloaded");
 }