using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using ChaosBot.Models; using ChaosBot.Repositories; using Discord.Commands; using Discord.WebSocket; using NLog; namespace ChaosBot.Services { public class RestrictedConfig { private static ILogger _logger = Program.Logger; public static async Task IsAllowed(string key) { List restrictedCfg = new List {"Database", "Bot", "NLog", "WebServer", "Discord:Token"}; if (restrictedCfg.Contains(key)) return false; return true; } } }