feat: send db ping

This commit is contained in:
Siwoo Jeon 2023-09-23 13:04:38 +09:00
parent 3da05a22f8
commit 0e5f94ff63
Signed by: migan
GPG key ID: C4151385FFD2082A

View file

@ -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
}
}