summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/lastfm.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb
index 29f85aab..0600c106 100644
--- a/data/rbot/plugins/lastfm.rb
+++ b/data/rbot/plugins/lastfm.rb
@@ -288,10 +288,12 @@ class LastFmPlugin < Plugin
end
first = doc.root.elements["artist"]
artist = first.elements["name"].text
+ url = first.elements["url"].text
playcount = first.elements["stats"].elements["playcount"].text
listeners = first.elements["stats"].elements["listeners"].text
summary = first.elements["bio"].elements["summary"].text
- m.reply _("%{b}%{a}%{b} has been played %{c} times and is being listened to by %{l} people") % {:b => Bold, :a => artist, :c => playcount, :l => listeners}
+ m.reply _("%{b}%{a}%{b} <%{u}> has been played %{c} times and is being listened to by %{l} people") % {
+ :b => Bold, :a => artist, :u => url, :c => playcount, :l => listeners}
m.reply summary.ircify_html
end