Add global /about command and configuration
- Introduced `BotAboutConfig` model for managing the global `/about` message in the owner panel. - Implemented the `/about` command with localization support and integrated it into the help catalog. - Enhanced the dashboard with a new owner section for configuring the `/about` message type and content. - Updated components to handle the new command and its interactions, including support for different message formats (TEXT, EMBED, COMPONENTS_V2). - Added localization entries for the `/about` command in English and German, improving accessibility for users. - Documented the implementation in the phase tracking documentation for future reference.
This commit is contained in:
@@ -914,6 +914,18 @@ model BotPresenceConfig {
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
/// Global `/about` message (Owner panel). Singleton row id = "singleton".
|
||||
model BotAboutConfig {
|
||||
id String @id @default("singleton")
|
||||
enabled Boolean @default(true)
|
||||
/// TEXT | EMBED | COMPONENTS_V2
|
||||
messageType String @default("EMBED")
|
||||
content String?
|
||||
embed Json?
|
||||
components Json?
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model ChangelogEntry {
|
||||
id String @id @default(cuid())
|
||||
version String
|
||||
|
||||
Reference in New Issue
Block a user