1
0
Fork 0
mirror of synced 2024-06-03 03:04:33 +12:00

Corrected last issues with the motd command

This commit is contained in:
Phxntxm 2016-10-07 15:52:43 -05:00
parent 078db24cad
commit f0d85d5796
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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