- Easy configuration of the SSL certificates.
- Better error handling for missing configuration.
- Unit tests.
- Code reviews and refactor.
- Comment current code base.
- Some sort of CI maybe Travis
- Sandbox channels from each other.
- Implement database data store.
-
Make sure you have the latest version of Node JS installed on your system.
-
Navigate to the root directory of JSBot.
-
Execute
npm install
. -
Next copy or rename the
options.json.example
file tooptions.json
. -
Edit the options.json file to match your configuration.
-
Next copy or rename the
keys.json.example
file tokeys.json
. -
Edit the keys.json file to contain the API authentication keys.
-
Finally execute
npm start
and this will load the bot up to join the channel.
Please add extensions into the ./extensions/
folder under a appropriate directory name.
function handler(collective) {
// This is the direct interface to the connector.
var connector = collective.connector;
// This allows you to interact with other plugins within the same space.
var plugins = collective.plugins;
}
module.exports = function(module_holder) {
// Change the name within the brackets below to give the plugin a name.
module_holder['ChangeMe'] = handler;
};
TODO:
Create WebHooks authentication
This set of commands generates the SSL certificates needed for joining IRC servers with SSL.
$ openssl genrsa -out private-key.pem 1024
$ openssl req -new -key private-key.pem -out csr.pem
$ openssl x509 -req -in csr.pem -signkey private-key.pem -out public-cert.pem