https://github.com/dkarter/cowfortune-slackbot
A Slack Bot for fortune telling with cowsay and fortune
https://github.com/dkarter/cowfortune-slackbot
Last synced: over 1 year ago
JSON representation
A Slack Bot for fortune telling with cowsay and fortune
- Host: GitHub
- URL: https://github.com/dkarter/cowfortune-slackbot
- Owner: dkarter
- Created: 2016-02-19T21:28:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-01-09T04:13:10.000Z (over 2 years ago)
- Last Synced: 2025-02-25T13:54:49.939Z (over 1 year ago)
- Language: Ruby
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Description
A bot to tell random fortunes with random cowsay characters.
```
______________________________________
/ Statistics means never having to say \
\ you're certain. /
--------------------------------------
\ / \ //\
\ |\___/| / \// \\
/0 0 \__ / // | \ \
/ / \/_/ // | \ \
@_^_@'/ \/_ // | \ \
//_^_/ \/_ // | \ \
( //) | \/// | \ \
( / /) _|_ / ) // | \ _\
( // /) '/,_ _ _/ ( ; -. | _ _\.-~ .-~~~^-.
(( / / )) ,-{ _ `-.|.-~-. .~ `.
(( // / )) '/\ / ~-. _ .-~ .-~^-. \
(( /// )) `. { } / \ \
(( / )) .----~-.\ \-' .~ \ `. \^-.
///.----..> \ _ -~ `. ^-` ^-_
///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~
/.-~
```
# Running
Create a new Bot Integration under [services/new/bot](http://slack.com/services/new/bot).
```bash
SLACK_API_TOKEN=xxx bundle exec ruby cowfortune.rb
```
Invite your bot into a channel and say `fortune`.
# Dependencies
* Cowsay - `brew install cowsay`
* Fortune - `brew install fortune`
* Shuf - `brew install coreutils`
If you are running on linux change the command from `gshuf` to `shuf`