(Init): Added shit
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
# Elly Discord Bot Configuration
|
||||
# Elly Discord Bot — Configuration
|
||||
# ================================
|
||||
#
|
||||
# Copy this file to `config.toml` and fill in real values. The file is
|
||||
# validated against the shared Zod schema (`@elly/shared/src/config/schema.ts`)
|
||||
# at boot — missing or malformed values will abort the process before any
|
||||
# side effects occur.
|
||||
#
|
||||
# Discord IDs must be 17–19 digit snowflakes. Channel and role names match
|
||||
# guild entities by display name (case-insensitive).
|
||||
|
||||
[bot]
|
||||
name = "<your bot name>"
|
||||
@@ -16,7 +24,21 @@ ids = [
|
||||
]
|
||||
|
||||
[database]
|
||||
path = "./data/elly.db"
|
||||
# Path to the unified SQLite database owned by @elly/core.
|
||||
path = "./data/elly.sqlite"
|
||||
|
||||
[kv]
|
||||
# Path to the on-disk Deno.Kv store. Used for cooldowns, interaction state,
|
||||
# and PikaNetwork response caching. Replaces all in-memory ad-hoc caches.
|
||||
path = "./data/kv"
|
||||
|
||||
[ipc]
|
||||
# Local HTTP IPC between @elly/bot and @elly/core. The bot opens connections
|
||||
# to this host:port; the core binds and serves on it. The shared secret
|
||||
# lives in .env (IPC_TOKEN) and never in this file.
|
||||
host = "127.0.0.1"
|
||||
port = 8787
|
||||
request_timeout_ms = 10000
|
||||
|
||||
[api]
|
||||
pika_cache_ttl = 3600000 # 1 hour in ms
|
||||
@@ -85,5 +107,12 @@ error = 0xED4245
|
||||
info = 0x5865F2
|
||||
|
||||
[logging]
|
||||
level = "info" # debug, info, warn, error
|
||||
# Minimum level: debug | info | warn | error | fatal
|
||||
level = "info"
|
||||
# Console output format: "console" (ANSI-colored, dev) or "json" (structured).
|
||||
# In production (NODE_ENV=production) JSON is forced regardless of this value.
|
||||
format = "console"
|
||||
# Optional: also write structured JSON lines to a rotating file.
|
||||
file = "./logs/elly.log"
|
||||
file_max_bytes = 10485760 # 10 MiB — rotates when current file exceeds this.
|
||||
file_max_backups = 5 # Number of `.1` … `.N` archives to keep.
|
||||
|
||||
Reference in New Issue
Block a user