To use this snippet...
Now, whenever you type any of the acronyms within the "$regex", it will be replaced with it's corresponding acronym replacement.
This is my first attempt at using "$regex".
on *:input:*: {
if ($regex($1-,/(afk|brb|bbl|lol|omg|stfu|rofl|roflmao|ttyl)/i)) {
say $replace($1-,afk,Away from keyboard,brb,Be Right Back,bbl,Be Back Later,lol,Laughing Out Loud,omg,OH MY GOD!,stfu,Shut The FUK Up,rofl,Rolling On Floor Laughing,roflmao,Rolling On Floor Laughing My Ass Off,ttyl,Talk To You Later)
halt
}
}
This script is good as in it doesn't echo (aka lol Laughing Out Loud> both get inputed to the chat) but if I try to change my nick to afk it makes it Away From Keyboard. Suggestion would be to find a way to make it to where it only changes the word if it is by itself and not attached to something else like a nick or in a /me action or in a /notice or /notify or other server command. Just a thought.