1
0
Fork 0
mirror of synced 2024-06-26 10:10:44 +12:00

Made sure the format is not printed when no motd is found

This commit is contained in:
Phxntxm 2016-10-07 15:47:10 -05:00
parent d16db79a79
commit 078db24cad

View file

@ -31,8 +31,9 @@ class Core:
# This one will be hit if we return None for that day
except TypeError:
await self.bot.say("No message of the day for {}!".format(date))
fmt = "Last updated: {}\n\n{}".format(date, motd)
await self.bot.say(fmt)
else:
fmt = "Last updated: {}\n\n{}".format(date, motd)
await self.bot.say(fmt)
else:
try:
r_filter = pendulum.parse(date)