The toboggan package

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

Please see README.md


[Skip to Readme]

Properties

Versions 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 BSD3
Copyright Copyright: (c) 2016 Vanessa McHale
Author Vanessa McHale
Maintainer tmchale@wisc.edu
Category Web
Home page https://github.com/vmchale/toboggan#readme
Source repository head: git clone https://github.com/vmchale/toboggan
Uploaded Mon Apr 3 04:37:34 UTC 2017 by vmchale
Distributions NixOS:0.1.0.1
Executables toboggan
Downloads 113 total (4 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2017-04-03 [all 3 reports]
Hackage Matrix CI

Modules

  • Web
    • Web.Toboggan

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


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.