13 Aug 2014 14:50:48 UTC
- Distribution: Bot-Backbone-Service-Web
- Module version: 0.142250
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (34 / 0 / 10)
- KwaliteeBus factor: 1
- % Coverage
- License: perl_5
- Perl: v5.10.0
- Activity24 month
- Download (10.09KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionHANENKAMP Andrew Sterling Hanenkamp
- COPYRIGHT AND LICENSE
Bot::Backbone::Service::Web::LinkTitle - Retrieve the titles of links pasted into chat
service link_titles => ( service => 'Web::LinkTitle' ); # in chat alice> https://metacpan.org/release/Acme-Fork-Bomb bot> Acme-Fork-Bomb-2.0 - crashes your program and probably your system - metacpan.org
Whenever someone pasts a link to a chat the bot is monitoring, the bot will use URI::Title to find the title or description of the linked document and report it back to the chat.
This monitors all chats and looks for links in them. It locates URLs in the messages using URI::Find. When a link is found, it is checked using URI::Title and whatever that module finds is reported to the chat.
This is a list of regular expressions used to identify URLs you want to exclude from being checked. For example, you might frequently link to an internal site that requires a login that the bot does not have access to. You can keep it from trying to report the link titles of those, which would otherwise just be noise like "Please login".
Checks to see if a URL matches any of the regexes in "exclude_urls".
Helper that finds URLs in text using URI::Find.
Looks at every chat message and searches it for URLs to fetch the title/description and reports the title/description back to the chat.
Andrew Sterling Hanenkamp <firstname.lastname@example.org>
This software is copyright (c) 2014 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Bot::Backbone::Service::Web, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Bot::Backbone::Service::Web
For more information on module installation, please visit the detailed CPAN module installation guide.