Sha256: cd85922e062c707f4f1cd0a4bff6ac3212f3252807f2e98df928d44eb33075ac

Contents?: true

Size: 806 Bytes

Versions: 42

Compression:

Stored size: 806 Bytes

Contents

require 'discordrb'
require 'yaml'
require 'redis'
require 'qwtf_discord_bot/version'
require 'qwtf_discord_bot/qwtf_discord_bot_server'
require 'qwtf_discord_bot/qwtf_discord_bot_pug'
require 'qwtf_discord_bot/qwtf_discord_bot_watcher'
require 'qwtf_discord_bot/qwtf_discord_bot_dashboard'
require 'qwtf_discord_bot/config'

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

module QwtfDiscordBot # :nodoc:
  def self.config
    @config ||= Config.new(config_file)
  end

  def self.config_file
    return ENV['QWTF_DISCORD_BOT_CONFIG_FILE'] if ENV['QWTF_DISCORD_BOT_CONFIG_FILE']
    return "#{Dir.pwd}/config.yaml" if FileTest.exist?("#{Dir.pwd}/config.yaml")

    "#{Dir.home}/.config/qwtf_discord_bot/config.yaml"
  end

  def redis
    Redis.current
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
qwtf_discord_bot-5.5.21 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.20 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.19 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.18 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.17 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.16 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.15 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.14 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.13 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.12 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.11 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.10 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.9 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.8 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.7 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.6 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.5 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.4 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.3 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.2 lib/qwtf_discord_bot.rb