Skip to content

Commit 8fac652

Browse files
authored
Merge pull request #377 from gobo7793/fluggs
fix: lastfm quote del bug
2 parents 81e9dd7 + ac67990 commit 8fac652

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Geckarbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Geckarbot(BaseBot):
3232
Basic bot info
3333
"""
3434
NAME = "Geckarbot"
35-
VERSION = "2.16.2"
35+
VERSION = "2.16.3"
3636
PLUGIN_DIR = "plugins"
3737
CORE_PLUGIN_DIR = "coreplugins"
3838
CONFIG_DIR = "config"

plugins/lastfm/lastfm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,9 @@ async def cmd_quote_del(self, ctx):
651651
# Acquire quotes
652652
candidates = self.get_quotes(song.artist, song.title)
653653
quotes = {}
654-
for el in candidates.values():
655-
if not restricted or user.id == el["author"]:
656-
quotes[el] = el
654+
for key, quote in candidates.items():
655+
if not restricted or user.id == quote["author"]:
656+
quotes[key] = quote
657657
if not quotes:
658658
await user.send(Lang.lang(self, "quote_del_empty"))
659659
await add_reaction(ctx.message, Lang.CMDNOCHANGE)

0 commit comments

Comments
 (0)