diff --git a/config/config.ini.example b/config/config.ini.example index 8b07102..437a2bb 100644 --- a/config/config.ini.example +++ b/config/config.ini.example @@ -10,6 +10,8 @@ all.minimum_points = 50 all.max_entries = 2000 # time left in minutes of a giveaway for it to be considered all.max_time_left = 300 +# points after that giveaway is considered regardless of entries and time left +all.max_points = 350 # the minimum point value for a giveaway to be considered all.minimum_game_points = 1 # a comma separated list of keywords in game titles to ignore @@ -24,6 +26,8 @@ wishlist.minimum_points = 1 wishlist.max_entries = 10000 # time left in minutes of a giveaway for it to be considered wishlist.max_time_left = 300 +# points after that giveaway is considered regardless of entries and time left +wishlist.max_points = 350 [DLC] # should we consider giveaways on the 'DLC' page? @@ -34,6 +38,8 @@ dlc.minimum_points = 1 dlc.max_entries = 10000 # time left in minutes of a giveaway for it to be considered dlc.max_time_left = 300 +# points after that giveaway is considered regardless of entries and time left +dlc.max_points = 350 [NOTIFICATIONS] # a prefix for messages sent via notifications diff --git a/src/bot/giveaway_entry.py b/src/bot/giveaway_entry.py index 34e2b2f..46d36e1 100644 --- a/src/bot/giveaway_entry.py +++ b/src/bot/giveaway_entry.py @@ -59,7 +59,7 @@ class GiveawayEntry: return None def _get_steam_app_id(self, steam_url): - match = re.search('^.+/[a-z0-9]+/(?P[0-9]+)/$', steam_url, re.IGNORECASE) + match = re.search('^.+/[a-z0-9]+/(?P[0-9]+)(/|\?)', steam_url, re.IGNORECASE) if match: return match.group('steam_app_id') else: