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 $+ . }
  }
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...