Compare commits
1 Commits
a675fc8c18
...
d240612183
| Author | SHA1 | Date | |
|---|---|---|---|
| d240612183 |
@ -43,7 +43,7 @@ class ListenBrainz(callbacks.Plugin):
|
||||
threaded = True
|
||||
|
||||
def __init__(self, irc):
|
||||
self.__parent = super(ListenBrainz, self)
|
||||
self.__parent = super(Tripsit, self)
|
||||
self.__parent.__init__(irc)
|
||||
self.client = liblistenbrainz.ListenBrainz()
|
||||
self.DISPLAY_LIMIT = 3
|
||||
@ -65,7 +65,6 @@ class ListenBrainz(callbacks.Plugin):
|
||||
)
|
||||
irc.reply(response)
|
||||
|
||||
|
||||
@wrap(["text"])
|
||||
def listencount(self, irc, msg, args, user):
|
||||
"""<user>
|
||||
@ -79,7 +78,6 @@ class ListenBrainz(callbacks.Plugin):
|
||||
response = (f"{user} has recorded listening to {count} tracks")
|
||||
irc.reply(response)
|
||||
|
||||
|
||||
@wrap(["text"])
|
||||
def tracks(self, irc, msg, args, user):
|
||||
"""<user>
|
||||
@ -100,7 +98,7 @@ class ListenBrainz(callbacks.Plugin):
|
||||
irc.reply(f"{user} has no recorded tracks.")
|
||||
return
|
||||
|
||||
top_tracks = recordings[:DISPLAY_LIMIT]
|
||||
top_tracks = recordings[:3]
|
||||
header = f"{user}'s Top {len(top_tracks)} Tracks (Total unique tracks: {total_tracks:,}):"
|
||||
irc.reply(header)
|
||||
for i, track in enumerate(top_tracks):
|
||||
@ -119,7 +117,6 @@ class ListenBrainz(callbacks.Plugin):
|
||||
)
|
||||
irc.reply(response)
|
||||
|
||||
|
||||
@wrap(["text"])
|
||||
def albums(self, irc, msg, args, user):
|
||||
"""<user>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user