@hackage toboggan0.1.0.1

Twitter bot generator

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 toboggan to install.

Configuration

Configure using a .cred file as described in Web.Tweet documentation. Use a Madlibs file to generate the bot text.

Editing

You'll probably want the madlang-vim if you use vim.

  • Installation

  • Dependencies (0)

  • Dependents (0)