1
0
mirror of https://github.com/DanilaFe/AdventBot.git synced 2024-12-21 23:10:10 -08:00

Fix join bug in bot.

This commit is contained in:
Danila Fedorin 2020-12-05 14:49:10 -08:00
parent 49de57ae09
commit 034b8b645a

2
bot.py
View File

@ -118,7 +118,7 @@ def find_updates(old_json, new_json):
old_stars = all_stars(old_json)
new_stars = all_stars(new_json)
join = [m for m in new_json['members'] if m not in old_json['members']]
join = [new_json['members'][m] for m in new_json['members'] if m not in old_json['members']]
early_stars = [ star for star in detect_early_stars(new_stars)
if star[1] not in old_stars
and star[1][0] not in join ]