fix
This commit is contained in:
parent
46dadda759
commit
12587a648e
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user