public async Task ASTog() { var hs = Homeserver.Load(); hs.DisableCheckMsg = !hs.DisableCheckMsg; Homeserver.SaveHome(hs); await ReplyAsync($"Antispam Disabled: {hs.NoToxicityDisabled}"); }
public async Task NTDis() { var hs = Homeserver.Load(); hs.NoToxicityDisabled = !hs.NoToxicityDisabled; Homeserver.SaveHome(hs); await ReplyAsync($"Toxicity Disabled: {hs.NoToxicityDisabled}"); }
public async Task Error() { var home = Homeserver.Load(); home.Error = Context.Channel.Id; Homeserver.SaveHome(home); await ReplyAsync("Done"); }
public async Task Suggest() { var home = Homeserver.Load(); home.Suggestion = Context.Channel.Id; Homeserver.SaveHome(home); await ReplyAsync("Done"); }
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)}!"); }
public async Task PupDates() { var home = Homeserver.Load(); home.PartnerUpdates = Context.Channel.Id; Homeserver.SaveHome(home); await ReplyAsync("PartnerUpdates will now be posted here!"); }
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"); }
public async Task HomeAsync() { var homes = new Homeserver { GuildId = Context.Guild.Id, GuildName = Context.Guild.Name }; Homeserver.SaveHome(homes); await ReplyAsync("Done"); }