Fun Backward Text Snippet

By Jethro on Apr 02, 2010

I found this one I posted awhile back and decided to send it as a submitted snippet, along with some modification to include events needed to reply to backward text. I also include a switch to enable and disable the script.

What this snippet does is basically to respond to people's text, action and notice with a backward output, as well as see yourself enter text backward.

menu * {
  Turn Backward Text $upper($iif($group(#bw) = on,off,on)) {
    $iif($group(#bw) != on,.en,.dis) $+ able #bw
    goto $iif($group(#bw) = on,o,f)
    :o | echo -at * Backward text has been activated! | halt
    :f | echo -at * Backward text has been deactivated! | halt
  }
}
on *:text:*:*:$iif($group(#bw) = on,bw $strip($1-))
on *:action:*:*:$iif($group(#bw) = on,bw $strip($1-))
on *:notice:*:*:$iif($group(#bw) = on,bw $strip($1-))
on *:input:*:$iif($group(#bw) = on,bw $1-)) | .msg # $strip($1-) | haltdef
#bw on
alias -l bw {
  var %x $0 | while (%x >= 1) { 
  var %y %y $ [ $+ [ %x ] ] | dec %x }
  $iif($event = input,echo -bfilt # $+(<,$nick(#,$me).pnick,>),$&
    .msg $iif(#,#,$nick)) %y
}
#bw end

Comments

Sign in to comment.
CrazyShady   -  Sep 09, 2011

What is the "#bw end" on the last line?

 Respond  
ManiZach   -  Apr 08, 2010
<> rawr * /msg: insufficient parameters
 Respond  
Jethro   -  Apr 05, 2010

I don't see any text output reversed when the script is turned off.

What is the error message you've received in query? Does it still work in query for you?

 Respond  
ManiZach   -  Apr 05, 2010

Um, it works great, but I'm having a small probleme seeing the text when it's set to off, also it gives me an error message in querry... Could be my irc... It's alot of fun though :p

 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.