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

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

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

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

            home.Suggestion = Context.Channel.Id;
            Homeserver.SaveHome(home);
            await ReplyAsync("Done");
        }
Beispiel #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)}!");
        }
Beispiel #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!");
        }
Beispiel #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");
        }
Beispiel #8
0
        public async Task HomeAsync()
        {
            var homes = new Homeserver
            {
                GuildId   = Context.Guild.Id,
                GuildName = Context.Guild.Name
            };

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