Page 1 of 1

Auto Away Script

PostPosted: Thu Nov 05, 2009 6:01 pm
by Phil
The more observant of you may have noticed the userlist on the site. If not, it's accessed by clicking on any of the user counts at http://www.geekshed.net/chat/chat-rooms/.

If you click the Xs in the away column of that list, it shows the reason why the user is away.

To effectively update that column with an X or tick when you are away here, you can use the following script. It sets you as away after 30 mins idle and sets you as back when you return.

Code: Select all
See Below...

Re: Auto Away Script

PostPosted: Fri Nov 06, 2009 12:34 pm
by Phil
Eh, slight logic error in original code - fixed now...

Code: Select all
on 1:START:{
  set %autoaway.away 0
  .timerautoaway 0 1800 doautoaway
}

on 1:INPUT:*:{
  if (%autoaway.away == 1) {
    raw away
    echo -a 6Auto away deactivated
    set %autoaway.away 0
  }

  .timerautoaway 0 1800 doautoaway
}

alias doautoaway {
  if (%autoaway.away == 0) {
    raw away Auto away after 30 mins idle
    echo -a 6Auto away active
    set %autoaway.away 1
  }
}

Re: Auto Away Script

PostPosted: Tue Nov 10, 2009 7:51 pm
by Pctech37
Why use .'s and not /'s

Re: Auto Away Script

PostPosted: Tue Nov 17, 2009 6:42 pm
by SharpY
Pctech37 wrote:Why use .'s and not /'s


So that the messages don't show up on your screen ever, they are simply automatically done silently.