wanha project is a combination of Perl-script to run a bot on IRC to watch the channel for URLs and another script to run as a web-interface on a HTTP-server.
The bot will watch over the channel, friendly and warmly keeping the conversation going, discreetly discouraging people not to paste already pasted URLs again.
wanha currently uses PostgreSQL as a database for persistent information, and
module "Pg" as the API. Using any other SQL-database should be trivial by
modifying db.pl which houses the API to access the data. In addition to Pg,
wanha also uses module "Socket". Both should be trivial to find and install if
not installed already.
The web-interface obviously requires a set-up HTTP-server that can run external
application (CGI). Only "Socket" module should be required for the
web-interface. The web-interface can take advantage for mod_rewrite.pl for
pretty URLs but this is not required.
wanha will keep track of pasted links for given channels. The bot remembers who
pasted the link first and when. When pasted again, constructive guidance to
avoid making the same mistake again is given discreetly to the user. If a link
is known to be already seen, this can be told to the bot by placing "w:" or
"w!" on front of the link (like "w! http://www.google.com/intl/en/").
When a URL is first pasted it will be inserted in the database. When the same
URL is pasted again, things get nasty.
a) User who originally pasted the URL will be rewarded with a fame point.
b) If the URL was pasted without "w!" marker, user who pasted the URL again
will receive a shame point.
c) If the URL was pasted with "w!" marker, user will receive a wanha point.
- To prevent abuse of using "w!" marker, pasting previously unseen URL with the
"w!" marker will be awarded with a cheat score.
- User who originally pasted the URL can be repaste it again as many times as
(s)he wants. No points are accumulated by this.
What's New in This Release: [ read full changelog ]
· This release fixes minor localization errors and improves URL catching a bit.