tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.54k stars 216 forks source link

[SOLVED] tmijs no response from twitch after JOIN command #497

Closed MidKnightXI closed 2 years ago

MidKnightXI commented 2 years ago

So I'm currently coding a twitch moderation bot and I get this error when launching the script. I tried to modify the promiseDelay value in the tmi code but nothing happened, same error.

here's my config:

import { client } from 'tmi.js';

const opts = {
  identity: {
    username: process.env.BOT_USERNAME,
    password: process.env.BOT_OAUTH_TOKEN
  },
  channels: [
    process.env.CHANNEL_NAME
  ]
}

const cli = new client(opts);

cli.connect();

Actual behaviour:

get No response from twitch

Expected behaviour: Get rid of No response from twitch

Error log:

info: Executing command: JOIN #[channel]
error: No response from twitch

Server configuration