Example #1
0
        public static void SaveRoleCard()
        {
            string json = JsonConvert.SerializeObject(RoleAssignerHandler.Rolecard, Formatting.Indented);

            File.WriteAllText(RoleCardFilepath, json);
            SwissbotStateHandler.SaveObject("RoleCards.json", RoleAssignerHandler.Rolecard);
        }
Example #2
0
        public static void SaveSupportTickets()
        {
            var ticks = SupportTicketHandler.CurrentTickets;

            ticks.ForEach(x => x.DMTyping.TypingObject = null);
            //ticks.ForEach(x => x.DmTyping.TypingObject = null);
            //string json = JsonConvert.SerializeObject(ticks, Formatting.Indented);
            //File.WriteAllText(SupportTicketJsonPath, json);
            SwissbotStateHandler.SaveObject("Tickets.json", ticks);
        }
Example #3
0
 public static void SaveAutoSlowmode()
 {
     SwissbotStateHandler.SaveObject("AutoSlowmode.json", AutoModHandler.CurrentSlowmodes);
 }
Example #4
0
 public static void SaveSuggestions()
 {
     SwissbotStateHandler.SaveObject("Suggestions.json", SuggestionHandler.CurrentSuggestions);
 }
Example #5
0
 public static void SaveMutedUsers()
 {
     SwissbotStateHandler.SaveObject("MutedUsers.json", MutedHandler.CurrentMuted);
 }
Example #6
0
 public static void SaveBlockedUsers()
 {
     SwissbotStateHandler.SaveObject("BlockedUsers.json", SupportTicketHandler.BlockedUsers);
 }
Example #7
0
 public static void SaveSnippets()
 {
     SwissbotStateHandler.SaveObject("Snippets.json", SupportTicketHandler.Snippets);
 }
Example #8
0
 public static void SaveCensor()
 {
     SwissbotStateHandler.SaveObject("Censor.json", CensoredWords);
 }
Example #9
0
 private static void SaveTempBans()
 {
     SwissbotStateHandler.SaveObject("TempBans.json", TempBans);
 }
Example #10
0
 public void Save()
 => SwissbotStateHandler.SaveObject("EventSettings", this);
Example #11
0
 public static void SaveVoiceKicked()
 => SwissbotStateHandler.SaveObject("VoiceKicked.json", CurrentVoiceKicked);
Example #12
0
 public void SaveWhitelist()
 => SwissbotStateHandler.SaveObject("Whitelist.json", WhiteList);
 public void SaveMap()
 => SwissbotStateHandler.SaveObject("ClientMap.json", ClientMaps);
Example #14
0
 public void SaveAskTimes()
 => SwissbotStateHandler.SaveObject("ask-times.json", AskTimes);
Example #15
0
 public static void SaveAltCards()
 {
     SwissbotStateHandler.SaveObject("AltCards.json", VerificationHandler.FList);
 }