Changed enviroment keys
This commit is contained in:
parent
68bffee042
commit
46f0bc9e29
1 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ namespace Bot_Discord_CSharp
|
|||
public async Task RunAsync()
|
||||
{
|
||||
string token, prefix;
|
||||
if (!Environment.GetEnvironmentVariables().Contains("Token"))
|
||||
if (!Environment.GetEnvironmentVariables().Contains("TOKEN"))
|
||||
{
|
||||
var json = string.Empty;
|
||||
|
||||
|
|
@ -38,8 +38,8 @@ namespace Bot_Discord_CSharp
|
|||
}
|
||||
else
|
||||
{
|
||||
token = Environment.GetEnvironmentVariable("Token");
|
||||
prefix = Environment.GetEnvironmentVariable("Prefix");
|
||||
token = Environment.GetEnvironmentVariable("TOKEN");
|
||||
prefix = Environment.GetEnvironmentVariable("PREFIX");
|
||||
}
|
||||
|
||||
var config = new DiscordConfiguration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue