Skip to content

XeTK/JSBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Bot

TODO

  • 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.

Install

  1. Make sure you have the latest version of Node JS installed on your system.

  2. Navigate to the root directory of JSBot.

  3. Execute npm install.

  4. Next copy or rename the options.json.example file to options.json.

  5. Edit the options.json file to match your configuration.

  6. Next copy or rename the keys.json.example file to keys.json.

  7. Edit the keys.json file to contain the API authentication keys.

  8. Finally execute npm start and this will load the bot up to join the channel.

Example extension

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;
};

Slack Support.

TODO:

Create WebHooks authentication

Creating SSL Certificates.

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

About

Javabots Replacement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published