Code: Select all
macro resettried {
do something
do ...reset automacro fish
automacro fish {
timeout 19
call {
do something
}
}
Moderator: Moderators
Code: Select all
macro resettried {
do something
do ...reset automacro fish
automacro fish {
timeout 19
call {
do something
}
}
Code: Select all
6. timeout 10 – This isn't a condition or a command, it works the same way it works in normal Kore blocks, so this automacro cannot trigger within 10 seconds of it already having been triggered. I ALWAYS put timeouts, so even if my conditions are faulty, the automacro doesn't spam and mess up whatever my bot is doing. Otherwise if your automacro is messed up then you could die or something, so its better to put an appropriate timeout.
automacro falala {
run-once 1
call {
do something
release $.caller or falala
}
}
Code: Select all
# Store the current time in a variable
$ai_seq_args[0]{waitTwoSecs}{time} = time;
# We want to wait two seconds
$ai_seq_args[0]{waitTwoSecs}{timeout} = 2;
Code: Select all
$automacro{$am}->{time} = time if $automacro{$am}->{timeout};