Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cheshire137/cleverhubot
A Hubot for use in Slack. Includes some custom scripts.
https://github.com/cheshire137/cleverhubot
cleverbot hubot slack
Last synced: 22 days ago
JSON representation
A Hubot for use in Slack. Includes some custom scripts.
- Host: GitHub
- URL: https://github.com/cheshire137/cleverhubot
- Owner: cheshire137
- Created: 2014-09-25T02:11:27.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-11T02:43:09.000Z (almost 10 years ago)
- Last Synced: 2024-10-05T07:50:51.397Z (about 1 month ago)
- Topics: cleverbot, hubot, slack
- Language: CoffeeScript
- Homepage:
- Size: 500 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shazbot Hubot
A Hubot set up for use in Slack with some custom scripts.
## How to Run
1. `npm install`
1. `bin/hubot`## Custom Scripts
Inside `bin/hubot`, refer to hubot as `hubot`. When running in Slack, it is referred to as `shazbot`.
### Cleverbot
Inside `bin/hubot`:
% bin/hubot
Hubot> [Wed Sep 24 2014 22:09:29 GMT-0400 (EDT)] INFO Data for hubot brain retrieved from RedisHubot> hubot clever good evening
Hubot> Good evening to you also.
Hubot> hubot clever "what is for dinner?"
Hubot> Dinner is for to eat.
Hubot> hubot clever tell me a joke
Hubot> A quiet woman walked into a room.### Colors
`hubot color purple` will display messages in Slack with the hex and RGB color codes for the given color. Pass it color names, hex values, RGB values, and other formats. Uses [TinyColor](https://github.com/bgrins/TinyColor) for parsing.
`hubot colors` will generate random colors for you. You can pass a number up to 6 to generate that many colors, e.g., `hubot colors 3`. You can also pass one of green, blue, random, red, orange, yellow, purple, pink, or monochrome to generate specific kinds of colors, e.g., `hubot colors pink`
### Disapproval
Shazbot disapproves of things.
### Love
Contrariwise, shazbot also loves many things.
## How to Deploy to Heroku
heroku create
Make note of the URL Heroku puts it on, then use that URL:
heroku config:set HEROKU_URL=http://some-heroku-name-1234.herokuapp.com
heroku ps:scale web=1
heroku addons:add redistogo:nanoIn your Slack, set up an integration with Hubot. Point to the Heroku server
where you deployed it. Slack will tell you three environment variables you need
to set:heroku config:add HUBOT_SLACK_TOKEN=123abc
heroku config:add HUBOT_SLACK_TEAM=myteam
heroku config:add HUBOT_SLACK_BOTNAME=shazbotIn your Slack chat, you should now be able to say:
shazbot color
shazbot colors
shazbot color blue
shazbot color #ff00ff
shazbot colors 3
shazbot colors 4 red
shazbot clever good morning
shazbot disapprove
shazbot disapproves
shazbot disapproval
shazbot love
shazbot loves