Browse Source

Change wording on token read

pull/1257/head
Still Hsu 6 years ago
parent
commit
93ccfd2282
No known key found for this signature in database GPG Key ID: 8601A145FDA95209
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      samples/02_commands_framework/Program.cs

+ 1
- 1
samples/02_commands_framework/Program.cs View File

@@ -38,7 +38,7 @@ namespace _02_commands_framework
services.GetRequiredService<CommandService>().Log += LogAsync; services.GetRequiredService<CommandService>().Log += LogAsync;


// Tokens should be considered secret data and never hard-coded. // Tokens should be considered secret data and never hard-coded.
// We can read from the environment variable to prevent such practices.
// We can read from the environment variable to avoid hardcoding.
await client.LoginAsync(TokenType.Bot, Environment.GetEnvironmentVariable("token")); await client.LoginAsync(TokenType.Bot, Environment.GetEnvironmentVariable("token"));
await client.StartAsync(); await client.StartAsync();




Loading…
Cancel
Save