Sha256: 26bede85acdad37f1439f3e572f6983067379f7b95fc80a50f7f74f8be291375
Contents?: true
Size: 677 Bytes
Versions: 8
Compression:
Stored size: 677 Bytes
Contents
#!/usr/bin/env ruby require 'qwtf_discord_bot' require 'thor' class QwtfDiscordBotExe < Thor def self.exit_on_failure? true end desc 'server', 'Responds to `!server` with server information' method_option :endpoints, type: :array, alias: '-e', default: ['localhost:27500'] def server server_bot = QwtfDiscordBotServer.new(options[:endpoints]) server_bot.run end desc 'watcher', 'Watches server and accounces when a player joins' method_option :endpoints, type: :array, alias: '-e', default: ['localhost:27500'] def watcher watcher_bot = QwtfDiscordBotWatcher.new(options[:endpoints]) watcher_bot.run end end QwtfDiscordBotExe.start
Version data entries
8 entries across 8 versions & 1 rubygems