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