• hackbot.js

  • ¶

    Getting Started With Hackbot

    requirejs.config({
        baseUrl: 'lib',
        paths: {
            hackbot: '../hackbot',
            underscorish: 'underscorish',
            chatbuilder: 'http://chatbuilder.hackreactor.com/ChatBuilder'
        }
    });
  • ¶

    Define dependencies

    requirejs(['hackbot/robot', 'chatbuilder'], function(){
  • ¶

    Launch your Hackbot:
    Create a Robot instance and give it a name; load scripts defined in script.js and start the robot adapter, thats it.

        robot = new Robot(Chat.username != 'anonymous' ? Chat.username : null);
        robot.load();
        robot.run();
    });
  • ¶

    Documentation Index:

    Hackbot Core

    • robot.js
    • brain.js
    • listener.js
    • message.js
    • response.js
    • user.js

    Hackbot Adapter

    • adapter.js

    Libraries

    • underscorish.js

    Scripts

    • scripts.js
      • hackbot-help.js
      • hackbot-about.js
      • hackbot-ping.js
      • hackbot-hello.js
      • hackbot-thankyou.js
      • hackbot-log.js
      • hackbot-users.js
      • hackbot-ambush.js
      • hackbot-hackreactor.js
      • hackbot-hackreactorrocks.js

    Hackbot is heavily inspired by Hubot and its architecture is “almost” identical. For other scripts to be ported to hackbot you can then check the hubot scripts cataloge