1
0
Fork 0
mirror of synced 2024-06-29 11:40:20 +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,6 +31,7 @@ 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))
else:
fmt = "Last updated: {}\n\n{}".format(date, motd)
await self.bot.say(fmt)
else: