vojo/apps/ai-bot/messages.go

15 lines
901 B
Go

package main
// Language-free status signals. The bot answers questions in the user's own
// language — the model handles that — but it cannot localize system states like
// "rate limited" or "xAI is down": an appservice transaction carries no per-user
// locale, so there is no reliable language to pick, and the bot serves a mixed
// RU/EN audience. Rather than hardcode prose in one language (and rather than drop
// silently), the bot REACTS to the triggering message with a self-evident emoji.
// These are symbols, not translatable copy — edit the glyphs freely.
const (
reactError = "⚠️" // couldn't answer — xAI failed or returned nothing usable
reactRateLimit = "⏳" // daily limit reached (per-user or global) — try later
reactEncrypted = "🔒" // encrypted room — the bot can't read it
reactMedia = "🚫" // non-text message — the bot only reads text
)