1
0
Fork 0
mirror of synced 2024-05-02 19:52:25 +12:00

Logic fix

This commit is contained in:
phxntxm 2019-01-29 17:37:21 -06:00
parent e239194636
commit d0943ff1dd

View file

@ -158,11 +158,11 @@ WHERE
RESULT: A printout of the birthdays from everyone on this server"""
if member:
date = await self.bot.db.fetchrow("SELECT birthday FROM users WHERE id=$1", member.id)
date = date['birthday']
if date:
await ctx.send(f"{member.display_name}'s birthday is {calendar.month_name[date.month]} {date.day}")
else:
if date is None or date["birthday"] is None:
await ctx.send(f"I do not have {member.display_name}'s birthday saved!")
else:
date = date['birthday']
await ctx.send(f"{member.display_name}'s birthday is {calendar.month_name[date.month]} {date.day}")
else:
# Get this server's birthdays
bds = await self.get_birthdays_for_server(ctx.guild)