No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Scaffolds a new boilerplate twitter bot project from the command line. By default will create a bot that tweets a "hello world" type greeting once every 3-4.5 hours Can also pass a --streaming flag to create a bot that listens to the "gardenhose" Or a --userstream flag for a bot that listens for tweets @ it. To use: $ gem install twitter_bot_generator $ twitter_bot_generator --help $ twitter_bot_generator my_new_bot $ cd my_new_bot $ bundle install $ ruby test.rb $ ruby spec.rb etc.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

twitter_bot_generator

DEPRECATED

this gem used to exploit heroku's infinite free dynos to run itself, but those days are over now. You can probably easily modify the generated code to be more cron-friendly, but i'm doing everything in node now so HAVE FUN BYE


Gem Version Build Status

I GENERATE TWITTER BOTS! RUBY IS JOY!

Installation

$ gem install twitter_bot_generator

Usage

get --help

$ twitter_bot_generator --help
twitter_bot_generator <yr_bots_name_camel_cased> (--<OPTIONAL OPTION>)
## creates a new directory called <yr_bots_name_camel_cased> in the current working directory,
and fills it with a bunch of boilerplate goodness
for building a bot that says stuff at a semi-random interval
OPTIONAL ALTERNATIVE OPTIONS:
--streaming || -S: generates a bot that listens to the "gardenhose"
--userstream || -U: generates a bot that listens for tweets @ it
have fun be kind to each other thanks goodbye!

make a bot

$ twitter_bot_generator wat_fun
scaffolding a twitter bot that is named wat_fun!
mkdir wat_fun/
mkdir wat_fun/lib
mkdir wat_fun/src
mkdir wat_fun/test
touch wat_fun/bot.rb
touch wat_fun/.gitignore
touch wat_fun/Gemfile
touch wat_fun/README.md
touch wat_fun/Procfile
touch wat_fun/spec.rb
touch wat_fun/test.rb
touch wat_fun/test/wat_fun_test.rb
touch wat_fun/src/wat_fun.rb
touch wat_fun/lib/greetings.txt
done generating! your turn now!
$ cd wat_fun
$ bundle install
$ ruby test.rb
$ ruby spec.rb
HAVE FUN BE SAFE PLAY NICE

More Resources

The source is short and hopefully self-explanatory, but if not there is also the 💃 twitter-art-robot-tutorial 👯 to guide you. Or open an issue on this repo if you need help!

Some bots made with this gem

Make a PR against this repo to add yrs!

Contribute

Comments and suggestions are super welcome! Open an issue or comment on an existing one 👍

further hacking and academic research

Check out docs/sauce for twitter gem by sferik /// tweetstream /// twitter api.