Just an easy node bot for our own channel
MIT License
Just a basic node bot for our irc channel.
It sports a pretty decent plugin system with the following support:
If you want to build your own plugin, look at the HttpCat plugin. That's the basics
npm i
OSX might need extra things for iconv
brew install icu4c
brew link icu4c --force
Example config.js
'use strict';
module.exports = {
bot: {
channels: [ '#mychannel' ],
plugins: [ 'Telegram', 'Urlchecker', 'Github', 'RSS', 'DagensMix', 'Pushbullet', 'HttpCat' ],
server: 'irc.freenode.net',
botName: 'mybotname'
},
github: {
clientId: "",
clientSecret: "",
users: {
usernameOnIrc: 'username-on-github'
}
},
twitter: {
consumerKey: "",
consumerSecret: "",
accessToken: "",
accessTokenSecret: ""
},
pushbullet: {
apiKey: '',
users: {
usernameOnIrc: 'email-or-id-on-pushbullet'
}
},
telegram: {
apiKey: '',
users: {
usernameOnIrc : 'client-id-on-telegram'
}
},
rss: {
feeds: [
{
title: 'My first RSS feed',
url: 'http://www.example.com/feed.rss',
formatter: 'my-custom-formatter',
encoding: 'iso-8859-1'
},
{
title: 'My second RSS feed',
url: 'https://www.example2.github.com/messages.rss',
interval: 60000
}
]
}
};