3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-02 17:09:29 +01:00
dbot/modules/link
Scritches 86d0a6f31b Link module title regexp fix
Fix for sites that use <\/title> instead of </title> to close their title elements.
2018-04-14 13:38:28 -04:00
..
config.json fix syntax error in link.config 2013-05-22 17:27:40 +00:00
link.js Link module title regexp fix 2018-04-14 13:38:28 -04:00
README.md entity decoding for link module 2013-03-09 17:02:33 +00:00
strings.json TRANSLATIONS FROM ROI 2013-10-29 21:39:26 +00:00

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

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 definition for the headword provided. #### ~xkcd Returns a link to the xkcd comic specified, or the latest one if a comic is not given. Use * to return a link to a random comic.

Requirements