Skip to content

Commit

Permalink
Fix lootitems command not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Jan 1, 2024
1 parent dc63ad5 commit 50db342
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BoosterManager/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,11 @@ internal static class Commands {
return await ResponseSendItemToBot(access, steamID, Utilities.GetArgsAsText(args, 1, ","), Asset.SteamAppID.ToString(), Asset.SteamCommunityContextID.ToString(), ItemIdentifier.GemIdentifier.ToString()).ConfigureAwait(false);

case "LOOTITEMS" or "LOOTITEM" or "ALOOTITEMS" or "ALOOTITEM" when args.Length > 4:
return await ResponseSendItemToBot(access, steamID, args[2], args[2], args[3], Utilities.GetArgsAsText(args, 4, " ")).ConfigureAwait(false);
return await ResponseSendItemToBot(access, steamID, args[1], args[2], args[3], Utilities.GetArgsAsText(args, 4, " ")).ConfigureAwait(false);
case "ULOOTITEMS" or "ULOOTITEM" when args.Length > 4:
return await ResponseSendItemToBot(access, steamID, args[2], args[2], args[3], Utilities.GetArgsAsText(args, 4, " "), marketable: false).ConfigureAwait(false);
return await ResponseSendItemToBot(access, steamID, args[1], args[2], args[3], Utilities.GetArgsAsText(args, 4, " "), marketable: false).ConfigureAwait(false);
case "MLOOTITEMS" or "MLOOTITEM" when args.Length > 4:
return await ResponseSendItemToBot(access, steamID, args[2], args[2], args[3], Utilities.GetArgsAsText(args, 4, " "), marketable: true).ConfigureAwait(false);
return await ResponseSendItemToBot(access, steamID, args[1], args[2], args[3], Utilities.GetArgsAsText(args, 4, " "), marketable: true).ConfigureAwait(false);

case "LOOTKEYS" or "LOOTKEY":
return await ResponseSendItemToBot(access, steamID, Utilities.GetArgsAsText(args, 1, ","), KeyHandler.KeyAppID.ToString(), KeyHandler.KeyContextID.ToString(), ItemIdentifier.KeyIdentifier.ToString()).ConfigureAwait(false);
Expand Down

0 comments on commit 50db342

Please sign in to comment.