npm.io
0.1.3 • Published 11 years ago

hubot-mysql-brain

Licence
MIT
Version
0.1.3
Deps
1
Vulns
0
Weekly
0
Stars
2

hubot-mysql-brain

A hubot script to persist hubot's brain using MySQL

See scripts/mysql-brain.coffee for full documentation.

Installation

  1. In hubot project repo, run:
npm install hubot-mysql-brain --save
  1. Then add hubot-mysql-brain to your external-scripts.json:
[
  "hubot-mysql-brain"
]
  1. Create your database schema
CREATE TABLE `brain` (
  `id` INT,
  `data` TEXT,
  PRIMARY KEY (`id`)
  )

Configurations

  • MYSQL_URL : e.g. mysql://user:pass@host/db_name
  • MYSQL_TABLE : default to brain

Keywords