Enhance tag management with cooldown feature and related updates
- Added a `cooldownSeconds` field to the `Tag` model, allowing for customizable cooldown periods between tag responses. - Updated tag command handling to incorporate cooldown logic, preventing spam and improving user experience. - Enhanced the WebUI to support cooldown configuration for tags, including input validation and localization for cooldown messages. - Refactored tag-related service functions to manage cooldowns effectively, ensuring accurate tracking and enforcement. - Improved localization for new cooldown-related messages in both English and German.
This commit is contained in:
@@ -820,6 +820,8 @@
|
||||
"COMPONENTS_V2": "Components V2"
|
||||
},
|
||||
"triggerWord": "Auslöse-Wort (optional)",
|
||||
"cooldownSeconds": "Cooldown (Sekunden)",
|
||||
"cooldownHint": "Mindestabstand zwischen Auto-Antworten im selben Kanal. 0 = kein Cooldown. Standard: 15.",
|
||||
"content": "Inhalt",
|
||||
"embed": "Embed",
|
||||
"components": "Components-V2-Layout",
|
||||
@@ -899,13 +901,13 @@
|
||||
},
|
||||
"stats": {
|
||||
"title": "Server-Statistiken",
|
||||
"description": "Automatisch aktualisierte Voice-Kanäle mit Live-Serverstatistiken.",
|
||||
"description": "Voice-Kanäle mit Live-Werten. Nach dem Speichern (Modul aktiviert) werden die Namen sofort aktualisiert, danach alle 10 Minuten. Der Bot braucht „Kanäle verwalten“.",
|
||||
"enabledLabel": "Server-Statistiken aktiviert",
|
||||
"membersChannelId": "Mitglieder-Kanal-ID",
|
||||
"membersChannelId": "Mitglieder-Kanal",
|
||||
"membersTemplate": "Mitglieder-Vorlage",
|
||||
"onlineChannelId": "Online-Kanal-ID",
|
||||
"onlineChannelId": "Online-Kanal",
|
||||
"onlineTemplate": "Online-Vorlage",
|
||||
"boostsChannelId": "Boosts-Kanal-ID",
|
||||
"boostsChannelId": "Boosts-Kanal",
|
||||
"boostsTemplate": "Boosts-Vorlage",
|
||||
"templateHint": "Nutze {count} als Platzhalter für den Live-Wert."
|
||||
},
|
||||
|
||||
@@ -820,6 +820,8 @@
|
||||
"COMPONENTS_V2": "Components V2"
|
||||
},
|
||||
"triggerWord": "Trigger word (optional)",
|
||||
"cooldownSeconds": "Cooldown (seconds)",
|
||||
"cooldownHint": "Minimum time between auto-replies in the same channel. 0 = no cooldown. Default: 15.",
|
||||
"content": "Content",
|
||||
"embed": "Embed",
|
||||
"components": "Components V2 layout",
|
||||
@@ -899,13 +901,13 @@
|
||||
},
|
||||
"stats": {
|
||||
"title": "Server Stats",
|
||||
"description": "Auto-updating voice channels showing live server statistics.",
|
||||
"description": "Voice channels with live values. After saving (module enabled) names update immediately, then every 10 minutes. The bot needs Manage Channels.",
|
||||
"enabledLabel": "Server stats enabled",
|
||||
"membersChannelId": "Members channel ID",
|
||||
"membersChannelId": "Members channel",
|
||||
"membersTemplate": "Members template",
|
||||
"onlineChannelId": "Online channel ID",
|
||||
"onlineChannelId": "Online channel",
|
||||
"onlineTemplate": "Online template",
|
||||
"boostsChannelId": "Boosts channel ID",
|
||||
"boostsChannelId": "Boosts channel",
|
||||
"boostsTemplate": "Boosts template",
|
||||
"templateHint": "Use {count} as a placeholder for the live value."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user