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

Version Path
qwtf_discord_bot-1.0.8 exe/qwtf_discord_bot
qwtf_discord_bot-1.0.7 exe/qwtf_discord_bot
qwtf_discord_bot-1.0.6 exe/qwtf_discord_bot
qwtf_discord_bot-1.0.5 exe/qwtf_discord_bot
qwtf_discord_bot-1.0.4 exe/qwtf_discord_bot
qwtf_discord_bot-1.0.3 exe/qwtf_discord_bot
qwtf_discord_bot-1.0.2 exe/qwtf_discord_bot
qwtf_discord_bot-1.0.1 exe/qwtf_discord_bot
qwtf_discord_bot-1.0.0 exe/qwtf_discord_bot
qwtf_discord_bot-0.5.9 exe/qwtf_discord_bot
qwtf_discord_bot-0.5.8 exe/qwtf_discord_bot
qwtf_discord_bot-0.5.7 exe/qwtf_discord_bot
qwtf_discord_bot-0.5.6 exe/qwtf_discord_bot
qwtf_discord_bot-0.5.5 exe/qwtf_discord_bot
qwtf_discord_bot-0.5.4 exe/qwtf_discord_bot
qwtf_discord_bot-0.5.3 exe/qwtf_discord_bot
qwtf_discord_bot-0.5.2 exe/qwtf_discord_bot
qwtf_discord_bot-0.5.1 exe/qwtf_discord_bot
qwtf_discord_bot-0.5.0 exe/qwtf_discord_bot
qwtf_discord_bot-0.4.1 exe/qwtf_discord_bot