chore-qa (#4)

Reviewed-on: https://git.t000-n.de/tbehrendt/ts3gotify/pulls/4
This commit is contained in:
2022-12-11 21:11:01 +00:00
parent 1605ad7c96
commit e07373667f
7 changed files with 4714 additions and 3 deletions

View File

@@ -34,12 +34,12 @@ TeamSpeak.connect({
title: process.env.GOTIFY_TITLE || "ts3gotify",
message: `${event.client.nickname} connected`,
}).catch((error: Error) => {
console.error(`Error sending message to gotify: ${error.message}`)
logger.error(`Error sending message to gotify: ${error.message}`)
})
})
teamspeak.on("close", async () => {
console.debug("disconnected, trying to reconnect...")
logger.debug("disconnected, trying to reconnect...")
await teamspeak.reconnect(5, 1000)
logger.info("reconnected!")
})