Emometer.

By Mervyn^ on Oct 20, 2007

A regular emometer. Tests emoness.
Works perfectly when saved as .mrc file.

On *:TEXT:!emo *:#: {
  if ($2 !ison #) {
    .notice $nick Sorry But $2 Is not on $chan
  }
  else { 
    .timer 1 1 msg $chan Testing for $2 $+ 's emoness ...
    .timer 1 3 msg $chan $2- is $r(0,100) % emo (///_o)
  }
}

Comments

Sign in to comment.
Kyousoukyoku   -  Oct 20, 2007

Yeah, but doing with variables is much more cleaner:

Code:
On *:TEXT:!emo*:#:{
  if ($2 !ison #) {
    .notice $nick Sorry $nick $+ , $2 is not on $chan
  }
  else {
    set %number = $rand(0,100)
    .timer 1 1 msg $chan Testing for $2 $+ \'s emoness ...
    .timer 1 3 msg $chan $2 is %number $+ %
    unset %number
 }
}

No need of /set. ;x Also, for a code like this, variables shouldn\'t be needed because it isn\'t that complicated. Just pointing stuff out.

 Respond  
Bull   -  Oct 20, 2007

Yeah, but doing with variables is much more cleaner:

On *:TEXT:!emo*:#:{
  if ($2 !ison #) {
    .notice $nick Sorry $nick $+ , $2 is not on $chan
  }
  else {
    set %number = $rand(0,100)
    .timer 1 1 msg $chan Testing for $2 $+ \'s emoness ...
    .timer 1 3 msg $chan $2 is %number $+ %
    unset %number 
 }
}
 Respond  
napa182   -  Oct 20, 2007

how about checking to see if $2 is on channel. like...

On *:TEXT:!emo *:#: {
  if ($2 !ison #) {
    .notice $nick Sorry But $2 Is not on $chan
  }
  else { 
    .timer 1 1 msg $chan Testing for $2 $+ \'s emoness ...
    .timer 1 3 msg $chan $2- is $r(0,100) % emo (///_o)
  }
}

eh just another thought.

 Respond  
Mervyn^   -  Oct 20, 2007

For me it works perfectly this way:
(02:29:38) <@Mervyn^> !emo X
(02:29:40) <@^|> Testing for X\'s emoness ...
(02:29:42) <@^|> X is 21 % emo (///_o)

I see no problem.

 Respond  
ZiX   -  Oct 20, 2007

well nice idea.... but it doesn\'t work.

On :TEXT:!emo:#: {
.timer 1 1 msg $chan Testing for $2 $+ \'s emoness ...
.timer 1 3 msg $chan $2- is $r(0,100) % emo (///_o)
}

thats how i got mine to work ;\

 Respond  
ZiX   -  Oct 20, 2007

?

 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.