module CrystalGauntlet

Defined in:

crystal-gauntlet.cr
enums.cr
lib/templates.cr
server.cr

Constant Summary

CONFIG = File.exists?("./config.toml") ? TOML.parse(File.read("./config.toml")) : TOML.parse("")
DATA_FOLDER = Path.new("data")

todo: unhardcore

DATABASE = DB.open(ENV["DATABASE_URL"]? || "sqlite3://./data/crystal-gauntlet.db")
LOG = ::Log.for("crystal-gauntlet")
VERSION = "0.1.0"

Class Method Summary

Instance Method Summary

Class Method Detail

def self.endpoints #

[View source]
def self.is_funny #

[View source]
def self.run #

[View source]
def self.session_storage #

[View source]
def self.sessions #

[View source]
def self.template_endpoints #

[View source]
def self.uptime #

[View source]
def self.uptime_s #

[View source]

Instance Method Detail

def config_get(key : String, default) #

[View source]
def config_get(key : String) #

[View source]
def severity_color(severity : Log::Severity) : Colorize::Object #

[View source]
def stars_to_difficulty(stars : Int32) : LevelDifficulty | Nil #

[View source]