mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Add default error reporting channel id to config example and raise heartbeat sending interval whoops
This commit is contained in:
parent
7d3c099bd7
commit
38df1a8ed0
@ -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': "",
|
||||||
}
|
}
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user