private static void StoreDbValue(string varName, string value) { using (var db = new ZkDataContext()) { var entry = db.MiscVars.FirstOrDefault(x => x.VarName == varName); if (entry == null) { entry = new MiscVar() { VarName = varName }; db.MiscVars.Add(entry); } entry.VarValue = value; db.SaveChanges(); } }
public string GetNightwatchDiscordToken() => MiscVar.GetValue("NightwatchDiscordToken");
public string GetGlacierSecretKey() => MiscVar.GetValue("GlacierSecretKey");
public string GetSteamBuildPassword() => MiscVar.GetValue("SteamBuildPassword");
public string GetGithubHookKey() => MiscVar.GetValue("GithubHookKey");
public string GetSteamWebApiKey() => MiscVar.GetValue("SteamWebApiKey");
public string GetNightwatchPassword() => MiscVar.GetValue("NightwatchPassword");