Skip to content

Commit

Permalink
Changed bot activity
Browse files Browse the repository at this point in the history
  • Loading branch information
pazurkota committed May 28, 2023
1 parent fb1e703 commit eed1328
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simplebot/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Newtonsoft.Json;
using DSharpPlus;
using DSharpPlus.CommandsNext;
using DSharpPlus.Entities;
using DSharpPlus.EventArgs;
using DSharpPlus.Interactivity;
using DSharpPlus.Interactivity.Extensions;
Expand Down Expand Up @@ -44,7 +45,7 @@ public async Task RunAsync() {
Commands.RegisterCommands<ModerationCommand>();
Commands.RegisterCommands<FunCommands>();

await Client.ConnectAsync();
await Client.ConnectAsync(new DiscordActivity("Powered by SimpleBot", ActivityType.Watching));
await Task.Delay(-1); // make the bot stay online
}

Expand Down

0 comments on commit eed1328

Please sign in to comment.