Bot away script

By M[n]M on Feb 21, 2008

1)Alt + R = Remote
2)/set %owner <your nick | not your bots nick!>
3)Copy and Paste :P

When you go away from ur comp type:

!away
!back

in the channel that your bots in!

BTW!

Change the #mp3 to your channel name i am just too lazzzzy to change it so... ;)
goodluck

menu channel { 
  .$iif($group(#away).status == on, AWAY, AWAY ) 
}

on *:TEXT:*!away*:#:{
  if ($nick == %owner) {
    /set %reason $2- | /amsg %owner is 11away 6now Reason: 9(10 $+ %reason $+ 9,0) | set %away.time $ctime | enable #away | set %away on
  }
  else { notice $nick Access Deniet! }
}
on *:TEXT:*!back*:#:{
  if ($nick == %owner) {
    /amsg %owner Is 11back 6from 9(10 $+ %reason $+ 9) 6& He was 11away6 for4 $duration($calc($ctime - %away.time)) $+ 6. | unset %reason | disable #away | unset %away.time | unset %away on
  }
  else { notice $nick Access Deniet! }
}
#away off
on *:TEXT:*:#:{
  If (%owner isin $1-) && (%away == on) { notice $nick %owner is AWAY Reason: %reason } 
  If (%owner isin $1-) && (%away != on) { msg #mp3 4 $+ $chan 1- ( $+ $time $+ ) < $+ $nick $+ > $1-  } 
  else { halt }
}
on *:ACTION:*:#:{
  If (%owner isin $1-) && (%away == on) { notice $nick %owner is AWAY Reason: %reason } 
  If (%owner isin $1-) && (%away != on) { msg #mp3 4 $+ $chan 1- ( $+ $time $+ )6 $nick $1-  } 
  else { halt }
}
#away end

Comments

Sign in to comment.
wtdragon5   -  Mar 01, 2008

I don\'t really see the point of adding this code to a bot, when it only allows %owner to use it, whynot just have a remote loaded in your client?

 Respond  
M[n]M   -  Feb 21, 2008

thx mountaindew :)

 Respond  
guest598594   -  Feb 21, 2008
  .$iif($group(#away).status iswm on, AWAY, AWAY ) 

1) no need for iswm, just ==
2) the true and false part of the $iif are the same Image

 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.