Class: Hibot::Spotify
- Inherits:
-
Object
show all
- Includes:
- API::Spotify, Cinch::Plugin
- Defined in:
- lib/hibot/plugins/spotify.rb
Constant Summary
API::Spotify::PERMITTED_TYPES, API::Spotify::URI_REGEX, API::Spotify::WS_URL
Instance Method Summary
collapse
#parse_uri, #search
Instance Method Details
#parse(m) ⇒ Object
14
15
16
17
|
# File 'lib/hibot/plugins/spotify.rb', line 14
def parse(m)
parsed_uri = parse_uri(m.message)
m.reply parsed_uri unless parsed_uri.nil?
end
|
#query(m) ⇒ Object
9
10
11
12
|
# File 'lib/hibot/plugins/spotify.rb', line 9
def query(m)
result = search(m.message)
m.reply result
end
|