lita-freesound
lita-freesound is a Lita handler that searches Freesound.org's multitudes of sounds and returns the top hit.
Installation
Add lita-freesound to your Lita instance's Gemfile:
gem "lita-freesound"Configuration
Required attributes
-
api_key(String) - The bot's Freesound API key. Get one here.
Add a line to your lita_config.rb with your Freesound API Key.
Lita.configure do |config|
...
config.handlers.freesound.api_key = "FREESOUND_API_KEY_HERE"
...
endTesting
To run rspec's tests, please add your Freesound API key to an environment variable called FREESOUND_KEY.
Usage
You: Lita, freesound cowbell
Lita: Cowbell - http://www.freesound.org/data/previews/75/75338_708954-hq.mp3