|
@@ -24,7 +24,7 @@ public class Program |
|
|
|
|
|
|
|
|
// Some alternative options would be to keep your token in an Environment Variable or a standalone file. |
|
|
// Some alternative options would be to keep your token in an Environment Variable or a standalone file. |
|
|
// var token = Environment.GetEnvironmentVariable("NameOfYourEnvironmentVariable"); |
|
|
// var token = Environment.GetEnvironmentVariable("NameOfYourEnvironmentVariable"); |
|
|
// var token = File.ReadAllText("token.txt")[0]; |
|
|
|
|
|
|
|
|
// var token = File.ReadAllText("token.txt"); |
|
|
// var token = JsonConvert.DeserializeObject<AConfigurationClass>(File.ReadAllText("config.json")).Token; |
|
|
// var token = JsonConvert.DeserializeObject<AConfigurationClass>(File.ReadAllText("config.json")).Token; |
|
|
|
|
|
|
|
|
await _client.LoginAsync(TokenType.Bot, token); |
|
|
await _client.LoginAsync(TokenType.Bot, token); |
|
|