예제 #1
0
        public async Task ASTog()
        {
            var hs = Homeserver.Load();

            hs.DisableCheckMsg = !hs.DisableCheckMsg;
            Homeserver.SaveHome(hs);
            await ReplyAsync($"Antispam Disabled: {hs.NoToxicityDisabled}");
        }
예제 #2
0
        public async Task NTDis()
        {
            var hs = Homeserver.Load();

            hs.NoToxicityDisabled = !hs.NoToxicityDisabled;
            Homeserver.SaveHome(hs);
            await ReplyAsync($"Toxicity Disabled: {hs.NoToxicityDisabled}");
        }
예제 #3
0
        public async Task Error()
        {
            var home = Homeserver.Load();

            home.Error = Context.Channel.Id;
            Homeserver.SaveHome(home);
            await ReplyAsync("Done");
        }
예제 #4
0
        public async Task Suggest()
        {
            var home = Homeserver.Load();

            home.Suggestion = Context.Channel.Id;
            Homeserver.SaveHome(home);
            await ReplyAsync("Done");
        }
예제 #5
0
        public async Task BModRole(SocketRole role = null)
        {
            var home = Homeserver.Load();

            home.BotModerator = role?.Id ?? 0;
            Homeserver.SaveHome(home);
            await ReplyAsync($"ModRole is set to {(role == null ? "N/A" : role.Name)}!");
        }
예제 #6
0
        public async Task PupDates()
        {
            var home = Homeserver.Load();

            home.PartnerUpdates = Context.Channel.Id;
            Homeserver.SaveHome(home);
            await ReplyAsync("PartnerUpdates will now be posted here!");
        }
예제 #7
0
        public async Task Error()
        {
            var file = Path.Combine(AppContext.BaseDirectory, $"setup/config/home.json");
            var home = JsonConvert.DeserializeObject <Homeserver>(File.ReadAllText(file));

            home.Error = Context.Channel.Id;
            Homeserver.SaveHome(home);
            await ReplyAsync("Done");
        }
예제 #8
0
        public async Task HomeAsync()
        {
            var homes = new Homeserver
            {
                GuildId   = Context.Guild.Id,
                GuildName = Context.Guild.Name
            };

            Homeserver.SaveHome(homes);
            await ReplyAsync("Done");
        }