Jump to content

Recommended Posts

Posted

Put the code on ALT+R scripts editor

then type !seen and the nickname on the channel and the bot will write the seen info

on *:JOIN:#: {
  remini Seen.ini $nick
}

on *:PART:#: {
  writeini Seen.ini $nick Where $chan
  writeini Seen.ini $nick Date $asctime(mmmm) $ord($asctime(d)) $+ , $asctime(yyyy)
  writeini Seen.ini $nick Time $+($asctime(h),:,$asctime(nn),:,$asctime(ss)) EST
}

on *:QUIT: {
  writeini Seen.ini $nick Where $chan
  writeini Seen.ini $nick Date $asctime(mmmm) $ord($asctime(d)) $+ , $asctime(yyyy)
  writeini Seen.ini $nick Time $+($asctime(h),:,$asctime(nn),:,$asctime(ss))
}

on $*:TEXT:/^[!@.](seen)/:#: {
  var %rep $iif($left($1,1) == @, msg $chan, notice $nick)
  if ($ini(Seen.ini,$2)) {
    %rep $nick was last seen in $readini(Seen.ini,$2,Where) at $readini(Seen.ini,$2,Time) on $readini(Seen.ini,$2,Date) $+ .
  }
  else {
    if ($2 ison $chan) { %rep $2 is on the channel right now! }
    else { %rep I have not seen $2 $+ . }
  }
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock