Made sure the format is not printed when no motd is found
This commit is contained in:
parent
d16db79a79
commit
078db24cad
|
@ -31,6 +31,7 @@ class Core:
|
||||||
# This one will be hit if we return None for that day
|
# This one will be hit if we return None for that day
|
||||||
except TypeError:
|
except TypeError:
|
||||||
await self.bot.say("No message of the day for {}!".format(date))
|
await self.bot.say("No message of the day for {}!".format(date))
|
||||||
|
else:
|
||||||
fmt = "Last updated: {}\n\n{}".format(date, motd)
|
fmt = "Last updated: {}\n\n{}".format(date, motd)
|
||||||
await self.bot.say(fmt)
|
await self.bot.say(fmt)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue