Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including dbot with all npm packages installed. Try it out:

var dbot = require("dbot")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

dbot v0.0.1

IRC bot

#dbot

dbot is a node.js-powered IRC bot designed to provide command-line utilities available by PMing it.

Setup

npm install # install dependencies
npm start # run bot

Configuration

dbot relies heavily on the irc package, and as such pretty much all of its configuration goes straight to it, with the exception of the plugins array (read on to learn more about these). Its only function is passing data around, hence the absence of tests for the bot itself.

See the config.json file to start tweaking the bot to suit your needs and fulfill your desires.

Plugins

A plugin corresponds to a functionality the bot offers : it comprises a description, a regex representing the command to watch for and a callback function, which returns a promise (using the deferred package) holding the message to send back.

Plugins are distinct packages you need to install, which are automatically required by name (dbot-*). Here is a list of currently available plugins :

Collaboration

You are very welcome to help me enhance the bot further or write new plugins.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free