A Node.js npm package for building chat robots with pluggable scripts, slash-style commands, and support for many chat backends.
Overview
Hubot is a framework for creating chat bots inspired by GitHub’s internal Campfire bot. You generate an instance, add scripts, and connect it to a chat service so the robot can respond to messages and run automated tasks in channels.
The library distributes via npm; most adopters extend it with scripts rather than modifying the core. Recent versions use JavaScript modules instead of CoffeeScript. Built-in behavior includes a deterministic command bus for structured slash commands with validation, optional confirmation for side-effecting actions, aliases for discovery, and a help command for listing capabilities.
Permissions can limit commands to specific rooms or roles when you supply a permission provider; room restrictions are enforced by default. Hubot ships with a small set of example scripts, and the community maintains additional script and package collections. The marketing site notes deployment on ordinary computers and a convention for sharing scripts between teams.
Documentation covers creating your own instance, writing scripts, configuring the command bus, custom argument types, and event logging options for command auditing.
Key features
- Scriptable responses across chat adapters
- Structured command bus with confirmation flow
- Built-in help and command discovery
- Room-based command permissions
- Optional role checks via permission provider
- Custom argument type resolvers
- NDJSON command event logging option
- npm-distributed core for custom bot instances
Use cases
- Chatops and deploy notifications in team chat
- Slash commands for internal tools and APIs
- Fun and utility bots in company channels
- Shared automation scripts across Hubot instances