txt file will be named "Anon" if the user chooses the Anon option

pull/8/head
sgoudham 4 years ago
parent ed9ed5689f
commit 7f330afdc0

@ -264,7 +264,7 @@ class Modmail(commands.Cog):
await instructions.delete() await instructions.delete()
# Determine a path for the message logs to be stored # Determine a path for the message logs to be stored
path = "cogs/modmail/{}.txt".format(payload.member.name) path = "cogs/modmail/Anon.txt"
with open(path, 'a+') as f: with open(path, 'a+') as f:
# Store the date and content of every message in the text file # Store the date and content of every message in the text file
async for message in user_channel.history(limit=300): async for message in user_channel.history(limit=300):

Loading…
Cancel
Save