Fix comments.
This commit is contained in:
parent
d109ce92c5
commit
4ee7b0e65a
|
@ -60,7 +60,7 @@ class DailyReleasesBot(object):
|
|||
self.generate(pm_recipient=message.author.name)
|
||||
message.mark_read()
|
||||
|
||||
# clean requests cache after each successful generation so it doesn't grow indefinitely
|
||||
# Clean requests cache after each successful generation so it doesn't grow indefinitely
|
||||
self.cache.remove_expired_responses()
|
||||
|
||||
except prawcore.PrawcoreException as e:
|
||||
|
@ -101,6 +101,7 @@ class DailyReleasesBot(object):
|
|||
"wildtangent.com": "WildTangent Games"
|
||||
}
|
||||
|
||||
# Multiple store links are sometimes returned, but we believe in Google's algorithm and choose the first one
|
||||
for link in self.web.search(f"{game_name} buy"):
|
||||
for store_url, store_name in known_stores.items():
|
||||
if re.search(store_url, link, flags=re.IGNORECASE):
|
||||
|
@ -191,7 +192,7 @@ class DailyReleasesBot(object):
|
|||
steam_package_basegame_appdetails = max(steam_package_apps_appdetails,
|
||||
key=lambda app: self.steam.reviews(app["steam_appid"]).number)
|
||||
|
||||
# Use the base game of the package as the basis for further computation
|
||||
# Use the base game as the basis for further computation
|
||||
steam_appdetails = steam_package_basegame_appdetails
|
||||
steam_appid = steam_package_basegame_appdetails["steam_appid"]
|
||||
|
||||
|
@ -209,7 +210,7 @@ class DailyReleasesBot(object):
|
|||
if steam_appdetails["type"] == "dlc" and rls_type != "Update":
|
||||
rls_type = "DLC"
|
||||
|
||||
# If Steam links to a 3rd-party EULAs, check it for the word "denuvo" and add a highlight if it occurs
|
||||
# If Steam links to a 3rd-party EULA, check it for the word "denuvo" and add a highlight if it occurs
|
||||
if "denuvo" in self.steam.eula(steam_appid).lower():
|
||||
logger.info("'denuvo' found in EULA; adding 'DENUVO' to highlights")
|
||||
highlights.append("DENUVO")
|
||||
|
|
Reference in a new issue