Add default error reporting channel id to config example and raise heartbeat sending interval whoops

This commit is contained in:
Jeremy Zhang 2017-06-13 02:36:38 +00:00
parent 7d3c099bd7
commit 38df1a8ed0
2 changed files with 3 additions and 1 deletions

View File

@ -2,4 +2,6 @@ config = {
'bot-token': "Discord bot token", 'bot-token': "Discord bot token",
'database-uri': "driver://username:password@host:port/database", 'database-uri': "driver://username:password@host:port/database",
'errorreporting-channelid': "",
} }

View File

@ -56,7 +56,7 @@ class Titan(discord.Client):
else: else:
await self.send_message(error_channel, "Titan has lost connection to the database! Don't panic!! We'll sort this out... hopefully soon.") await self.send_message(error_channel, "Titan has lost connection to the database! Don't panic!! We'll sort this out... hopefully soon.")
last_db_conn_status = self.database_connected last_db_conn_status = self.database_connected
await asyncio.sleep(4) await asyncio.sleep(60)
def run(self): def run(self):
try: try: