https://github.com/erikzaadi/hubot-skeleton
Small Hubot tutorial
https://github.com/erikzaadi/hubot-skeleton
Last synced: about 2 months ago
JSON representation
Small Hubot tutorial
- Host: GitHub
- URL: https://github.com/erikzaadi/hubot-skeleton
- Owner: erikzaadi
- Created: 2015-11-18T06:52:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-14T14:03:20.000Z (about 9 years ago)
- Last Synced: 2025-02-09T20:15:00.078Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Hubot Tutorial Skeleton
### Small usage examples of Hubot
#### To run:
```
npm install
npm run bot
curl localhost:8080/hubot/ZOMG/OMG32
# If you port 8080 is taken
PORT=1337 npm run bot
curl localhost:1337/hubot/ZOMG/OMG32
```In the Hubot REPL:
```
hubot help
```#### To run tests
```
npm test
```#### Examples:
##### Code:
[Bare JS](./scripts/bare.js) - How to respond to a user mention, and how to interact with the Hubot robot brain (redis if available)
[CoffeeScript](./scripts/simple-example.coffee) - How to listen to strings in chat room and how to listen to HTTP calls
##### Tests:
[Bare JS](./tests/test-bar.js) - Test redis brain, and responding to messages
[CoffeeScript](./tests/test-simple-example.coffee) - Test http integration, and hearing messages