fix: Typos

This commit is contained in:
2025-09-04 02:52:47 +10:00
parent 89173f1676
commit 5388cba6e4
2 changed files with 2 additions and 4 deletions

View File

@@ -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():

View File

@@ -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)