mIRC Home    About    Download    Register    News    Help

Print Thread
!seen script #181564 26/07/07 06:57 PM
Joined: Jul 2007
Posts: 30
I
ispukikoy Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Jul 2007
Posts: 30
Hi...

I need a simple bot script for the !seen command
that will tell how many days, hours, minutes, seconds
the bot last saw the chatter...

The bot should respond by "describe".

Thanks in advance.

Last edited by ispukikoy; 26/07/07 06:58 PM.
Re: !seen script [Re: ispukikoy] #181565 26/07/07 07:05 PM
Joined: Mar 2003
Posts: 612
B
billythekid Offline
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
Code:
on 1:text:!seen *:#channel:{
  if $2 !ison $chan {
    if $($+(%,seen.,$2),2) {
      describe $chan $2 was last seen on $($+(%,seen.,$2),2)
    }
    else describe $chan $2 has not been seen by me!
  }
  else describe $chan $2 is here right now goofball!
}
on 1:join:#chan:{
  set %seen. $+ $nick $fulldate
}
on 1:quit:{
  set %seen. $+ $nick $fulldate
}
on 1:part:#chan:{
  set %seen. $+ $nick $fulldate
}


untested and very basic!

btk

Last edited by billythekid; 26/07/07 07:09 PM.

billythekid
Re: !seen script [Re: billythekid] #181566 26/07/07 07:10 PM
Joined: Dec 2002
Posts: 2,013
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,013
on 1:kick:#chan:{
set %seen. $+ $knick $fulldate
}

Re: !seen script [Re: billythekid] #181587 27/07/07 08:19 AM
Joined: Jul 2007
Posts: 30
I
ispukikoy Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Jul 2007
Posts: 30
Originally Posted By: billythekid
Code:
on 1:text:!seen *:#channel:{
  if $2 !ison $chan {
    if $($+(%,seen.,$2),2) {
      describe $chan $2 was last seen on $($+(%,seen.,$2),2)
    }
    else describe $chan $2 has not been seen by me!
  }
  else describe $chan $2 is here right now goofball!
}
on 1:join:#chan:{
  set %seen. $+ $nick $fulldate
}
on 1:quit:{
  set %seen. $+ $nick $fulldate
}
on 1:part:#chan:{
  set %seen. $+ $nick $fulldate
}


untested and very basic!

btk


This script is not working. frown
I created a myownstuff.mrc file
and loaded it on the remotes, logout and reconnected
and re joined a channel, but the bot is not responding
to any !seen frown

Re: !seen script [Re: ispukikoy] #181588 27/07/07 09:46 AM
Joined: Feb 2006
Posts: 181
C
Crinul Offline
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
This script is working. Next time, replace #channel, #chan in the code with your channel(s).

Re: !seen script [Re: ispukikoy] #181589 27/07/07 09:54 AM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Hmm..

Re: !seen script [Re: ispukikoy] #181594 27/07/07 12:44 PM
Joined: Dec 2002
Posts: 2,013
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,013
You can replace #chan in each of those events with one channel or multiple channels separated by commas #chan1,#chan2,#chan3 or replace each with just # if you want it for all channels you're on. Use your own channel names of course.

Re: !seen script [Re: ispukikoy] #181607 27/07/07 03:14 PM
Joined: Jul 2007
Posts: 30
I
ispukikoy Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Jul 2007
Posts: 30
Thank you very much everyone for all the help. cool