Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelchadwick/lita-freesound
Lita handler that interfaces with Freesound.org
https://github.com/michaelchadwick/lita-freesound
audio freesound fx handler lita lita-freesound sound
Last synced: about 1 month ago
JSON representation
Lita handler that interfaces with Freesound.org
- Host: GitHub
- URL: https://github.com/michaelchadwick/lita-freesound
- Owner: michaelchadwick
- License: mit
- Created: 2016-03-08T17:38:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T15:51:14.000Z (over 3 years ago)
- Last Synced: 2024-10-31T13:28:19.185Z (about 2 months ago)
- Topics: audio, freesound, fx, handler, lita, lita-freesound, sound
- Language: Ruby
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lita-freesound
`lita-freesound` is a [Lita](http://lita.io) handler that searches [Freesound.org](http://freesound.org)'s multitudes of sounds and returns the top hit.
## Installation
Add `lita-freesound` to your Lita instance's `Gemfile`:
``` ruby
gem "lita-freesound"
```## Configuration
### Required attributes
* `api_key` (String) - The bot's Freesound API key. Get one [here](http://www.freesound.org/apiv2/apply).
Add a line to your `lita_config.rb` with your Freesound API Key.
``` ruby
Lita.configure do |config|
...
config.handlers.freesound.api_key = "FREESOUND_API_KEY_HERE"
...
end
```### Testing
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
```## License
[MIT](http://opensource.org/licenses/MIT)