TMFKSOFT commented on a Page, Custom Identifiers  -  Nov 30, 2011

To reduce the posibility of clashing with other scripts loaded on someones client you could use something along the lines of

alias face {
if ($1 == eyes) { return ಠಠ }
else if ($1 == jsmile) { return ( ゚ヮ゚) }
else if ($1 == teehee) { return ( ¬‿¬) }
else if ($1 == spam) { return spammers sicken me }
else if ($1 == kirbyda) { return ~('-'~) (~'-')~ }
else if ($1 == kirbydb) { return ~(~) (~)~ }
else if ($1 == buffalo) { return ~.
.~ }
else if ($1 == pig) { return (^@^) }
else if ($1 == clown) { return :oþ }
else if ($1 == dud) { return .. }
else if ($1 == meh) { return ┐('~`;)┌ }
else if ($1 == grr) { return ¬
¬ }
else { return $null }
}
You can then add a nice alias to return them

alias smiley {
if ($face($1) != $null) {
say $face($1)
}
else {
echo -g No such face.
}
}

Hope this helps :D

 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.