Joel McCoy 8a26f1108f CloudArchive and CloudModel complete (enough)
- CloudModel is actually classed correctly
 - Minify JSON prior to uploading
 - Change archive update interval to 24h (30* ..20MB = 600/1000MB)
 - Store latest revision url for archive/model after persisting

TODO:
 - Add INITIAL_CORPUS_FILE config var
 - Look for Cloudinary API call to get filesize w/o DLing
 - Logic for jsonify(INTIIAL_CORPUS_FILE) v. using persisted archive
 - Add fetch/persist/etc methods to Ebooks::Archive/Model for fallback
 - Test it? Or just share it and pray.
2015-02-11 23:41:26 -05:00
2014-07-08 22:57:15 -07:00
2014-12-18 22:46:03 -05:00
2015-01-07 16:04:48 -05:00
2014-12-05 23:33:19 +11:00
2015-01-07 14:42:29 -05:00

boodoo_ebooks

A turn-key, beginner-friendly, ready-to-deploy implementation of a traditional _ebooks bot using Mispy's twitter_ebooks library.

Usage

Create your Twitter app and generate access tokens with Read, Write and Direct Messages privileges.

Deploy

Put your BOT_NAME, SOURCE_USERNAME, and API secrets into Heroku Config Vars using the web dashboard.

Scale your app to 1 dyno using the Heroku web dashboard.

Bob's your uncle.

Default Behavior

Tweets once on startup.
Has 80% chance of tweeting every 2 hours.
Responds to mentions/DMs
Favorites tweets that it likes.

Special Features

  • BLACKLIST: accounts to not interact with
  • BANNED_TERMS: words or phrases to obscure/censor
  • DM commands (tweet, follow, unfollow, block, mention...)
  • Follower parity (periodically compares following/followers and follows/unfollows as needed)
  • Want something else? Create an issue. No promises.

TODO:

  • Support full archive (via CSV uploaded elsewhere)

DISCLAIMER:

I'm making this because I wrote a two-part tutorial for an older version of the twitter_ebooks gem and my mentions turned into a tech support hellscape for months.
Please create issues if you have trouble. 🙏 Please do not tweet at me. 🙏

Description
Heroku-ready turn-key _ebooks implementation
Readme 931 KiB
Languages
Ruby 99.7%
Procfile 0.3%