From 5388cba6e401bdb78455973e3d84761b1e4e71aa Mon Sep 17 00:00:00 2001 From: Interitio Date: Thu, 4 Sep 2025 02:52:47 +1000 Subject: [PATCH] fix: Typos --- koans/lib.py | 2 +- koans/twitch/component.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/koans/lib.py b/koans/lib.py index 4217ef5..8d94582 100644 --- a/koans/lib.py +++ b/koans/lib.py @@ -12,7 +12,7 @@ def minify(content: str, maxlength: int, strip: Optional[str] = ' ', newlines: s new_content = content[maxlength-3] + '...' else: new_content = content - return content + return new_content def utc_now(): diff --git a/koans/twitch/component.py b/koans/twitch/component.py index 922fb7f..5a3dc8a 100644 --- a/koans/twitch/component.py +++ b/koans/twitch/component.py @@ -84,8 +84,6 @@ class KoanComponent(cmds.Component): await ctx.reply(f"Koan #{koan.koanlabel} created!") - # TODO: Error message on signature failure - @koans.command(name='edit', aliases=['update',]) @cmds.is_moderator() async def koans_edit(self, ctx: cmds.Context, label: int, *, new_content: str): @@ -141,7 +139,7 @@ class KoanComponent(cmds.Component): koans = await self.koan.get_community_koans(communityid=cid) if koans: koan = random.choice(koans) - formatted = f"Koan #{koan.koanlabel}: {koan.message}" + formatted = f"Koan #{koan.koanlabel}: {koan.content}" parts = [formatted[i: i:500] for i in range(0, len(formatted), 500)] for part in parts: await ctx.reply(part)