diff --git a/src/modules/ChatBot.ts b/src/modules/ChatBot.ts index ee0382a..d345a3f 100644 --- a/src/modules/ChatBot.ts +++ b/src/modules/ChatBot.ts @@ -68,6 +68,12 @@ export default class ChatBot { } }) db.release() + + setInterval(async () => { + const db = await database.getConnection() + await db.ping() + db.release() + }, 600000) return this } }