mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 04:15:45 +08:00
1.2 KiB
1.2 KiB
AutoTranslate
Automatically detect foreign language messages in group chats and translate them using LLM.
Features
- 🌐 Auto-detects message language — no manual commands needed
- 🤖 Uses LLM for natural, high-quality translations
- ⚙️ Configurable target language (Chinese, English, Japanese, Korean, French, Spanish)
- 📏 Skips short messages, emoticons, and URLs
- 🔇 Only translates when needed — same-language messages are ignored
- 👥 Group-only by default, optional private chat support
How It Works
- When a message is received in a group chat, the plugin sends the text to an LLM
- The LLM detects if the message is in a different language than the configured target
- If translation is needed, the plugin replies with the translated text prefixed with 🌐
- Messages already in the target language are silently ignored
Configuration
| Option | Description | Default |
|---|---|---|
| Target Language | Language to translate into | Chinese (Simplified) |
| LLM Model | Model to use for translation | First available |
| Minimum Text Length | Skip messages shorter than this | 4 characters |
| Enable in Private Chat | Also translate private messages | Off |