This commit is contained in:
2024-11-28 10:48:30 +01:00
parent b513704a3d
commit 194674705e
2 changed files with 44 additions and 25 deletions
+4 -4
View File
@@ -87,20 +87,20 @@ async def get_stats(client, ctx, history_limit):
async def discord_friendly_reply(ctx, message_content, file=None):
if len(message_content) < 999:
await ctx.reply(message_content, file)
await ctx.reply(message_content)
else:
if file:
await ctx.reply("Attachment:", file=file)
while len(message_content) > 999:
await ctx.reply(message_content[:999])
message_content = message_content[999:]
if file:
await ctx.reply("Attachment:", file=file)
async def discord_friendly_send(ctx, message_content, file=None):
if len(message_content) < 999:
await ctx.send(message_content, file)
else:
if file:
await ctx.reply("Attachment:", file=file)
await ctx.send("Attachment:", file=file)
while len(message_content) > 999:
await ctx.send(message_content[:999])
message_content = message_content[999:]