A hubot script to persist hubot's brain using MySQL
See scripts/mysql-brain.coffee
for full documentation.
-
In hubot project repo, run:
npm install hubot-mysql-brain --save
-
Then add hubot-mysql-brain to your
external-scripts.json
:[ "hubot-mysql-brain" ]
-
Create your database schema:
CREATE TABLE `brain` ( `id` INT, `data` TEXT, PRIMARY KEY (`id`) )
- MYSQL_URL : e.g.
mysql://user:pass@host/db_name
- MYSQL_TABLE : default to
brain