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-6.3.1 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.3.0 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.2.2 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.2.1 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.2.0 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.1.5 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.1.4 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.1.3 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.1.2 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.1.1 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.1.0 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.0.4 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.0.3 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.0.2 lib/qwtf_discord_bot.rb
qwtf_discord_bot-6.0.1 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.26 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.25 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.24 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.23 lib/qwtf_discord_bot.rb
qwtf_discord_bot-5.5.22 lib/qwtf_discord_bot.rb