Made sure the format is not printed when no motd is found
This commit is contained in:
parent
d16db79a79
commit
078db24cad
|
@ -31,8 +31,9 @@ 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))
|
||||||
fmt = "Last updated: {}\n\n{}".format(date, motd)
|
else:
|
||||||
await self.bot.say(fmt)
|
fmt = "Last updated: {}\n\n{}".format(date, motd)
|
||||||
|
await self.bot.say(fmt)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
r_filter = pendulum.parse(date)
|
r_filter = pendulum.parse(date)
|
||||||
|
|
Loading…
Reference in a new issue