예제 #1
0
 public DiscordGuild(SingleGuildConfig gc, DiscordSocketClient sc)
 {
     _reports      = new List <string>();
     _reports_lock = new SemaphoreSlim(1, 1);
     Config        = gc;
     _socket       = sc.GetGuild(Config.id);
 }
예제 #2
0
        public static void Run()
        {
            var gc = new BackupGuildConfiguration();

            var controlCenter = new SingleGuildConfig();

            controlCenter.id                    = Settings.ControlGuild;
            controlCenter.reportChannel         = "reports";
            controlCenter.roleHighlightChannels = new List <string> {
                "looking-for-teammates"
            };
            controlCenter.commandChannels = new List <string> {
                "rank-bot"
            };

            var chillServer = new SingleGuildConfig();

            chillServer.id = 620608384227606528;
            chillServer.commandChannels = new List <string> {
                "🦾rank-bot", "rank-bot-admin"
            };
            chillServer.reportChannel         = "🦾rank-bot";
            chillServer.roleHighlightChannels = new List <string> {
                "🔍hledám-spoluhráče"
            };

            gc.guildList.Add(controlCenter);
            gc.guildList.Add(chillServer);
            Console.WriteLine(gc.BackupToString());
        }