chore-qa (#4)
Reviewed-on: https://git.t000-n.de/tbehrendt/ts3gotify/pulls/4
This commit is contained in:
@@ -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!")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user