forked from sass/tipibot
Fix birthday bug
This commit is contained in:
@@ -236,7 +236,7 @@ def register_dev_member_commands(
|
||||
else:
|
||||
already_ok += 1
|
||||
|
||||
if result.birthday_soon and not has_announced_today(member.id):
|
||||
if result.birthday_today and not has_announced_today(member.id):
|
||||
birthday_pings += 1
|
||||
await announce_birthday(member, bot)
|
||||
mark_announced_today(member.id)
|
||||
|
||||
@@ -88,6 +88,6 @@ async def handle_member_join(
|
||||
log_sync_result(member, result)
|
||||
await sheets.set_synced(member.id, result.synced)
|
||||
|
||||
if result.birthday_soon and not has_announced_today(member.id):
|
||||
if result.birthday_today and not has_announced_today(member.id):
|
||||
await announce_birthday(member, bot)
|
||||
mark_announced_today(member.id)
|
||||
|
||||
Reference in New Issue
Block a user