Sha256: 3a28c6f61ef11092daedc63a0e9c1d9053be5932d5560e48d3fe1ac58031f705
Contents?: true
Size: 911 Bytes
Versions: 20
Compression:
Stored size: 911 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 :hostname, alias: '-h', default: 'localhost' method_option :port, type: :numeric, alias: '-p', default: 27500 def server hostname = options['hostname'] port = options['port'] server_bot = QwtfDiscordBotServer.new(hostname: hostname, port: port) server_bot.run end desc 'watcher', 'Watches server and accounces when a player joins' method_option :hostname, alias: '-h', default: 'localhost' method_option :port, type: :numeric, alias: '-p', default: 27500 def watcher hostname = options['hostname'] port = options['port'] watcher_bot = QwtfDiscordBotWatcher.new(hostname: hostname, port: port) watcher_bot.run end end QwtfDiscordBotExe.start
Version data entries
20 entries across 20 versions & 1 rubygems