From 38df1a8ed0e031a0c4b670c1df917d4f8aa91457 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Tue, 13 Jun 2017 02:36:38 +0000 Subject: [PATCH] Add default error reporting channel id to config example and raise heartbeat sending interval whoops --- discordbot/config.example.py | 2 ++ discordbot/titanembeds/bot.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/discordbot/config.example.py b/discordbot/config.example.py index 7fda5e8..67e7003 100644 --- a/discordbot/config.example.py +++ b/discordbot/config.example.py @@ -2,4 +2,6 @@ config = { 'bot-token': "Discord bot token", 'database-uri': "driver://username:password@host:port/database", + + 'errorreporting-channelid': "", } \ No newline at end of file diff --git a/discordbot/titanembeds/bot.py b/discordbot/titanembeds/bot.py index 00c551a..25d4129 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -56,7 +56,7 @@ class Titan(discord.Client): else: 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 - await asyncio.sleep(4) + await asyncio.sleep(60) def run(self): try: