auto away message

By Master-Of-Death on Aug 16, 2009

two commands one is:

/gone

other is:

/here

enjoy

alias gone {
  set %away 1
  /ame 9Has gone afk Reason: $1-
  /away $1-
}
alias here {
  set %away 2
  /ame 9Is Back left: $duration($awaytime) Reason: $awaymsg
  /away
}
on *:TEXT:*:#:{ if (%away = 1) && ($me isin $1-) { 
    .msg # 9is currently away Reason: $awaymsg Time: $duration($awaytime)
  }
}    

Comments

Sign in to comment.
Master-Of-Death   -  Aug 18, 2009

hey go nuts I may be the author, but the author is only as good as his scripting, i like learning new techniques.

 Respond  
Jethro   -  Aug 18, 2009

Ok, thanks for the suggestion, gooshie. I know the $me can be placed in the matching range. In fact, I was actually suggesting that in a comment I posted. But I was just trying to refer to the original script without making a drastic suggestion, as close as to what the author's intended. As to the set -z and dec -z, I don't see the paramount point in substituting for another.

 Respond  
gooshie   -  Aug 17, 2009

Jethro_

Also, you can use $away identifier to tell if I'm away or not. No variables required. Edit- actually the $away isn't needed at all.

The $away is needed. Also no need for dec -z just set -z
Also can place $me in the match text event.
Also i believe he wanted to action to channel

on *:TEXT:$(* $+ $me $+ *):#: {
  if ($away) && (!%floodnot) {
    set -z %floodnot 9
    .describe # is currently away Reason: $awaymsg Time: $duration($awaytime)
  }
}
 Respond  
Jethro   -  Aug 16, 2009

You should add an Antispammer on that text event. Else people can flood you off quite easily

alias gone {
  ame 9Has gone afk Reason: $1-
  away $1-
}
alias here {
  ame 9Is Back left: $duration($awaytime) Reason: $awaymsg
  away
}
on *:TEXT:*:#: {
  if ($me isin $1-) && (!%floodpro) {
    set %floodpro 8 | dec -z %floodpro
    .msg # 9is currently away Reason: $awaymsg Time: $duration($awaytime)
  }
}

This will set a 8 second time frame and message the away info once until 8 seconds have expired. The longer you set the second, the stricter it becomes. Also, you can use $away identifier to tell if I'm away or not. No variables required. Edit- actually the $away isn't needed at all.

 Respond  
zNigel-   -  Aug 16, 2009

You should add an Antispammer on that text event. Else people can flood you off quite easily, else looks quite good

 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.