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": "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