Always join bot channel
This commit is contained in:
parent
e5f69a4d72
commit
6a16a7e07f
1 changed files with 4 additions and 3 deletions
5
index.js
5
index.js
|
@ -193,11 +193,12 @@ if (!Config.IgnorePNSL) {
|
|||
listenClient = createTwitchClient();
|
||||
listenClient.connect();
|
||||
listenClient.on('ready', async () => {
|
||||
if (Config.Channels.length === 0) {
|
||||
await listenClient.join(`#${Config.Username}`);
|
||||
} else {
|
||||
|
||||
if (Config.Channels.length !== 0) {
|
||||
await listenClient.joinAll(Config.Channels);
|
||||
}
|
||||
|
||||
console.log(`${chalk.green('[TWITCH]')} || Command listener connected`);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue