Messages database

This commit is contained in:
Jeremy Zhang
2017-05-06 01:03:52 -07:00
parent 7762862623
commit ba7b47f193
3 changed files with 73 additions and 0 deletions

View File

@ -55,3 +55,10 @@ class Titan(discord.Client):
traceback.print_exc()
await self.logout()
return
async def on_message(self, message):
await self.database.push_message(message)
# TODO: Will add command handler + ban/kick command
async def on_message_edit(self, message_before, message_after):
await self.database.update_message(message_after)