gitter-irc-bot v1.6.0
gitter-irc-bot
Bot that synchronises messages from a gitter room and an irc channel.
Install with npm install gitter-irc-bot.
If you want to test this bot, go to the gitter channel and
join #gitterircbot on Freenode.
How to use
You need to set the following env variables
GITTERBOT_APIKEYLog in with your github/gitter bot here and take thepersonal access token. Important: This shouldn't be your personal GitHub account, but a designated bot account.GITTERBOT_GITTER_ROOMThe Gitter Room, e.g.datproject/discussionsGITTERBOT_IRC_CHANNELIRC Channel name, e.g.#datGITTERBOT_IRC_NICKThe IRC user nick of the bot
The following options are optional:
GITTERBOT_IRC_SERVERIRC Server name, e.g.irc.freenode.netGITTERBOT_IRC_OPTSJSON string with options passed to node-ircGITTERBOT_IRC_ADMINIf specified this person receives error logs via pm.
Then start the bot with npm start, or if you install globally run gitter-irc-bot.
Authentication
To authenticate to the IRC server, you will need to supply password in GITTERBOT_IRC_OPTS.
For example: GITTERBOT_IRC_OPTS='{"password": "hunter2"}'.
Using SASL is recommended if the IRC server supports it. You can enable it by supplying
"sasl": true and the appropriate userName.
Example: GITTERBOT_IRC_OPTS='{"userName": "gitter-example", "password": "hunter2", "sasl": true}'
Deploy on heroku
When deploying to heroku you need to set HEROKU_URL to the url of your heroku app.
Otherwise heroku will spin down your free heroku instance after a few minutes.
