I made an "acronym" script, but i cant get it to work the way i want it to. All it does is makes 'lol' into ' LOL' . It will only do it if that is the only thing i type, or the first thing in a sentence.... i.e. "lol that was funny" would be "LOL that was funny" but if i type "that was funny lol" it wont change anything.
on 1:input:*:{
IF ($1 == lol) { SAY LOL | HALT }
}
HELP PLEASE.. thanks
$1 holds the first word... use $1- instead, which holds everything after the command. Also use isin instead.
on 1:input:*: {
if (lol isin $1-) {
say LOL
halt
}
}
Try this out.
on *:INPUT:*:{
say $reptok($1-,lol,LOL,32)
halt
}
Will say replace "lol" anywhere in the sentence.
Right, replacing the token would be better! Thanks Collective
(I might need to use this code too
)
Heres a cheap and easy way of doing it
on 1*:TEXT:*lol*:#channel:/msg $chan LOL
}
or
on 1*:TEXT:*lol*:#channel:/msg $chan Laughing Out Loud!
}
when i say cheap and easy i really mean it anyways is this something similar to what you wanted or did I not follow something?
on TEXT is triggered when someone else says something, that isn't what he asked for.
Well [censored]! /me stays after school for detention!
MY BAD! LOL
But changing it to ON INPUT would work