← Back to Variables

How to use Templates

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.

Basic Syntax

To use a variable, wrap it in curly braces: {variable}.
You can access properties of objects using dot notation: {object.property}.

Examples

If you have a user object available (which is common in most contexts), you can use:

Using in Automod

In Automod rules, you can use these templates in actions like alert, reply.

Alert Example

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}!"

Reply Example

actions:
  reply:
    text: "Hello {user.username}, please don't do that!"
    auto_delete: 5s