https://github.com/cpu/garfbot
gotta go fast
https://github.com/cpu/garfbot
Last synced: 12 months ago
JSON representation
gotta go fast
- Host: GitHub
- URL: https://github.com/cpu/garfbot
- Owner: cpu
- License: gpl-3.0
- Archived: true
- Created: 2016-02-15T16:27:52.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-09T16:13:25.000Z (over 5 years ago)
- Last Synced: 2025-02-10T01:16:10.757Z (about 1 year ago)
- Language: JavaScript
- Size: 91.8 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# garfbot
[](https://circleci.com/gh/doeg/garfbot)
gotta go fast
## How to add a plugin
### Getting started
1. Create a `config/local.json` with all your secrets :crystal_ball:
2. `npm install`
3. `npm start`
### Developing
Create a file named [plugin].js in the plugins/ folder. A plugin in its simplest form defines a regex, for matching Slack messages, and a `fn` function, for generating a string with which to reply. Take a look at `plugins/hello.js` for a simple example.
### Testing
Testing is done with [Mocha](https://mochajs.org/) using the [Chai assertion](http://chaijs.com/api/assert/) library.
Create a file named [plugin]-test.js in the `test/plugins/` folder. Take a look at `test/plugins/hello-test.js` as an example.
Run the tests with `npm run test`.
### Deploying
Deployment is done by CircleCI after a PR is successfully merged to master.