Sha256: 482d1051959f6aecd01f40417bca64fdd1d66355e99bf1dfe2258323d18eb395
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
module Roflbot class Runner def initialize(argv = ARGV) username = nil password = nil options = {} OptionParser.new do |opts| opts.on("-u", "--username USERNAME") { |u| username = u } opts.on("-p", "--password PASSWORD") { |p| password = p } opts.on("-c", "--config FILENAME") { |c| options = YAML.load_file(c) } end.parse!(argv) bot = SentenceBot.new(username, password, options) bot.connect Signal.trap("INT") { bot.disconnect } bot.wait end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roflbot-0.0.1 | lib/roflbot/runner.rb |
roflbot-0.0.0 | lib/roflbot/runner.rb |