Zeppelin uses a template system that allows you to inject dynamic values into your configuration strings. This is commonly used in Automod actions (like alerts, logs, replies) and other plugins.
To use a variable, wrap it in curly braces: {variable}.
You can access properties of objects using dot notation: {object.property}.
If you have a user object available (which is common in most contexts), you can use:
{user.id} - The user's ID{user.username} - The user's username{user.mention} - Mentions the user (<@ID>)
In Automod rules, you can use these templates in actions like alert, reply.
automod:
config:
rules:
my_rule:
triggers:
- match_words:
words: ["forbidden"]
actions:
alert:
channel: "123456789012345678"
text: "User {user.mention} used a forbidden word in {channel.mention}!" actions:
reply:
text: "Hello {user.username}, please don't do that!"
auto_delete: 5s