Abrieviations

By Stealth on Aug 25, 2005

I havn't added colours to this yet. It basically changes all of the Abrievations. The Abrieviations are in the Variable %abrv. if you want to add your own go to the end of the variable add it like this
%abrv lol,laughing Out Loud --> lol,Laughing Out Load,brb,Be Right Back ect.
Add the Step 1. To Remotes And The Step 2. To Variables.
The Abrieviations only work if they are the first word of the sentance.
This Changes Lol to Laughing Out Loud
brb To Be Right Back And So On.

Hope You Enjoy

Step 1. To Remotes

on *:input:*: {
  if ($left($1,1) != /) {
    if ($1 isin %abrv) { say $replace($1-,$1,$gettok(%abrv,$calc($findtok(%abrv,$gettok(%abrv,$findtok(%abrv,$1,44),44),44) +1),44)) | haltdef }
  }
}

Step 2. To Variables

%abrv lol,Laughing Out Loud,wb,Welcome Back,ty,Thank You,yw,You're Welcome,brb,Be Right Back,bbs,Be Back Soon,afk,Away From KeyBoard,jk,Just Kidding

Comments

Sign in to comment.
DarthReven   -  Aug 27, 2005

sugestions

  1. use a hash table,text file, or ini file to hold your abriviations
  2. $1 won\'t do you mcuh good if someone says \"hi lol\" instead roll threw the tokens in the line of text \"var %x $1-,%y 1 | while ($gettok(%x,%y,32)) {\"
 Respond  
QuickStep   -  Aug 26, 2005

the disadvantage of using a global variable for this is the fact that a variable can get too long, resulting in an error

Just something to keep in mind

 Respond  
supergeo   -  Aug 25, 2005
if ($1 isin %abrv) { say $replace($1-,$1,$gettok(%abrv,$calc($findtok(%abrv,$gettok(%abrv,$findtok(%abrv,$1,44),44),44) +1),44)) | haltdef }

Gulp

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.