This commit is contained in:
Kwoth 2016-11-15 09:55:42 +01:00
parent 46dadda759
commit 12587a648e

View File

@ -40,7 +40,7 @@ namespace NadekoBot.Services.Impl
try { File.WriteAllText("./credentials_example.json", JsonConvert.SerializeObject(new CredentialsModel(), Formatting.Indented)); } catch { } try { File.WriteAllText("./credentials_example.json", JsonConvert.SerializeObject(new CredentialsModel(), Formatting.Indented)); } catch { }
if(!File.Exists(credsFileName)) if(!File.Exists(credsFileName))
_log.Warn($"credentials.json is missing. Attempting to load creds from environment variables prefixed with 'NadekoBot:'. Example is in {Path.GetFullPath("./credentials_example.json")}"); _log.Warn($"credentials.json is missing. Attempting to load creds from environment variables prefixed with 'NadekoBot_'. Example is in {Path.GetFullPath("./credentials_example.json")}");
try try
{ {
var configBuilder = new ConfigurationBuilder(); var configBuilder = new ConfigurationBuilder();