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