Trigger Configuration Triggers
Configure how AI responds to messages.
Basic Configuration
yaml
trigger:
private: always # Private chat trigger
group: at # Group chat trigger
prefix: "#chat" # Command prefixTrigger Types
| Type | Description | Example |
|---|---|---|
always | Always respond | Any message |
at | @mention required | @bot hello |
prefix | Prefix required | #chat hello |
keyword | Keyword match | Contains "help" |
random | Random chance | 5% probability |
none | Disabled | No response |
Private Chat
yaml
trigger:
private: always # Respond to all private messagesOptions: always, prefix, none
Group Chat
yaml
trigger:
group: at # Respond when @mentionedOptions: at, prefix, keyword, random, atAll, none
Multiple Triggers
Enable multiple trigger methods:
yaml
trigger:
group:
- at # @mention
- prefix # Or prefix
prefix: "#ai"Keyword Trigger
yaml
trigger:
group: keyword
keywords:
- "ai"
- "机器人"
- "help"
keywordMode: contains # contains, startsWith, exactRandom Trigger
yaml
trigger:
group: random
randomRate: 0.05 # 5% chancePer-Group Override
yaml
groups:
123456789:
trigger:
mode: prefix
prefix: "#gpt"
987654321:
trigger:
mode: atCooldown
Prevent spam with cooldown:
yaml
trigger:
cooldown:
enabled: true
duration: 5000 # 5 seconds
perUser: true # Per-user cooldownWeb Panel
Configure triggers in Web Admin Panel:
- Go to Groups tab
- Select a group
- Configure trigger settings
- Save