Paste it in you bot's remote script and it replies something you say like this
Example :
Rico : Lol
ColeBot : Rico is Laughing out loud
on *:TEXT:*:#: {
if (lol isin $1) msg $chan 2,11 $nick is LAUGHING OUT LOUD
if (rofl isin $1) msg $chan 2,11 $nick is ROLLING ON THE FLOOR LAUGHING
if (Hi isin $1) msg $chan 2,11 Hello
if (hello isin $1) msg $chan 2,11 Hi
if (BRB isin $1) msg $chan 2,11 $nick will BE RIGHT BACK in a mooment
if (Away isin $1) msg $chan 2,11 $nick is currently AWAY and will be back in a moment
if (Im back isin $1) msg $chan 2,11 $nick is BACK from being away or BRB
}
@ Aucun50, there is no flood control on Jethro_'s code. He was suggesting to the to romen to add a trigger flood control.
I have a similar script to this but all you have to do is provide the word trigger & the output. It can also contain several outputs. Check out xTalker v1.01.
I experiment with regex and regsubex to emulate your code the same way and has been a success:
on $*:text:/^(lol|rofl|brb|h(i|ello)|away|Im back)$/iS:#: {
if (!%f) { inc -z %f 5 | .msg # 2,11 $nick $regsubex($1,/(.+)/iS,$iif($regml(1) = lol, is LAUGHING OUT LOUD,$&
$iif($regml(1) = rofl, is ROLLING ON THE FLOOR LAUGHING,$iif($regml(1) = brb, will BE RIGHT BACK in a mooment,$&
$iif($regml(1) = hi, Hello,$iif($regml(1) = hello, Hi,$iif($regml(1) = away,is currently AWAY and will be back in a moment,$&
$iif($regml(1) = Im back, $nick is BACK from being away or BRB)))))))) }
}
Your script needs to have a trigger flood protection in case somebody spams it.