Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drewish/scottbot
A Slackbot for playing Scott Adams text adventure games
https://github.com/drewish/scottbot
adventure-game interactive-fiction slack slackbot
Last synced: 27 days ago
JSON representation
A Slackbot for playing Scott Adams text adventure games
- Host: GitHub
- URL: https://github.com/drewish/scottbot
- Owner: drewish
- Created: 2017-10-24T04:26:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-05T17:03:07.000Z (about 7 years ago)
- Last Synced: 2024-10-19T14:39:48.380Z (3 months ago)
- Topics: adventure-game, interactive-fiction, slack, slackbot
- Language: Ruby
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scottbot
Play a Scott Adams style adventure game via Slack. Scottbot uses the awesome [Scottkit gem](https://github.com/MikeTaylor/scottkit) to play the games.
## Installation
Assuming you've got Ruby 2.0+ and [Bundler](http://bundler.io/) installed all you need to do is:
```
git clone https://github.com/drewish/scottbot.git
cd scottbot
bundle install
```## Usage
Create a [new bot configuration](https://my.slack.com/services/new/bot) and make a note of the API Token.
This library includes a dummy `game.sao` file but you'll probably want to replace it with something else.
Set the API Token in the `SLACK_API_TOKEN` environment variable and start up the app:
```bash
SLACK_API_TOKEN=xoxb-XXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXX ./scottbot.rb
```It will connect to your team and then you can send the bot a direct message to play.