From: Raine Virta Date: Thu, 12 Feb 2009 23:54:16 +0000 (+0200) Subject: last.fm plugin: first argument of taste comparison now optional X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=e58ce0daab3bf44ec40120196f8177685c4c1b04;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git last.fm plugin: first argument of taste comparison now optional --- diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb index c112c167..9b508f01 100644 --- a/data/rbot/plugins/lastfm.rb +++ b/data/rbot/plugins/lastfm.rb @@ -86,7 +86,7 @@ class LastFmPlugin < Plugin when :who _("lastfm who [] => show who is at last.fm. if is empty, show who you are at lastfm.") when :compare - _("lastfm compare => show musical taste compatibility between nick1 and nick2.") + _("lastfm compare [] => show musical taste compatibility between nick1 (or user if omitted) and nick2") else _("lastfm [] => show your or 's now playing track at lastfm. np [] => same as 'lastfm'. other topics: events, artist, album, track, now, set, who, compare") end @@ -406,7 +406,8 @@ plugin.map 'lastfm set username :who', :action => :set_user, :thread => true plugin.map 'lastfm set verb *present, *past', :action => :set_verb, :thread => true plugin.map 'lastfm who :who', :action => :get_user, :thread => true plugin.map 'lastfm who', :action => :get_user, :thread => true -plugin.map 'lastfm compare :user1 :user2', :action => :tasteometer, :thread => true +plugin.map 'lastfm compare to :user2', :action => :tasteometer, :thread => true +plugin.map 'lastfm compare [:user1] [to] :user2', :action => :tasteometer, :thread => true plugin.map 'np', :action => :now_playing, :thread => true plugin.map "lastfm [user] :action [:user]", :thread => true, :requirements => { :action =>