Bot::BasicBot::Pluggable::Module::Spotify - Show relevant information when a Spotify URI is detected in a channel
Version 0.01
Simply load this plugin in your Bot::BasicBot::Pluggable-based IRC bot. When someone writes a Spotify URI in an IRC channel, the plugin does a lookup for that URI and shows back the relevant information.
Bot::BasicBot::Pluggable
Example:
<user1> check out this song, man! spotify:track:7sOBuRK26Ov7CR5fRSR7Om <bot> spotify:track:7sOBuRK26Ov7CR5fRSR7Om -> Track: Surf Rider - LP Version, \ Album: Surf Rider!, Artist: The Lively Ones <user2> i know that one, me <3
Returns the string sent to the channel when someone asks the bot help Spotify.
help Spotify
Listens for every message in the channel and detects Spotify URIs. If the URIs are valid, a lookup is performed and the relevant information are sent back in the channel.
Extracts the Spotify URIs from the message, performs the lookup using Net::Spotify and extracts the relevant information from the XML response. The message sent back in the channel is formatted depending on the URI type.
Bot::BasicBot::Pluggable, Net::Spotify, XML::TreePP
Edoardo Sabadelli, <edoardo at cpan.org>
<edoardo at cpan.org>
Please report any bugs or feature requests to bug-bot-basicbot-pluggable-module-spotify at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Bot-BasicBot-Pluggable-Module-Spotify. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-bot-basicbot-pluggable-module-spotify at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Bot::BasicBot::Pluggable::Module::Spotify
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Bot-BasicBot-Pluggable-Module-Spotify
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Bot-BasicBot-Pluggable-Module-Spotify
CPAN Ratings
http://cpanratings.perl.org/d/Bot-BasicBot-Pluggable-Module-Spotify
Search CPAN
http://search.cpan.org/dist/Bot-BasicBot-Pluggable-Module-Spotify/
This product uses a SPOTIFY API but is not endorsed, certified or otherwise approved in any way by Spotify. Spotify is the registered trademark of the Spotify Group.
Copyright 2010 Edoardo Sabadelli, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Bot::BasicBot::Pluggable::Module::Spotify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::BasicBot::Pluggable::Module::Spotify
CPAN shell
perl -MCPAN -e shell install Bot::BasicBot::Pluggable::Module::Spotify
For more information on module installation, please visit the detailed CPAN module installation guide.