2017 © Pedro Peláez
 

library phergie-irc-plugin-react-audioscrobbler

Phergie plugin for returning the current or last played song for a user on last.fm or libre.fm

image

chrismou/phergie-irc-plugin-react-audioscrobbler

Phergie plugin for returning the current or last played song for a user on last.fm or libre.fm

  • Thursday, March 24, 2016
  • by chrismou
  • Repository
  • 1 Watchers
  • 0 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Last.fm / Libre.fm plugin for Phergie

Phergie plugin for returning the current or last played song for a user on last.fm or libre.fm., (*1)

Build Status Test Coverage Code Climate Buy me a beer, (*2)

About

Phergie plugin for returning the current or last played song for a user on last.fm or libre.fm. By default, the plugin responds to the commands "lastfm username" and "librefm username" (without the quotes)., (*3)

Install

The recommended method of installation is through composer., (*4)

composer require chrismou/phergie-irc-plugin-react-audioscrobbler

See Phergie documentation for more information on installing and enabling plugins., (*5)

Configuration

For last.fm lookups, you need a free API key which you can get from here. LibreFM works out of the box., (*6)

new \Chrismou\Phergie\Plugin\Audioscrobbler\Plugin(array(
    'lastfm' => 'YOUR_API_KEY'
))

CommandHelp compatibility

The plugin activates lastfm when it sees you've included a lastfm config, so in order to get CommandHelp to show the plugin in it's command list , you'll need to pass a mock value:, (*7)

new \Phergie\Irc\Plugin\React\CommandHelp\Plugin(array(
    'plugins' => array(
        new \Chrismou\Phergie\Plugin\Audioscrobbler\Plugin(array(
            'lastfm' => true
        )),
    )
))

Adding this line to your CommandHelp config should force the lastfm command to be displayed., (*8)

Tests

To run the unit test suite:, (*9)

curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit

If you use docker, you can also run the test suite against all supported PHP versions:, (*10)

./vendor/bin/dunit

License

Released under the BSD License. See LICENSE., (*11)

The Versions

12/01 2015

1.0.0

1.0.0.0 http://github.com/chrismou/phergie-irc-plugin-react-audioscrobbler

Phergie plugin for returning the current or last played song for a user on last.fm or libre.fm

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie