brobbot
A simple helpful robot for your Company
Last updated 5 years ago by b3nj4m .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install brobbot 
SYNC missed versions from official npm registry.

Brobbot

Brobbot is a chat bot, modeled after GitHub's Campfire bot, hubot. He's pretty cool. He's extendable with scripts, and can work on many different chat services.

This repository provides a library that's distributed by npm that you use for building your own bots. See the docs/README.md for details on getting up and running with your very own robot friend.

Forked from Hubot

Brobbot was forked from Hubot. The main motivation being better support for scripts with persistent storage.

Key differences

Loadable brain modules

Brobbot's brain can be a simple Javascript object held in-memory (the deafult dumb brain), but you can also load a different brain module to enable a large, fast, persistent brain. Brobbot's brain operations return promises to make your async code nice and clean. Each module gets its own keyspace within the brain, so modules don't have to worry about clobbering each others' data. Brain modules can also provide a ready promise in order to signal that the brain is connected/authenticated/whatever it needs to do before it's ready. Check out the brain docs for more info.

To load a brain module, use the -b switch when running ./index.sh in your brobbot-instance. e.g.

./index.sh -b redis

Scripts are npm packages

Brobbot expects script packages to be loadable via require(), and to export a function. This is unlike Hubot, which dictates a particular directory structure, and expects to be able to access your script files directly via fs.

Message queues

Brobbot maintains a message queue for each message handler, which means your handler can opt to process one message at a time with no concurrency.

Improved listener regex matching

Brobbot removes its name from the beginning of messages addressed to it before testing regexen against the message. This means that you can safely use anchors (^) at the beginning of your respond regex, which helps reduce false-positives.

Current Tags

  • 6.1.0                                ...           latest (5 years ago)

30 Versions

  • 6.1.0                                ...           5 years ago
  • 6.0.0                                ...           5 years ago
  • 5.0.3                                ...           5 years ago
  • 4.0.11                                ...           5 years ago
  • 5.0.2                                ...           5 years ago
  • 5.0.1                                ...           5 years ago
  • 5.0.0                                ...           5 years ago
  • 4.0.10                                ...           5 years ago
  • 4.0.9                                ...           5 years ago
  • 4.0.8                                ...           5 years ago
  • 4.0.7                                ...           5 years ago
  • 4.0.6                                ...           5 years ago
  • 4.0.5                                ...           5 years ago
  • 4.0.4                                ...           5 years ago
  • 4.0.3                                ...           5 years ago
  • 4.0.2                                ...           5 years ago
  • 4.0.1                                ...           5 years ago
  • 4.0.0                                ...           5 years ago
  • 3.5.1                                ...           6 years ago
  • 3.5.0                                ...           6 years ago
  • 3.4.0                                ...           6 years ago
  • 3.3.1                                ...           6 years ago
  • 3.3.0                                ...           6 years ago
  • 3.2.0                                ...           6 years ago
  • 3.1.1                                ...           6 years ago
  • 3.1.0                                ...           6 years ago
  • 3.0.3                                ...           6 years ago
  • 3.0.2                                ...           6 years ago
  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |