hubot-twitchy
v0.0.2 hubot twitch twitch.tv
hubot-twitchy
A hubot adapter for Twitch chat.
Installation and Setup
To get your own hubot up and running we recommend following the Getting Started directions from the hubot wiki, they are summarized here:
% npm install -g hubot coffee-script
% hubot --create myhubot
% cd myhubot
% npm install hubot-irc --save && npm install
% HUBOT_IRC_SERVER=irc.freenode.net \
HUBOT_IRC_ROOMS="#myhubot-irc" \
HUBOT_IRC_NICK="myhubot" \
HUBOT_IRC_UNFLOOD="true" \
bin/hubot -a irc --name myhubot
Note: The default hubot configuration will use a redis based brain that
assumes the redis server is already running. Either start your local redis
server (usually with redis-start &
) or remove the redis-brain.coffee
script from the default hubot-scripts.json
file.
Configuring the Adapter
hubot-twitchy requires the following environment variables:
- HUBOT_TWITCHY_USERNAME
- HUBOT_TWITCHY_OAUTH_PASSWORD (note, this is not the same as your account password. Generate an oauth password here).
- HUBOT_TWITCHY_CHANNELS (comma-delimited rooms; for example,
#ajacksified,#ajacksifiedbot
You can optionally provide:
- HUBOT_TWITCHY_DEBUG (defaults to false. logs extra debugging information.)
Events
In addition to sending and receiving messages, robot events are fired for all events listed on tmi.js.