https://github.com/akhyrul/hubot-mysql-brain
A hubot script to persist hubot's brain using MySQL
https://github.com/akhyrul/hubot-mysql-brain
Last synced: 8 months ago
JSON representation
A hubot script to persist hubot's brain using MySQL
- Host: GitHub
- URL: https://github.com/akhyrul/hubot-mysql-brain
- Owner: chickenzord
- License: mit
- Created: 2015-08-12T05:35:30.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-07T09:48:33.000Z (over 8 years ago)
- Last Synced: 2024-05-19T14:04:47.057Z (over 1 year ago)
- Language: CoffeeScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hubot-mysql-brain
A hubot script to persist hubot's brain using MySQL
See [`scripts/mysql-brain.coffee`](scripts/mysql-brain.coffee) for full documentation.
## Installation
1. In hubot project repo, run:
```
npm install hubot-mysql-brain --save
```2. Then add **hubot-mysql-brain** to your `external-scripts.json`:
```json
[
"hubot-mysql-brain"
]
```
3. Create your database schema:```sql
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`