Meet the Logic Engine
Every system, every automation, every flow Ayami runs on your server goes through here. Two ways to build, one single engine underneath — pick whichever fits you.
No programming, no custom syntax to write — both paths end up in 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 have two ways to talk to it — no programming knowledge required to get started.
- No code build everything by clicking, with the Logic Builder.
- With code write your own logic, with Logic Script.
- One single engine both paths run on the same foundation underneath.
Two ways to build
You can use just one, both together, or switch whenever you like — no automation is locked into a single path.
Logic Builder
Visual · drag and snapBuild flows just like snapping together 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
Already know Logic Script and just need to look up a function? Jump straight to the quick reference →
Still not sure where to start?
No worries — most people start with the Logic Builder and move on to Logic Script when they want to go deeper. Both use the same engine, so nothing gets lost.