From 809d3eb28fe8176043696483b26f1ddbcf341cf6 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 6 Apr 2007 09:15:41 +0000 Subject: [PATCH] lastfm plugin: overlong artisti descriptions are truncated; artist events can be searched without prefix --- data/rbot/plugins/lastfm.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb index 358137d2..49ef9fed 100644 --- a/data/rbot/plugins/lastfm.rb +++ b/data/rbot/plugins/lastfm.rb @@ -137,7 +137,7 @@ class LastFmPlugin < Plugin wiki = $1.ircify_html end - m.reply "%s : %s\n%s" % [title, url, wiki] + m.reply "%s : %s\n%s" % [title, url, wiki], :overlong => :truncate else m.reply "no data found on #{artist}" return @@ -176,6 +176,7 @@ end plugin = LastFmPlugin.new plugin.map 'lastfm event[s] in *location', :action => :find_event plugin.map 'lastfm event[s] by *who', :action => :find_event +plugin.map 'lastfm event[s] [for] *who', :action => :find_event plugin.map 'lastfm artist *who', :action => :find_artist plugin.map 'lastfm group *who', :action => :find_artist plugin.map 'lastfm track *dunno', :action => :find_track -- 2.39.5