toboggan: Twitter bot generator

[ bsd3, library, program, web ] [ Propose Tags ] [ Report a vulnerability ]

Please see README.md


[Skip to Readme]

Modules

[Last Documentation]

  • Web
    • Web.Toboggan

Downloads

Maintainer's Corner

Package maintainers

  • No current members of group

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1
Dependencies base (>=4.9.1.0 && <4.10), directory (>=1.3.0.0 && <1.4), madlang (>=2.1.0.1 && <2.2), optparse-generic (>=1.1.4 && <1.2), text (>=1.2.2.1 && <1.3), toboggan (>=0.1.0.1 && <0.2), tweet-hs (>=0.5.3.2 && <0.6) [details]
License BSD-3-Clause
Copyright Copyright: (c) 2016 Vanessa McHale
Author Vanessa McHale
Maintainer tmchale@wisc.edu
Category Web
Home page https://github.com/vmchale/toboggan#readme
Source repo head: git clone https://github.com/vmchale/toboggan
Uploaded by vmchale at 2017-04-03T04:37:34Z
Distributions
Executables toboggan
Downloads 1487 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2017-04-03 [all 3 reports]

Readme for toboggan-0.1.0.1

[back to package description]

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.