From 676052b3a3091468f34bef91c68826f1081e97be Mon Sep 17 00:00:00 2001 From: samari-k <safi.kuehn@gmx.de> Date: Thu, 23 Sep 2021 21:48:22 +0200 Subject: [PATCH] debugged "link nicht gefunden" --- cogs/links.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/links.py b/cogs/links.py index ac9b451..33456da 100644 --- a/cogs/links.py +++ b/cogs/links.py @@ -106,7 +106,7 @@ class Links(commands.Cog): if channel_links := self.links.get(str(ctx.channel.id)): if topic_links := channel_links.get(topic): - if topic_links.get(title): + if title in topic_links: topic_links.pop(title) if not topic_links: channel_links.pop(topic) @@ -160,6 +160,7 @@ class Links(commands.Cog): ) @cmd_links.command(name="edit-link", aliases=["el"]) async def cmd_edit_link(self, ctx, topic, title, new_title, new_topic=None, new_link=None): + topic = topic.lower() if not new_topic: new_topic = topic -- GitLab