Browse Source

Update Program.cs

Added output of bot activity.
pull/2445/head
Zotov Aleksey GitHub 2 years ago
parent
commit
5688d75af1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      samples/InteractionFramework/Program.cs

+ 9
- 0
samples/InteractionFramework/Program.cs View File

@@ -43,6 +43,15 @@ namespace InteractionFramework

public async Task RunAsync()
{
// Output of bot activity.
while(true)
{
await _client.SetGameAsync("I love Discord");
Thread.sleep(5000);
await _client.SetGameAsync("I love Discord.NET");
Thread.sleep(5000);
}
var client = _services.GetRequiredService<DiscordSocketClient>();

client.Log += LogAsync;


Loading…
Cancel
Save