Sha256: e4edd6f0a50e913f89b981929be40fdca9c711047e3fbc77aaaa4f6111b2f9a1
Contents?: true
Size: 686 Bytes
Versions: 5
Compression:
Stored size: 686 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' require 'roster' 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
5 entries across 5 versions & 1 rubygems