From 9f92bfd442f4556a97f88f9a8335c599ac2af3ad Mon Sep 17 00:00:00 2001 From: Paillat Date: Wed, 30 Nov 2022 17:12:51 +0100 Subject: [PATCH] Added private message send when transcript --- code/code.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/code.py b/code/code.py index 63e3cea..ebcc789 100644 --- a/code/code.py +++ b/code/code.py @@ -361,6 +361,8 @@ async def transcript(ctx): f = open("transcript.txt", "w") f.write(transcript) f.close() +#send the file in a private message to the user who ran the command + await ctx.author.send(file=discord.File("transcript.txt")) await ctx.respond(file=discord.File("transcript.txt")) #these are debug commands and should not be used in production @bot.command(name="say", description="Say a message")