Bot Logging Channel Script 3.00

Moderator: GeekShed.Net Staff

Bot Logging Channel Script 3.00

Postby bradjoe96 » Sun Feb 28, 2010 5:04 am

This is Bot Logging Channel Script v3.00

===Version 3.00 Updates===
1) Having you type "!" commands were risky if someone used your nick while you were not logged on.
2) You don't have to modify the script at all!

-Installation Instructions-
***Remember that all these instructions should be performed on the bot's IRC client***
1. Open mIRC
2. Go to Tools > Scripts Editor
3. Copy and Paste the code below into your Remote tab.
4. Press "OK"
5. Now type /botowner YourNickHere
6. Now type /botname YourBot'sNickHere
7. Now type /logchannel #YourLoggingChannelHere

Enjoy the script!

Code: Select all
;  Bot Logging Channel Script
;  Version 3.00
;  By: bradjoe96
;
;  Any errors can be reported in #bradjoe96 on irc.geekshed.net
;
;  Note: Feel free to edit this script to your liking.
;        If you have made a modification to the script and the script
;        is not working, please make sure that your modifications did
;        not cause the script to become unresponsive before reporting
;        the error to bradjoe96.
;
;

;  --Variable Setting Commands--
alias botowner {
set %botowner $1 | echo Bot Owner set to $1 $+ .
}
alias logchannel {
set %logchannel $1 | echo Logging Channel set to $1 $+ .
}
alias botname {
set %botname $1 | echo Bot Name set to $1 $+ .
}

;  --Logging--
;  It is highly recommended to NOT change anything in the script from here
;  on unless you are COMPLETELY sure of what you are doing.
On *:TEXT:*:#: {
  if ($1 == !kick) { halt }
  if ($1 == !k) { halt }
  if ($nick == $me) { halt }
  if ($nick == %botowner) { halt }
  if (* $+ %botowner $+ * iswm $1-) {
    msg %logchannel - $+ $network $+ - $chan $+ : %botowner was mentioned by $nick at $time $+ .
    if (* $+ %botname $+ * iswm $1-) {
      msg %logchannel - $+ $network $+ - $chan $+ : %botname was mentioned by $nick at $time $+ .
    }
  }
}
On *:KICK:#: {
  if ($knick == $me) {
    msg %logchannel - $+ $network $+ - $chan $+ : KICK by $nick at $time $+ .
  }
}
On *:BAN:#: {
  if ($me isin $banmask) {
    msg %logchannel - $+ $network $+ - $chan $+ : BAN by $nick at $time $+ .
  }
  if ($address($me, 2) iswm $banmask) {
    msg %logchannel - $+ $network $+ - $chan $+ : BAN by $nick at $time $+ .
  }
}
on *:NOTICE:*:*: {
  if (serv isin $nick) { halt }
  else {
    msg %logchannel - $+ $network $+ - $chan $+ : $nick sent me a notice: $1- | msg %logchannel This message was sent at $time $+ .
  }
}
on *:ERROR:*:{
  if (banned isin $1-) { msg %logchannel -WyldRyde- [NETWORK BAN ERROR] Unable to reconnect to $network $+ : $1- | halt }
  else { msg %logchannel - $+ $network $+ - [CONNECTION ERROR] $server connection rejected by server: $1- }
}
on *:TEXT:*:?: {
  if (serv isin $nick) { halt }
  if ($nick == $me) { halt }
  if ($1 == twitter) { halt }
  else { msg %logchannel - $+ $network $+ - $nick send me a private message: $1- | msg %logchannel This message was sent at $time $+ .
  }
}
bradjoe96
 
Posts: 5
Joined: Tue Oct 27, 2009 9:33 pm

Return to Script help

Who is online

Users browsing this forum: No registered users and 1 guest

cron