kritzware/twitch-bot

Allow joining multiple channels with one instance

Closed this issue ยท 4 comments

I see lots of use cases that involve being able to communicate in multiple channels with one Bot Instance, for example for long-term data analysis of chats in specific channels.

I can provide a PR if you like.

Hi @anXieTyPB,

I remember originally thinking about this idea, but not deciding on it for some issue I can't seem to remember, regardless though this would be a cool optional feature. I don't have enough time to work on this project at the moment, so if you'd like to do a PR that would be great! ๐Ÿ‘

I imagine the syntax as the following:

const Bot = new TwitchBot({
  username: 'Kappa_Bot',
  oauth: 'oauth:dwiaj91j1KKona9j9d1420',
  channels: [
    'twitch',
    'kappa',
    'lirik'
  ]
})

Perhaps a hard cap on the multiple connection instances (no. of channels connected per IRC instance) as well (e.g. 5-10?), but I'll leave that up to you ๐Ÿ˜„

Can you give permission to push a new branch?

It would be easier if you could fork the repository, make your changes in a new branch, then do a pull request ๐Ÿ‘

Pull request merged: 4c81915