NEW: add NadekoBot__creds env to specify alternative creds.yml

This commit is contained in:
Veovis
2022-07-27 05:00:27 +00:00
committed by Kwoth
parent f761714f15
commit cc6128997e
5 changed files with 39 additions and 20 deletions

View File

@@ -23,6 +23,6 @@ if (args.Length > 0 && args[0] != "run")
}
LogSetup.SetupLogger(shardId);
Log.Information("Pid: {ProcessId}", pid);
await new Bot(shardId, totalShards).RunAndBlockAsync();
Log.Information("Pid: {ProcessId}", pid);
await new Bot(shardId, totalShards, Environment.GetEnvironmentVariable("NadekoBot__creds")).RunAndBlockAsync();