Jump to content

Archived

This topic is now archived and is closed to further replies.

chain

check HOST and check IDLE nick

Recommended Posts

  • Administrators

replace with a nick that would be made in the bot
nick bot alternative 

on $*:TEXT:/^[.!](host|idle)\b/iS:#:{
  var %2 = $strip($2), %nick = <NICKBOT1> <NICKBOT2>
  if ($istok(%nick,$me,32) && !%n. [ $+ [ $nick ] ]) {
    if ($regml(1) == host && %2) {
      set %hostchan $chan
      who %2
      set %hostnick %2
      .enable #host
    }
    elseif ($regml(1) == idle && %2) {
      set %idlechan $chan
      whois %2 %2
      set %idlenick %2
      .enable #idle
    }
    set -u5 %n. [ $+ [ $nick ] ] 1
  }
}

#host off
raw 352:*:{
  msg %hostchan $+($chr(46),$chr(46),$chr(58),$chr(58),$chr(91),$chr(32),%hostnick,$chr(32),$chr(93),$chr(32),$chr(91),$chr(32),$3,$chr(64),$4,$chr(32),$5,$chr(32),$9-,$chr(32),$chr(93),$chr(58),$chr(58),$chr(46),$chr(46))
  unset %host*
  .disable #host
  halt
}
raw 315:*:{
  msg %hostchan $+($chr(46),$chr(46),$chr(58),$chr(58),$chr(91),$chr(32),%hostnick,$chr(32),$chr(93),$chr(32),$chr(91),$chr(32),$chr(105),$chr(115),$chr(32),$chr(110),$chr(111),$chr(116),$chr(32),$chr(111),$chr(110),$chr(108),$chr(105),$chr(110),$chr(101),$chr(32),$chr(93),$chr(58),$chr(58),$chr(46),$chr(46))
  unset %host*
  .disable #host
  halt
}
#host end

#idle off
raw 317:*:{
  msg %idlechan $+($chr(46),$chr(46),$chr(58),$chr(58),$chr(91),$chr(32),%idlenick,$chr(32),$chr(93),$chr(32),$chr(91),$chr(32),$duration($3,1),$chr(32),$chr(93),$chr(58),$chr(58),$chr(46),$chr(46))
  unset %idle*
  .disable #idle
  halt
}
raw 402:*:{
  msg %idlechan $+($chr(46),$chr(46),$chr(58),$chr(58),$chr(91),$chr(32),%idlenick,$chr(32),$chr(93),$chr(32),$chr(91),$chr(32),$chr(105),$chr(115),$chr(32),$chr(110),$chr(111),$chr(116),$chr(32),$chr(111),$chr(110),$chr(108),$chr(105),$chr(110),$chr(101),$chr(32),$chr(93),$chr(58),$chr(58),$chr(46),$chr(46))
  unset %idle*
  .disable #idle
  halt
}
#idle end
Link to comment
Share on other sites



×
×
  • Create New...