module CrystalGauntlet
Defined in:
crystal-gauntlet.crenums.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
- #config_get(key : String, default)
- #config_get(key : String)
- #severity_color(severity : Log::Severity) : Colorize::Object
- #stars_to_difficulty(stars : Int32) : LevelDifficulty | Nil