From 5688d75af1639f7ce18408dd123a9e5090248935 Mon Sep 17 00:00:00 2001 From: Zotov Aleksey <82260790+Zont1k@users.noreply.github.com> Date: Tue, 30 Aug 2022 14:24:43 +0200 Subject: [PATCH] Update Program.cs Added output of bot activity. --- samples/InteractionFramework/Program.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/samples/InteractionFramework/Program.cs b/samples/InteractionFramework/Program.cs index b9c4697af..82b5a2851 100644 --- a/samples/InteractionFramework/Program.cs +++ b/samples/InteractionFramework/Program.cs @@ -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(); client.Log += LogAsync;