From 2eb64cab0f33089f6b1a18f74215e9f808fb1916 Mon Sep 17 00:00:00 2001 From: Lluis Date: Fri, 26 Jan 2024 18:45:57 +0100 Subject: [PATCH] fix port --- .github/workflows/main_twitch-mz-bot.yml | 1 - lib/messenger.js | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main_twitch-mz-bot.yml b/.github/workflows/main_twitch-mz-bot.yml index 87768a5..43628a7 100644 --- a/.github/workflows/main_twitch-mz-bot.yml +++ b/.github/workflows/main_twitch-mz-bot.yml @@ -22,7 +22,6 @@ jobs: envkey_TWITCH_USERNAME: ${{ secrets.TWITCH_USERNAME }} envkey_TWITCH_PASSWORD: ${{ secrets.TWITCH_PASSWORD }} envkey_TWITCH_CHANNELS: ${{ secrets.TWITCH_CHANNELS }} - envkey_PORT: 8080 - name: Set up Node.js version uses: actions/setup-node@v4 diff --git a/lib/messenger.js b/lib/messenger.js index 62a95da..e7aeafb 100644 --- a/lib/messenger.js +++ b/lib/messenger.js @@ -9,6 +9,10 @@ const tmi = require('tmi.js'); class Messenger { constructor () { const opts = { + connection: { + secure: true, + reconnect: true, + }, options: { debug: true }, identity: { username: config.twitch.username,