TagScript
TagScript is Catita’s template language. It’s used in tags, auto-responses, level announcements and roleplay texts. A block goes between braces: {name} or {name:value}.
Variables
Section titled “Variables”| Block | What it gives |
|---|---|
{user} |
Mention of whoever uses the tag |
{user(name)} · {user(displayName)} · {user(id)} · {user(avatar)} |
Name, display name, ID or avatar |
{target} |
The mentioned person (or whoever uses it, if nobody is mentioned) |
{server} · {server(memberCount)} · {server(icon)} |
Server name, members or icon |
{channel} · {channel(name)} · {channel(topic)} |
The channel |
{args} |
The text written after the tag |
{level} · {xp} · {rebirths} |
In level announcements |
The server’s own variables (/tagvar) are used the same way.
Logic and text
Section titled “Logic and text”| Block | Example |
|---|---|
| Random | {random:Hi,Hello,Hey} |
| Random number | {range:1-100} |
| 50% of the time | {50:text} |
| Condition | `{if({args}==):Write something |
| Variable | {=(name):value} then {name} |
| Math | {math:5 * 10 + sqrt(64)} |
| Replace and slice | {replace(a,b):text} · {slice(0,10):text} |
| Upper and lower case | {upper:text} · {lower:text} · {capitalize:text} |
| Ordinal | {ordinal:3} |
| Date | {date} · {unix} |
| Block | What it does |
|---|---|
{embed:...} |
Replies with an embed |
{satori:...} |
Generates an image from an HTML design |
{image:last} · {image:reply} · {image:attached} |
Uses the image from the context |
{delete} · {silent} |
Deletes the triggering message or replies without pinging |
Economy
Section titled “Economy”Tags can charge or require currency and items from the economy: {requirecash}, {consumecash}, {hasitem}, {requireitem} and {consumeitem}. That’s how you build your own shops or rewards.
Example
Section titled “Example”Hi {user(displayName)}! Welcome to **{server}**.{random:Make yourself at home,Read the rules first}.Catita is a project by Random Dev, a development studio owned by ZENU GROUP LLC. catita.gg
