cbot: Mod_Shrunk

shrunk action
Commands
* private, public
Shorten a http:// URL anywhere on the line
Description

Lazy people have a real problem with cut and pasting things which have wrapped and actually need more cut and pastes to get the full thing.

A wrapped URL is a real pain to get all of and with CGIs passing a million state variables around URLs can get really long. When a really long URL is wrapped you've got to cut and paste and cut and go to the end of the previous paste then paste it there etc etc.

So http://shrunk.net/ was setup and it's got a really easy interface for automated things like bots so here is one.

But there's more! People are really lazy! This module will now send the shortened link to where you were going to paste it to anyway!

If you're suspicious of everything people paste and think they're trying to hide the fact that they're pasting dirty URLs you can tell the bot the shrunk.net URL and it'll tell you the real URL!

Private message the bot and prefix the URL with one of these:

%list
#channel
@group
>person
You are forced to say the shortened URL to the list/channel/group/person.
'
You are .forced to say the shortened URL! This also means that it'll be sent to whoever/whatever you're .querying to.

Prefix with anything else or not at all and the bot'll private message the shortened URL back to you.

Examples:

>BotBot 'http://www.dryfish.org/.../index.html
>BotBot @Public http://www.dryfish.org/.../index.html
/msg BotBot #pub http://www.dryfish.org/.../index.html
>BotBot >John http://www.dryfish.org/.../index.html
>BotBot %John http://www.dryfish.org/.../index.html

Warning: This feature will appear not to work if it wasn't able to shorten the URL.

$Id: mod_shrunk.m4,v 1.8 2004/02/16 16:46:05 john Exp $