Cruz' Script Attic

Over the past months, I've written some scripts for my eggdrop bot. Some of these scripts are worth sharing with other people. It saves them from doing the same work I've done, and it doesn't hurt me, so why not?

Responder script

This script was based on MC_8's respond script, but I've added a LOT of features. Basically, you can let your bot respond to words or sentences in the channel.

Stuff I added:
-o- you can now use /not (notice), /msg (private message) and /me (action) in replies.
-o- you can use multiple replies ({"reply1" "reply2"}) which will be randomly picked
-o- it also triggers on /me lines and join messages
-o- limited to 1 reply per line, instead of continuing with other rules
-o- you can reply with multiple lines of text by using \n as delimiter {"what\nnow!"}
-o- you can use %1 - %6 in the reply, matching the 1st - 6st * in the matching text
(ie: (give me *!) {/me gives %nick %1} : "Cruz: give me money!" -> "Bot gives Cruz money")

Download Respond Script 2.0*
Warning! With my personal response-lines, there's a memory hole that slowly consumes more and more memory... I'm not sure where the bug is located but if you figure it out leave me a message on styck@xs4all.nl, thanks!

Spam Detection script

At one point, the bots on IRC that would PM links to trojan horses became so annoying that I decided to write a script that automatically kicks them out of the channel. It's actually pretty advanced if I may say so myself.

Features:
-o- Rules a la Spamassassin to determine if a person joining a channel is actually a spam bot
-o- Each rule has a weight, allowing for extensive finetuning
-o- Fully configurable through PM's to the bot
-o- Channel specific thresholds & actions
-o- Actions are fully customizable, kicking, banning, you name it.


History / Changelists are included in the script.

Download SpamDetection Script 0.6
Download SpamDetection Script 0.5
Download SpamDetection Script 0.4
Download SpamDetection Script 0.3
Download SpamDetection Script 0.2
Download SpamDetection Script 0.1


Pickup script

In a 'pickup' game, the players first sign up, and when the player limit is reached, everybody goes to a server to play the game. A pickup script facilitates this, it allows players to sign up with !add, remove with !remove, and provides the right server information, and also shows the people who are signed up in the topic.

Features:
-o- Fully customizable through PM's to the bot
-o- Supports currently 4 different pickup servers
-o- !top10 will show the alltime top10 players, who played the most matches
-o- !lastgame will show the time since the last game was played
-o- Other commands: !need, !promote, !ban, !unban etc
-o- Also comes with free PHP pages to show pickup statistics and graphs!!!


History / Changelists are included in the script.

Download Pickup Script 0.5
Download Pickup Script 0.3
Download Pickup Script 0.2
Download Pickup Script 0.1