rateless_bot 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rateless_bot/plugins/lastfm.rb +5 -1
- data/lib/rateless_bot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e0cef5ee4dad023b92369f90d375fa5b3ebb50b
|
4
|
+
data.tar.gz: 4934a189779b1bb984420b632a8091fb47e1f01e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cc86e469814384f1d547383f6bcfeb848c9648338b123ed92ca12ff84da5e6656b3879e86323e9a58fe180cca766ea61e05231781eb6499518c7195e582cde3
|
7
|
+
data.tar.gz: 48981a9d9c651b8b90f508a61d2394dc14086ac22e756ba75651884d92218cf5bb0b7421f4235f1aca3b89633eb0dec534e7b9864bef5b14b45e1bb8aea8e86c
|
@@ -2,6 +2,10 @@ require 'cinch'
|
|
2
2
|
require 'lastfm'
|
3
3
|
|
4
4
|
class LastFM
|
5
|
+
def help
|
6
|
+
'!lastfm USERNAME - get a given user\'s most recently scrobbled track'
|
7
|
+
end
|
8
|
+
|
5
9
|
include Cinch::Plugin
|
6
10
|
|
7
11
|
def initialize(*args)
|
@@ -15,7 +19,7 @@ class LastFM
|
|
15
19
|
user = m.message.split('!lastfm ')[1]
|
16
20
|
scrobbles = @lastfm.user.get_recent_tracks(:user => user)
|
17
21
|
track = scrobbles[0]
|
18
|
-
|
22
|
+
|
19
23
|
|
20
24
|
m.reply make_track_str(track)
|
21
25
|
end
|
data/lib/rateless_bot/version.rb
CHANGED