Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/chr233/ASFEnhance
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Dec 15, 2023
2 parents c883984 + 0205727 commit d835093
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 164 deletions.
30 changes: 15 additions & 15 deletions ASFEnhance/ASFEnhance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,13 @@ public Task OnLoaded()
"C20" when access >= EAccess.Operator =>
Event.Command.ResponseClaim20Th(bot),

"V" or
"VOTE" when access >= EAccess.Operator =>
Event.Command.ResponseSteamAwardVote(bot, ""),
// "V" or
// "VOTE" when access >= EAccess.Operator =>
// Event.Command.ResponseSteamAwardVote(bot, ""),

"CV" or
"CHECKVOTE" when access >= EAccess.Operator =>
Event.Command.ResponseCheckSteamAwardVote(bot),
// "CV" or
// "CHECKVOTE" when access >= EAccess.Operator =>
// Event.Command.ResponseCheckSteamAwardVote(bot),

//Shortcut
"P" =>
Expand Down Expand Up @@ -480,16 +480,16 @@ public Task OnLoaded()
"C20" when access >= EAccess.Operator =>
Event.Command.ResponseClaim20Th(Utilities.GetArgsAsText(args, 1, ",")),

"V" or
"VOTE" when argLength > 2 && access >= EAccess.Operator =>
Event.Command.ResponseSteamAwardVote(args[1], Utilities.GetArgsAsText(args, 2, ",")),
"V" or
"VOTE" when access >= EAccess.Operator =>
Event.Command.ResponseSteamAwardVote(args[1], ""),
// "V" or
// "VOTE" when argLength > 2 && access >= EAccess.Operator =>
// Event.Command.ResponseSteamAwardVote(args[1], Utilities.GetArgsAsText(args, 2, ",")),
// "V" or
// "VOTE" when access >= EAccess.Operator =>
// Event.Command.ResponseSteamAwardVote(args[1], ""),

"CV" or
"CHECKVOTE" when access >= EAccess.Operator =>
Event.Command.ResponseCheckSteamAwardVote(Utilities.GetArgsAsText(args, 1, ",")),
// "CV" or
// "CHECKVOTE" when access >= EAccess.Operator =>
// Event.Command.ResponseCheckSteamAwardVote(Utilities.GetArgsAsText(args, 1, ",")),

//Shortcut
"AL" =>
Expand Down
2 changes: 1 addition & 1 deletion ASFEnhance/Cart/WebRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ internal static async Task<bool> CartSetCountry(Bot bot, string countryCode)
/// <returns></returns>
internal static async Task<FinalPriceResponse?> GetFinalPrice(Bot bot, string TransId, bool asGift = false)
{
string? shoppingCartId = bot.ArchiWebHandler.WebBrowser.CookieContainer.GetCookieValue(new(SteamCheckoutURL, "/checkout/"), "beginCheckoutCart");
var shoppingCartId = bot.ArchiWebHandler.WebBrowser.CookieContainer.GetCookieValue(new(SteamCheckoutURL, "/checkout/"), "beginCheckoutCart");

if (string.IsNullOrEmpty(shoppingCartId) || shoppingCartId == "-1")
{
Expand Down
Loading

0 comments on commit d835093

Please sign in to comment.