Added private message send when transcript

This commit is contained in:
Paillat
2022-11-30 17:12:51 +01:00
parent a42a6e617b
commit 9f92bfd442

View File

@@ -361,6 +361,8 @@ async def transcript(ctx):
f = open("transcript.txt", "w") f = open("transcript.txt", "w")
f.write(transcript) f.write(transcript)
f.close() 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")) await ctx.respond(file=discord.File("transcript.txt"))
#these are debug commands and should not be used in production #these are debug commands and should not be used in production
@bot.command(name="say", description="Say a message") @bot.command(name="say", description="Say a message")