Create powerful, dynamic custom commands with Axion's TagScript engine
TagScript is the scripting language Axion uses for custom commands. It gives you variables, conditionals, math, randomness, embeds, reactions, and fine-grained control over how the bot responds.
Axion has two kinds of custom commands, and most TagScript blocks work in both. A small number of blocks are exclusive to one type:
Built into the TagScriptEngine. Available everywhere β in both Tags and SlashTags.
| Block category | Tags | Slash Tags |
|---|---|---|
| Math, variables, logic, text | β | β |
| Embed, require, blacklist, cooldown | β | β |
| Redirect, command, override | β | β |
React to response ({react}) |
β | β |
AllowedMentions ({allowedmentions}) |
β | β |
Delete invoking message ({delete}) |
β | β |
Silent response ({silent}) |
β | β |
React to invocation ({reactu}) |
β | β |
Ephemeral response ({hide}) |
β | β |
Reply to interaction ({reply}) |
β | β |
Comment blocks ({#}, {//}) |
β | β |
The same conditional logic works in both Tags and SlashTags. Only the action blocks differ.
All utility and computation blocks β math, logic, text, randomness, and more.
Action blocks that control how the response is sent β embeds, reactions, delete, hide, reply, and more.
Access Discord data β user, channel, server, args, and target β inside your tag content.
Ready-to-use templates for Tags and SlashTags to get you started quickly.
How to create, edit, and manage both Tags and SlashTags in your server.