Skip to content

Commit

Permalink
right, this
Browse files Browse the repository at this point in the history
  • Loading branch information
sylveonnotdeko committed Jul 30, 2023
1 parent 3c1dd96 commit 2f24d40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/Mewdeko/Modules/StatusRoles/StatusRoles.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Runtime.CompilerServices;
using Discord.Commands;
using Discord.Commands;
using Fergun.Interactive;
using Fergun.Interactive.Pagination;
using Mewdeko.Common.Attributes.TextCommands;
Expand Down
3 changes: 3 additions & 0 deletions src/Mewdeko/Services/Impl/StatsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ public async Task PostToTopGg()

public static async Task SetTopGuilds(DiscordSocketClient client, IDataCache cache, IBotCredentials creds)
{
if (client.ShardId != 0)
return;

var periodicTimer = new PeriodicTimer(TimeSpan.FromHours(12));
// Set it once before executing the 12h loop
var guilds = await client.Rest.GetGuildsAsync(true);
Expand Down

0 comments on commit 2f24d40

Please sign in to comment.