packages feed

toboggan-0.1.0.0: README.md

## Toboggan - a twitter bot generator

### Horoscope example

This is an example of how to use the `Text.Madlibs` and `Web.Tweet` modules; primarily to showcase the Madlibs DSL. You can try a test tweet with

```
 $ toboggan --config configure/horoscope.mad --cred YOUR_CRED_FILE
```

You'll get a JSON-encoded response saying it all worked nicely if all goes well. If you like the results you can also get an example crontab for a daily bot that runs at 1pm with 

```
 $ toboggan --cron --config template.mad --cred credential
 
# m  h  dom mon dow   command  9 13  *   *   *    ~/.local/bin/toboggan --cred /home/user/programs/toboggan/credential --config /home/user/programs/toboggan/template.mad

(json response will be here)
```

### Installation

Install stack with

```
curl -sSL http://haskellstack.org | sh
```

and then use `stack install` to install. 

### Configuration

Configure using a `.cred` file as described in `Web.Tweet` [documentation](https://hackage.haskell.org/package/clit-0.2.0.1/docs/Web-Tweet.html). Use a Madlibs file to generate the bot text.

#### Editing

You'll probably want the [madlang-vim](http://github.com/vmchale/madlang-vim) if you use vim.