toboggan: Twitter bot generator

[ bsd3, library, program, web ] [ Propose Tags ]

Please see README.md


[Skip to Readme]

Modules

[Index]

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.0.0 && <4.10), clit (>=0.2.0.0 && <0.3), directory (>=1.2.6.2 && <1.3), madlang (>=0.1.0.1 && <0.2), optparse-generic (>=1.1.1 && <1.2), text (>=1.2.2.1 && <1.3), toboggan (>=0.1.0.0 && <0.2) [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-01-08T19:06:00Z
Distributions
Executables toboggan
Downloads 1447 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-01-08 [all 1 reports]

Readme for toboggan-0.1.0.0

[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 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.