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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..