From e58ce0daab3bf44ec40120196f8177685c4c1b04 Mon Sep 17 00:00:00 2001 From: Raine Virta Date: Fri, 13 Feb 2009 01:54:16 +0200 Subject: [PATCH] last.fm plugin: first argument of taste comparison now optional --- data/rbot/plugins/lastfm.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 => -- 2.39.5