This commit is contained in:
Isaac (eartharoid)
2020-08-25 17:06:48 +01:00
parent 59ffa7056d
commit 097602b993
3 changed files with 15 additions and 13 deletions

View File

@@ -149,7 +149,11 @@ module.exports = {
}];
}
if (fs.existsSync(`user/transcripts/raw/${ticket.get('channel')}.log`))
if (
fs.existsSync(`user/transcripts/raw/${ticket.get('channel')}.log`)
&&
fs.existsSync(`user/transcripts/raw/entities/${ticket.get('channel')}.json`)
)
embed.addField('Web archive', `${await archive.export(Ticket, channel)}`);