Simple Quote Script

By Weasel on Aug 28, 2009

ADD THIS TO THE END OF YOUR REMOTES!!
also includes a cool thing that adds a Dot after the first/last letter of your nick!

anyway. here's what it does
type !quote and it will say a random quote of what that nick has said. say !tm and it will say the total messages the bot has seen
!messages and it will say total messages of that Nick, Enjoy!

on *:text:!quote*:#: {
  if ($read($2 $+ .txt) == $null) { msg $nick $2 No Such Nick | halt }
  msg $nick Random $2 Quote: $read($2 $+ .txt) 
}
on *:text:!messages*:#: {
  notice $nick Total Messages for $2 $+ : $readini(msgcount.ini, count, $2)
}
on *:text:!tm*:#: {
  notice $nick Total Messages Since my last Disconnect: %totalmsg Since I Was Made %overallmsg
}
on *:text:*:#: {
  /write $nick $+ .txt $1-
  set %temp $readini(msgcount.ini, count, $nick)
  writeini msgcount.ini count $nick $calc(%temp + 1)
  inc %totalmsg 1
  inc %overallmsg 1
}
on *:disconnect: {
  unset %totalmsg
}
alias /als /set %len $len($me) | /titlebar $left($me,1) $+ . $+ $right($me,$calc(%len - 1)) | timer1 3/titlebar $left($me,$calc(%len - 1)) $+ . $+ $right($me,1)

Comments

Sign in to comment.
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.