Meet the Logic Engine
Every system, every automation, every flow Ayami runs on your server goes through here. Visual or code, one single engine underneath — three tools, pick whichever fits you.
No programming, no custom syntax to write, every path leads to the same place: real automations, running 24/7 on your server.
If you've never heard of the Logic Engine, think of it as Ayami's automation engine, the piece that turns "when this happens, do that" into something that actually runs on your server, around the clock.
It sits behind everything: automatic welcomes, role systems, economy, moderation... every automation Ayami runs goes through the Logic Engine. And you choose how to talk to it: visually, with the Logic Builder or Logic Nodes, or in code, with Logic Script.
- No code build everything by clicking, with the Logic Builder.
- With code write your own logic, with Logic Script.
- One single engine all three paths run on the same foundation underneath.
Three ways to build
You can use just one, combine all three, or switch whenever you like, no automation is locked into a single path.
Logic Builder
Visual · drag and snapBuild flows just like snapping together building blocks. Pick a When, an If, and a Then from the menus, snap them in, save: done, it's already running. No coding required.
- Ideal if you've never coded before
- Everything by clicks, no syntax to memorize
- Great for welcomes, roles, moderation, XP
Logic Script
Code · your own language
Write real code, in a custom language built for Discord, on, function, if, objects like user and channel ready to use. More control, more freedom, at your own pace.
on command("daily") do let valor = 100 db.user(msg.author).add("coins", valor) msg.reply("+100 moedas!") end
- Ideal if you already think in logic or want to learn
- Functions, variables, loops: full control
- Great for economy systems, integrations, and complex rules
Logic Nodes
Visual · connected nodesBuild flows on a free canvas by wiring nodes together: an Event node fires the flow, Condition nodes decide the path, Action nodes carry it out. Visual, but with the structure of a real flowchart.
- Ideal if you think in flowcharts and connections
- Drag, connect, and organise nodes on a free canvas
- Still in beta: new features landing every week
Already know Logic Script and just need to look up a function? Jump straight to the quick reference →
Still not sure where to start?
Not to worry: most people start with the Logic Builder or Logic Nodes and move on to Logic Script when they fancy going deeper. All three use the same engine, so nothing gets lost.