3
0
mirror of https://github.com/reality/dbot.git synced 2026-04-26 03:58:07 +02:00
reality 8e8953999d Various database branch fixes [#331]:
* Admin module doesn't try to use reload string when it's not there.
* Fix dent event hookin
* Fix quote retrieval (two ~q definitions and no false check before interpolate)
* Change databankerised modules to use redis for testing
2013-04-22 14:22:35 +00:00
..
2013-04-12 22:38:00 +00:00
2013-03-09 17:02:33 +00:00
2013-04-20 00:05:46 +02:00

## Link

Retrieves page titles.

### Description

This module stores the last posted link in each channel, and provides a command
for retrieving the title of a given link or the last posted link in the channel.

### Configuration

#### autoTitle: false
If this is set to true, the bot will automatically post the titles of links as
they are posted in the channel.

### Commands

#### ~title [link]
If called with a link, the bot will attempt to find and return the title of that
page. If called without a link, the bot will attempt the same on the last link
which was posted in the current channel.
#### ~ud [headword]
Returns the first [Urban Dictionary](http://www.urbandictionary.com) definition for the headword provided.
#### ~xkcd <comic ID>
Returns a link to the [xkcd](http://xkcd.com) comic specified, or the latest one if a comic is not given. Use '*' to return a link to a random comic.

### Requirements
* [node-ent](https://github.com/substack/node-ent)