summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/lastfm.rb
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2009-02-13 01:54:16 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-02-14 22:24:17 +0100
commite58ce0daab3bf44ec40120196f8177685c4c1b04 (patch)
treebc71ed37dd74f70a886b8b5cad64eec3690d5bd3 /data/rbot/plugins/lastfm.rb
parent449b8416775bd44f1d13c7e8414932fa8b18eecb (diff)
last.fm plugin: first argument of taste comparison now optional
Diffstat (limited to 'data/rbot/plugins/lastfm.rb')
-rw-r--r--data/rbot/plugins/lastfm.rb5
1 files 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 [<nick>] => show who <nick> is at last.fm. if <nick> is empty, show who you are at lastfm.")
when :compare
- _("lastfm compare <nick1> <nick2> => show musical taste compatibility between nick1 and nick2.")
+ _("lastfm compare [<nick1>] <nick2> => show musical taste compatibility between nick1 (or user if omitted) and nick2")
else
_("lastfm [<user>] => show your or <user>'s now playing track at lastfm. np [<user>] => 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 =>