added reconnect to twitch api

This commit is contained in:
Jayex
2022-01-07 03:02:52 +01:00
parent 64b5065ef3
commit d7906cf8ce
+4
View File
@@ -1,5 +1,9 @@
if (twitch_channel_name !== "") { if (twitch_channel_name !== "") {
const client = new tmi.client({ const client = new tmi.client({
connection: {
reconnect: true,
secure: true,
},
channels: [twitch_channel_name], channels: [twitch_channel_name],
}); });