Tags
Create custom commands with TagScript and set up auto-responders with triggers.
The Tags module lets you create custom commands (tags) and automatic message responses (triggers). Tags use the TagScript template language for dynamic responses, while triggers automatically respond to messages matching specific patterns.
Quick Reference
| Command | Description | Permission | Cooldown |
|---|---|---|---|
.tag | Create and manage custom commands | Everyone (create requires manage) | 2s |
.trigger | Create and manage auto-responders | Moderator | 2s |
Tags
Tags are custom commands that anyone can invoke. Think of them as user-created shortcuts for common responses, rules, FAQs, or fun content.
Subcommands
Aliases: t, tags
Cooldown: 2 seconds
TagScript Variables
Tags use the TagScript template engine for dynamic content:
| Variable | Description | Example |
|---|---|---|
{user} | The user who ran the tag | Alex |
{user.mention} | The user as a mention | @Alex |
{user.id} | The user's ID | 123456789012345678 |
{server} | The server name | My Server |
{channel} | The channel name | general |
{args} | All arguments passed after the tag name | hello world |
{args.0} | First argument only | hello |
{args.1} | Second argument only | world |
{random:a|b|c} | Pick a random value from the list | b |
Examples
Create a rules tag:
Create a tag with dynamic content:
Create a random response tag:
Use a tag with arguments:
Triggers
Triggers are auto-responders that fire when a message matches a specific pattern. Unlike tags (which need to be explicitly invoked), triggers watch all messages in real time.
Subcommands
Aliases: tr, triggers, autoresponder, ar
Permission: Moderator
Cooldown: 2 seconds
Matching Modes
| Mode | Behavior |
|---|---|
contains | Triggers if the message contains the trigger phrase anywhere |
strict | Triggers if the message contains the trigger phrase as a whole word |
exact | Triggers only if the entire message exactly matches the trigger phrase |
startswith | Triggers if the message starts with the trigger phrase |
endswith | Triggers if the message ends with the trigger phrase |
regex | Triggers if the message matches a regular expression |
Examples
Auto-respond to common questions:
Regex trigger for links:
Restrict a trigger to specific channels:
Be careful with contains mode on short phrases -- it can trigger on partial word matches. Use strict mode if you want whole-word matching, or exact for full-message matching.