Corrected last issues with the motd command
This commit is contained in:
parent
078db24cad
commit
f0d85d5796
|
@ -30,7 +30,7 @@ class Core:
|
|||
motd = motd['motd']
|
||||
# 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))
|
||||
await self.bot.say("No message of the day!")
|
||||
else:
|
||||
fmt = "Last updated: {}\n\n{}".format(date, motd)
|
||||
await self.bot.say(fmt)
|
||||
|
|
|
@ -197,7 +197,7 @@ async def add_content(table, content, r_filter=None):
|
|||
return True
|
||||
except r.ReqlOpFailedError:
|
||||
# This means the table does not exist
|
||||
await r.create_table(table).run(conn)
|
||||
await r.table_create(table).run(conn)
|
||||
await r.table(table).insert(content).run(conn)
|
||||
await conn.close()
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue