diff --git a/CFDiscordBot/CFDiscordBot.csproj b/CFDiscordBot/CFDiscordBot.csproj
index 0500c14..9630147 100644
--- a/CFDiscordBot/CFDiscordBot.csproj
+++ b/CFDiscordBot/CFDiscordBot.csproj
@@ -8,10 +8,10 @@
-
-
-
-
+
+
+
+
diff --git a/CFDiscordBot/DiscordBot.cs b/CFDiscordBot/DiscordBot.cs
index b5777f4..adee994 100644
--- a/CFDiscordBot/DiscordBot.cs
+++ b/CFDiscordBot/DiscordBot.cs
@@ -43,7 +43,7 @@ private async Task DiscordClient_ShardReady(DiscordSocketClient _shardClient)
await interactionService.AddModulesAsync(Assembly.GetEntryAssembly(), serviceProvider);
await interactionService.RegisterCommandsGloballyAsync(true);
- discordClient.InteractionCreated += DiscordClient_InteractionCreated; ;
+ discordClient.InteractionCreated += DiscordClient_InteractionCreated;
logger.LogInformation("Slash commands registered");
}
diff --git a/CFLookup/CFLookup.csproj b/CFLookup/CFLookup.csproj
index 2877143..2ddd2bc 100644
--- a/CFLookup/CFLookup.csproj
+++ b/CFLookup/CFLookup.csproj
@@ -15,13 +15,13 @@
-
+
-
-
-
+
+
+
diff --git a/CFLookup/Jobs/GetLatestUpdatedModPerGame.cs b/CFLookup/Jobs/GetLatestUpdatedModPerGame.cs
index f5b0c85..23a5bbe 100644
--- a/CFLookup/Jobs/GetLatestUpdatedModPerGame.cs
+++ b/CFLookup/Jobs/GetLatestUpdatedModPerGame.cs
@@ -28,6 +28,7 @@ public static async Task RunAsync(PerformContext context)
var allGames = new List();
var games = await cfClient.GetGamesAsync();
+ await Task.Delay(100);
if (games != null && games.Pagination.ResultCount > 0)
{
allGames.AddRange(games.Data);
@@ -36,6 +37,7 @@ public static async Task RunAsync(PerformContext context)
{
index += games.Pagination.PageSize;
games = await cfClient.GetGamesAsync(index);
+ await Task.Delay(100);
allGames.AddRange(games.Data);
}
}
@@ -206,6 +208,7 @@ public static async Task RunAsync(PerformContext context)
{
allGames.Add(game.Data);
}
+ await Task.Delay(100);
}
}
@@ -214,6 +217,8 @@ public static async Task RunAsync(PerformContext context)
Console.WriteLine($"Starting to check for latest updated mod for {game.Name} (GameId: {game.Id})");
await _db.StringSetAsync($"cf-game-{game.Id}", JsonSerializer.Serialize(game), TimeSpan.FromDays(1));
+ await Task.Delay(100);
+
var latestUpdatedMod = await cfClient.SearchModsAsync(game.Id, sortField: ModsSearchSortField.LastUpdated, sortOrder: ModsSearchSortOrder.Descending, pageSize: 1);
if (latestUpdatedMod != null && latestUpdatedMod.Pagination.ResultCount > 0)
{