A Telegram bot to send Joann Jarvis pictures from reddit every hour.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
joann-pupper-bot/src/joann-pupper-bot.cr

18 lines
433 B

require "./joann-pupper-bot/*"
require "option_parser"
config_file = "./config.yaml"
OptionParser.parse do |parser|
parser.banner = "Usage: joann-pupper-bot [arguments]"
parser.on("-c", "--config=CONFIG", "Select config file") do |c|
config_file = c
end
parser.on("-h", "--help", "Show this message") do
puts parser
exit
end
end
botc = PupperBot.new(BotConfiguration.from_yaml(File.open(config_file)))
sleep