stuff
This commit is contained in:
parent
d76452bdc3
commit
e8596fb544
1 changed files with 5 additions and 3 deletions
|
@ -182,20 +182,22 @@ class SteamGifts:
|
||||||
|
|
||||||
for item in unentered_game_list:
|
for item in unentered_game_list:
|
||||||
giveaway = Giveaway(item)
|
giveaway = Giveaway(item)
|
||||||
txt = f"〰️ {giveaway.game_name} - {giveaway.cost}P - {giveaway.game_entries} entries (w/ {giveaway.copies} " \
|
txt = f"〰️ {giveaway.game_name} - {giveaway.cost}P - {giveaway.game_entries} entries " \
|
||||||
f"copies) - Created {giveaway.time_created_string} ago with {giveaway.time_remaining_string} remaining."
|
f"(w/ {giveaway.copies} copies) - Created {giveaway.time_created_string} ago " \
|
||||||
|
f"with {giveaway.time_remaining_string} remaining by {giveaway.user}."
|
||||||
logger.info(txt)
|
logger.info(txt)
|
||||||
if giveaway.pinned and not self.pinned:
|
if giveaway.pinned and not self.pinned:
|
||||||
logger.info(f"〰️ Giveaway {giveaway.game_name} is pinned. Ignoring.")
|
logger.info(f"〰️ Giveaway {giveaway.game_name} is pinned. Ignoring.")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self.points == 0 or self.points < self.min_points:
|
if self.points == 0 or self.points < self.min_points:
|
||||||
txt = f"〰 We have {self.points} points, but we need {self.min_points} to start."
|
txt = f"🟡 We have {self.points} points, but we need {self.min_points} to start."
|
||||||
logger.info(txt)
|
logger.info(txt)
|
||||||
run = False
|
run = False
|
||||||
break
|
break
|
||||||
|
|
||||||
if not giveaway.cost:
|
if not giveaway.cost:
|
||||||
|
logger.error(f"Cost could not be determined for '{giveaway.game_name}'")
|
||||||
continue
|
continue
|
||||||
if_enter_giveaway = self.should_we_enter_giveaway(giveaway)
|
if_enter_giveaway = self.should_we_enter_giveaway(giveaway)
|
||||||
if if_enter_giveaway:
|
if if_enter_giveaway:
|
||||||
|
|
Loading…
Reference in a new issue