Triggers are the most extensive feature of Monni as they allow you to do nearly anything you need. In short, triggers are way to create your own behaviour for Monni.
To create a custom behaviour for your server, you can choose from 3 different editors:
action builder
, visual editor
and code editor
.
Once an editor is chosen, you can choose what will trigger the action. Our list of trigger sources is large, and depending on where you opened the editor, may be selected automatically for you.
Then comes rules. Rules function as filters which tell when the trigger should be ran. You can have multiple rules, and if any of them are “true”, the trigger will be ran.
Monni’s triggers offer multiple editors for you to use. Our most versatile one is the code editor, however we offer an action builder which requires no code.
The Action builder is the simplest and easiest editor to use. It’s similar to a visual reskin of the side bar configuration, but includes Actions. An Action is the thing which happens when a trigger is ran.
The Visual editor is a scratch-like editor which supports most Simpukka functionalities. Some functionalities will require the use of code blocks or the code editor.
The Code editor is a proper web editor for writing Monni code. Line statements aren’t supported in the editor, but are supported in Monni.
Triggers are what tell Monni when he should execute an Action/run your code. They range from anything like a message being sent to a person verifying their account. A full list of triggers can be found at the bottom of the page.
Rules are what tell Monni when A trigger execution should be disregarded. These range from prefix’s to word lists. What rules are available depends on the trigger but a full list can be found HERE. Each trigger will list what rules they support.
Please note if any of the rules apply, the execution will happen.
Actions are an Action Builder specific feature which allow you to tell Monni what should be done when a Trigger executes. A full list of them can be found HERE.
Simpukka is the tool used to execute your code itself. You can read more about simpukka HERE.