(twitch): Fix koan display.
This commit is contained in:
@@ -142,6 +142,6 @@ class KoanComponent(cmds.Component):
|
|||||||
await ctx.reply("This channel doesn't have any koans!")
|
await ctx.reply("This channel doesn't have any koans!")
|
||||||
if koan:
|
if koan:
|
||||||
formatted = f"Koan #{koan.koanlabel}: {koan.content}"
|
formatted = f"Koan #{koan.koanlabel}: {koan.content}"
|
||||||
parts = [formatted[i: i:500] for i in range(0, len(formatted), 500)]
|
parts = [formatted[i : i+500] for i in range(0, len(formatted), 500)]
|
||||||
for part in parts:
|
for part in parts:
|
||||||
await ctx.reply(part)
|
await ctx.reply(part)
|
||||||
|
|||||||
Reference in New Issue
Block a user