Bot Logging Channel Script 4.00

Moderator: GeekShed.Net Staff

Bot Logging Channel Script 4.00

Postby bradjoe96 » Sun Feb 28, 2010 6:52 am

This is Bot Logging Channel Script v4.00

===Version 4.00 Updates===
1) A lot more colorful on loading.
2) Pop-up dialogs to set variables, making it even easier to get everything setup.

-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. Go to File>Save As and save it as BotLogging.mrc
5. Go to File>Load and load BotLogging.mrc
6. Fill out all of the pop-up dialog boxes.

Enjoy the script!

Code: Select all
;  Bot Logging Channel Script
;  Version 4.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.
;
;

;  --Loading Message--
ON *:START:{
  Echo -a 4 6You have just loaded 3B4o5t 6L7o9g3g4i5n6g 7C9h3a4n5n6e7l 9S3c4r5i6p7t 4 6Version 4.00
  Echo -a 4 6By: bradjoe96
  Echo -a 4 6Questions and comments? You can find me in #bradjoe96 on irc.geekshed.net
  Echo -a 4 6irc://irc.geekshed.net
  botlogvar
}
;  --Variable Setting--
alias botlogvar {
  set %botowner $?="What is the nick of the owner of the bot?"
  set %logchannel $?="What is the name of the logging channel?"
  set %botname $?="What is the nick of the bot?"
}
;  --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 $+ : I 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 $+ .
  }
}
Last edited by bradjoe96 on Thu Jun 24, 2010 2:29 am, edited 1 time in total.
bradjoe96
 
Posts: 5
Joined: Tue Oct 27, 2009 9:33 pm

Re: Bot Logging Channel Script 4.00

Postby bradjoe96 » Sun Feb 28, 2010 5:02 pm

Hey, guys. I was wondering.. do you want this script to tell you when your name was mentioned? It seems like you wouldn't really need that if you've already got highlights set up. Because then you would be highlighted twice.
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 9 guests

cron