#Streen Streen is a centralized interface for interacting with Twitch Chat. It is essentially a wrapper for twitch-irc, and it operates via IPC.
Streen is useful in situations where multiple processes all need to connect to Twitch Chat, but the overhead of spinning up multiple IRC bots is not acceptable. Streen operates as a single bot and exposes an evented IPC interface via axon.
Installation
- Clone the repository
- From the directory you cloned Streen into, run
npm install --production
- Create
./config.json
with the desired Twitchusername
andpassword
. Optionally, add aslack.botToken
andslack.statusChannel
to have Streen post critical status updates and respond to commands. (Need an avatar for your bot?)
{
"username": "botname",
"password": "oauth:myOauthToken1234",
"slack": {
"botToken": "xoxb-xxxxxxxxxx-yyyyyyyyyy",
"statusChannel": "#somechannel"
}
}
- Run with
node index.js
Example
See lfg-siphon for an example implementation.
Slack Commands
!channels
Lists the current Twitch chat channels that Streen is listening to.
!online
Lists the online status of each Twitch stream that Streen is listening to.
License
Streen is provided under the MIT license, which is available to read in the [LICENSE][] file. [license]: LICENSE