Sha256: ff90b89ff63bdc48a074ea369ce574d4c0bd084a604d4f0f37db0cf8cf7dfa5b
Contents?: true
Size: 878 Bytes
Versions: 4
Compression:
Stored size: 878 Bytes
Contents
#!/usr/bin/env ruby require 'twitter_bot_generator' begin if !ARGV[0] || ARGV.any?{ |a| a == '--help' || a == '-H' } puts 'twitter_bot_generator <yr_bots_name_camel_cased> (--<OPTIONAL OPTION>)' puts '## creates a new directory called <yr_bots_name_camel_cased> in the current working directory, ' puts 'and fills it with a bunch of boilerplate goodness' puts 'for building a bot that says stuff at a semi-random interval' puts 'OPTIONAL ALTERNATIVE OPTIONS:' puts '--streaming || -S: generates a bot that listens to the "gardenhose"' puts '--userstream || -U: generates a bot that listens for tweets @ it' puts 'have fun be kind to each other thanks goodbye!' else bot_name = ARGV[0].downcase.gsub(/[^a-z]/, '_') TwitterBotGenerator.generate bot_name, ARGV[1] || '' end rescue puts 'something horrible has happened' end
Version data entries
4 entries across 4 versions & 1 rubygems