Spy/Log bot

By Epic on Mar 09, 2013

Just a simple stupid log bot/spying

just load it in a remote, change the aliases where asked too

;############################################################### Logger Bot
;####################### Made by Dsp, For whoever lol ###################################
;############ NOTE: you need to be in the channel to log, obviously.
;################################Aliases
;###Replace # with channel you wish to log.
alias logchan return #channeltospyon

;###Replace # with channel to relay message too
alias transferchannel return #channelrelay

;###Replace logbot with your botname!
alias logbot return Botname

;### Replace Nick with your nick for owner!
alias owner return owner

;#### Rank
alias rank {
  if ($1 isop #) {
    return $+(4@,$nick)
  }
  elseif ($1 ishop #) {
    return $+(7%,$nick)
  }
  elseif ($1 isvoice #) {
    return $+(12+,$nick)
  }
  elseif ($1 isreg #) {
    return $+(4[Reg4],$nick)
  }
}
;################################# on Text
on $*:Text:*:#: {
  if (# == $logchan) && ($me == $logbot) && (%log == on) {
    var %msg $+(4[,$logchan,4]) : $+([,$rank($nick),]) $1-
    msg $transferchannel %msg
  }
}
on $*:Text:*:?: {
  if ($nick == $owner) {
    if ($1- == start) {
      set %log on
      .msg $nick now logging $logchan to $transferchannel
    }
    elseif ($1- == end) {
      set %log off
      .msg $nick now not logging $logchan
    }
  }
}
;############# modes/join/part
on $*:part:#: {
  if (# == $logchan) && ($me == $logbot) && (%log == on) {
    var %msg $+(4[,$logchan,4]) : PART : $+([,$rank($nick),])
    msg $transferchannel %msg
  }
}
on $*:Join:#: {
  if (# == $logchan) && ($me == $logbot) && (%log == on) {
    var %msg $+(4[,$logchan,4]) : JOIN : $+([,$rank($nick),])
    msg $transferchannel %msg
  }
}
on $*:action:*:#: {
  if (# == $logchan) && ($me == $logbot) && (%log == on) {
    var %msg $+(4[,$logchan,4]) : Action : $+([,$rank($nick),]) 6 $1-
    msg $transferchannel %msg
  }
}
on *:rawmode:#: {
  if (# == $logchan) && ($me == $logbot) && (%log == on) {
    var %msg $+(4[,$logchan,4]) : Modechange : $+([,$rank($nick),]) $1-
    msg $transferchannel %msg
  }
}
on *:ban:#: {
  if (# == $logchan) && ($me == $logbot) && (%log == on) {
    var %msg $+(4[,$logchan,4]) : Ban : $+([,$rank($nick),]) banned $+(4[,$bannick,4]) Reason: $1-
    msg $transferchannel %msg
  }
}
on *:kick:#: {
  if (# == $logchan) && ($me == $logbot) && (%log == on) {
    var %msg $+(4[,$logchan,4]) : Kick : $+([,$rank($nick),]) kicked $+(4[,$knick,4]) Reason: $1-
    msg $transferchannel %msg
  }
}

Comments

Sign in to comment.
xddd   -  May 18, 2013

Hi dude, thanks for this share...

I was wondering if I could only log @ (moderators) and keep the log locally in hard disk or send it through email :)

Epic  -  Aug 30, 2013

you could try, but then you'd need to edit the script to save to a file, say on desktop, and ya just log @ only

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.