mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
do not accept token as a command line argument anymore
This commit is contained in:
@@ -155,10 +155,6 @@ namespace CompatBot
|
||||
{
|
||||
try
|
||||
{
|
||||
var args = Environment.CommandLine.Split(' ', StringSplitOptions.RemoveEmptyEntries);
|
||||
if (args.Length > 1 && SandboxDetector.Detect() != SandboxType.Docker)
|
||||
inMemorySettings[nameof(Token)] = args[1];
|
||||
|
||||
config = new ConfigurationBuilder()
|
||||
.AddUserSecrets(Assembly.GetExecutingAssembly()) // lower priority
|
||||
.AddEnvironmentVariables()
|
||||
|
||||
Reference in New Issue
Block a user