Otterbot
A loveable little chat bot for IndieAndSuch on Plug.dj
Getting Started
$ npm install
Development
Otterbot uses a series of environment variables that will need to be set in order for both the Plug.dj & LastFm APIs to work properly. If you would like the variables for otterbot specifically, please contact me, but here's the list them:
auth_email
Account email for plug.djauth_password
Account password for plug.djlastfm_api_key
API key for LastFmlastfm_secret
Secret key for LastFmlastfm_user
Username on LastFmlastfm_token
LastFm authentication token. This is only needed if you do not already have asession_key
. Bot will runlastfm.authentication
using this token and log the session key out to the console, which should be stored in the variable listed belowlastfm_session_key
LastFm session key. This is required for making scrobble calls.
To run otterbot locally, simply start up the node process:
$ node index.js
Testing
Mocha tests are run through grunt to generate istanbul coverage data. You can view the test output with the following terminal command:
$ grunt mocha_istanbul
Contributing
To contribute a change or feature to otterbot, please fork the repository and submit your changes via Pull Request. New features should be tested with at least 95% coverage. If you have any quetions, please feel free to open an issue here on Github.