chaosbot/ChaosBot/Services/RestrictedConfig.cs

20 lines
547 B
C#

using System;
using System.Collections.Generic;
namespace ChaosBot.Services
{
public class RestrictedConfig
{
public static Boolean IsAllowed(string key)
{
// TODO: List populated from DB
List<string> restrictedCfg = new List<string> {"Database:Host", "Database:Port", "Database:Name", "Database:User", "Database:Pass", "Bot:Version", "NLog", "WebServer", "Discord:Token"};
if (restrictedCfg.Contains(key))
return false;
return true;
}
}
}