Sha256: fe2c7af615802e5fb10438c8983e0d3f10e80c08719e4d53564c11b983277b64
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
module Hibot class Spotify include Cinch::Plugin include API::Spotify match /ssearch/, {method: :query} match API::Spotify::URI_REGEX, {method: :parse, use_prefix: false} def query(m) result = search(m.message) m.reply result end def parse(m) parsed_uri = parse_uri(m.message) m.reply parsed_uri unless parsed_uri.nil? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hibot-0.0.4 | lib/hibot/plugins/spotify.rb |
hibot-0.0.2 | lib/hibot/plugins/spotify.rb |