mirror of
https://github.com/thewesker/ebooks_example.git
synced 2025-12-20 04:11:13 -05:00
14 lines
196 B
Ruby
Executable File
14 lines
196 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
require_relative 'bots'
|
|
|
|
if ARGV[0] && ARGV[0] != 'start'
|
|
Ebooks::Bot.get(ARGV[0]).start
|
|
else
|
|
EM.run do
|
|
Ebooks::Bot.all.each do |bot|
|
|
bot.start
|
|
end
|
|
end
|
|
end
|