fix: Typos
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user