Edoardo Sabadelli > Bot-BasicBot-Pluggable-Module-Spotify-0.01 > Bot::BasicBot::Pluggable::Module::Spotify

Download:
Bot-BasicBot-Pluggable-Module-Spotify-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Bot::BasicBot::Pluggable::Module::Spotify - Show relevant information when a Spotify URI is detected in a channel

VERSION ^

Version 0.01

SYNOPSIS ^

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.

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

METHODS ^

help

Returns the string sent to the channel when someone asks the bot help Spotify.

said

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.

parse_spotify_uris

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.

SEE ALSO ^

Bot::BasicBot::Pluggable, Net::Spotify, XML::TreePP

AUTHOR ^

Edoardo Sabadelli, <edoardo at cpan.org>

BUGS ^

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.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Bot::BasicBot::Pluggable::Module::Spotify

You can also look for information at:

ACKNOWLEDGEMENTS ^

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 & LICENSE ^

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.

syntax highlighting: