Skip to content

Commit

Permalink
Merge pull request #50 from egebilecen/v1.8.x
Browse files Browse the repository at this point in the history
v1.8.1
- Fixed an issue with workshop mod update checker.
  • Loading branch information
egebilecen committed Dec 23, 2022
2 parents b92b3a1 + cbf9c34 commit 10b14bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Bot/Commands/AdminCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ public class AdminCommands : ModuleBase<SocketCommandContext>
public async Task Debug(string param1="", string param2="", string param3="")
{
await Context.Message.AddReactionAsync(EmojiList.GreenCheck);
await SteamWebAPI.GetWorkshopItemDetails(new string[] { });
}
}
4 changes: 3 additions & 1 deletion src/Bot/Util/SteamWebAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class WorkshopItemDetails
public int ConsumerAppId;
public string FileName;
[JsonProperty("file_size")]
public int FileSize;
public long FileSize;
[JsonProperty("file_url")]
public string FileURL;
[JsonProperty("hcontent_file")]
Expand Down Expand Up @@ -85,8 +85,10 @@ public class WorkshopItemDetails
{
JArray workshopItems = (JArray)jsonData["publishedfiledetails"];

int i=-1;
foreach(JToken elem in workshopItems)
{
Logger.WriteLog($"SteamWebAPI.GetWorkshopItemDetails() - Workshop Item ID: {idList[++i]}");
Model.WorkshopItemDetails itemDetails = elem.ToObject<Model.WorkshopItemDetails>();
itemDetailsList.Add(itemDetails);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public static class Application
{
public const string BotRepoURL = "https://github.com/egebilecen/PZServerDiscordBot";
public static readonly SemanticVersion BotVersion = new SemanticVersion(1, 8, 0, DevelopmentStage.Release);
public static readonly SemanticVersion BotVersion = new SemanticVersion(1, 8, 1, DevelopmentStage.Release);
public static Settings.BotSettings BotSettings;

public static DiscordSocketClient Client;
Expand Down

0 comments on commit 10b14bd

Please sign in to comment.