Sha256: be66650d53e3c60c0ebb08f7a0d011811fcdf28f5c7c92c1f5de72df3de27e51

Contents?: true

Size: 669 Bytes

Versions: 13

Compression:

Stored size: 669 Bytes

Contents

require 'qwtf_discord_bot/version'
require 'qwtf_discord_bot/qwtf_discord_bot_server'
require 'qwtf_discord_bot/qwtf_discord_bot_watcher'
require 'discordrb'

require 'qstat_request'
require 'player'
require 'team'
require 'emoji'

class QwtfDiscordBot
  TOKEN = ENV['QWTF_DISCORD_BOT_TOKEN'].strip
  CLIENT_ID = ENV['QWTF_DISCORD_BOT_CLIENT_ID'].strip
  CHANNEL_ID = ENV['QWTF_DISCORD_BOT_CHANNEL_ID'].strip

  def initialize(hostname:, port:)
    @hostname = hostname
    @port = port
  end

  def endpoint
    @endpoint ||= begin
                    return @hostname if @port == 27500
                    [@hostname, @port].join(':')
                  end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
qwtf_discord_bot-1.0.3 lib/qwtf_discord_bot.rb
qwtf_discord_bot-1.0.2 lib/qwtf_discord_bot.rb
qwtf_discord_bot-1.0.1 lib/qwtf_discord_bot.rb
qwtf_discord_bot-1.0.0 lib/qwtf_discord_bot.rb
qwtf_discord_bot-0.5.9 lib/qwtf_discord_bot.rb
qwtf_discord_bot-0.5.8 lib/qwtf_discord_bot.rb
qwtf_discord_bot-0.5.7 lib/qwtf_discord_bot.rb
qwtf_discord_bot-0.5.6 lib/qwtf_discord_bot.rb
qwtf_discord_bot-0.5.5 lib/qwtf_discord_bot.rb
qwtf_discord_bot-0.5.4 lib/qwtf_discord_bot.rb
qwtf_discord_bot-0.5.3 lib/qwtf_discord_bot.rb
qwtf_discord_bot-0.5.2 lib/qwtf_discord_bot.rb
qwtf_discord_bot-0.5.1 lib/qwtf_discord_bot.rb