Limnoria-doc/use/plugins/shrinkurl.rst
2011-10-28 22:49:04 +02:00

2.8 KiB

The ShrinkUrl plugin

shrinkurl xrl <url>

Returns an xrl.us version of <url>.

shrinkurl tiny <url>

Returns a TinyURL.com version of <url>

shrinkurl ln <url>

Returns an ln-s.net version of <url>.

Configuration

supybot.plugins.ShrinkUrl.default

Default value: ln

Determines what website the bot will use when shrinking a URL.

supybot.plugins.ShrinkUrl.minimumLength

Default value: 48

The minimum length a URL must be before the bot will shrink it.

supybot.plugins.ShrinkUrl.nonSnarfingRegexp

Default value: None

Determines what URLs are to be snarfed; URLs matching the regexp given will not be snarfed. Give the empty string if you have no URLs that you'd like to exclude from being snarfed.

supybot.plugins.ShrinkUrl.outFilter

Default value: False

Determines whether the bot will shrink the URLs of outgoing messages if those URLs are longer than supybot.plugins.ShrinkUrl.minimumLength.

supybot.plugins.ShrinkUrl.serviceRotation

Default value: []

If set to a non-empty value, specifies the list of services to rotate through for the shrinkSnarfer and outFilter.

supybot.plugins.ShrinkUrl.shrinkSnarfer

Default value: False

Determines whether the shrink snarfer is enabled. This snarfer will watch for URLs in the channel, and if they're sufficiently long (as determined by supybot.plugins.ShrinkUrl.minimumLength) it will post a smaller URL from either ln-s.net or tinyurl.com, as denoted in supybot.plugins.ShrinkUrl.default.

supybot.plugins.ShrinkUrl.shrinkSnarfer.showDomain

Default value: True

Determines whether the snarfer will show the domain of the URL being snarfed along with the shrunken URL.

supybot.plugins.ShrinkUrl.bold

Default value: True

Determines whether this plugin will bold certain portions of its replies.

supybot.plugins.ShrinkUrl.public

Default value: True

Determines whether this plugin is publicly visible.