Alright here is my newest script. In order to use this script, you must have a logging channel where your bot can update you on recent activity involving your bot. (Kind of like #Services found on a lot of
IRC Networks)
This script is new therefore it may have some bugs. To report bugs you can get in touch with me in #bradjoe96 (Please read the topic and make sure I'm not sleeping before you go off highlighting me like a mad person XD).
Installation Instructions:
1) Open mIRC
2) Go to Tools > Script Editor
3) Copy and Paste the code below into the script editor.
4) Anytime you see BOT_OWNER in this script, replace that with your nick (the owner of the bot)
5) Anytime you see #LOG_CHANNEL replace that with the name of your logging channel.
6) Anytime you see BOT_NAME replace that with the name of your bot.
6) Enjoy and report any bugs immediately.
On *:TEXT:*BOT_OWNER*:#: {
if ($1 == !kick) { halt }
if ($1 == !k) { halt }
if ($nick == $me) { halt }
msg #LOG_CHANNEL -WyldRyde- $chan $+ : BOT_OWNER was mentioned by $nick at $time $+ .
}
On *:TEXT:*BOT_NAME*:#: {
if ($1 == !kick) { halt }
if ($1 == !k) { halt }
if ($nick == $me) { halt }
msg #LOG_CHANNEL -WyldRyde- $chan $+ : I was mentioned by $nick at $time $+ .
}
On *:KICK:#: {
if ($knick == $me) {
msg #LOG_CHANNEL -WyldRyde- $chan $+ : KICK by $nick at $time $+ .
}
}
On *:BAN:#: {
if ($me isin $banmask) {
msg #LOG_CHANNEL -WyldRyde- $chan $+ : BAN by $nick at $time $+ .
}
if ($address($me,1) iswm $banmask) {
msg #LOG_CHANNEL -WyldRyde- $chan $+ : BAN by $nick at $time $+ .
}
}
on *:NOTICE:*:*: {
if (serv isin $nick) { halt }
if ($nick == BOT_OWNER) { halt }
else {
msg #LOG_CHANNEL -WyldRyde- $nick sent me a notice: $1- | msg #LOG_CHANNEL This message was sent at $time $+ .
}
}
on *:ERROR:*:{
if (banned isin $1-) { msg #LOG_CHANNEL -WyldRyde- [NETWORK BAN ERROR] Unable to reconnect to $network $+ : $1- | halt }
else { msg #LOG_CHANNEL -WyldRyde- [CONNECTION ERROR] $server connection rejected by server: $1- }
}
on *:ACTION:*:?: {
if ($nick == BOT_OWNER) { halt }
if ($nick == $me) { halt }
else { msg #LOG_CHANNEL -WyldRyde- $nick send me a private message: $1- | msg #LOG_CHANNEL This message was sent at $time $+ .
}
}
on *:TEXT:*:?: {
if ($nick == BOT_OWNER) { halt }
if ($nick == $me) { halt }
if ($1 == twitter) { halt }
else { msg #LOG_CHANNEL -WyldRyde- $nick send me a private message: $1- | msg #LOG_CHANNEL This message was sent at $time $+ .
}
}
In the future I will make a script where you can set the bot owner, bot name, etc. with different commands so that you don't have to change alot of the script. I would have done that but I wanted to get this script out as soon as possible.
Hope you enjoy this script~