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://user:pass@host/db_name
brain