From f0f7231d6b739afacc1158b3a5baed0673e1cadf Mon Sep 17 00:00:00 2001 From: Miikka Virtanen Date: Wed, 21 Dec 2016 04:36:04 +0200 Subject: [PATCH] Show more info in modmail thread closure notification --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index d48a1ad..8a149b4 100644 --- a/index.js +++ b/index.js @@ -377,7 +377,10 @@ bot.registerCommand('close', (msg, args) => { getRandomLogFile(channelInfo.userId).then(logfile => { fs.writeFile(getLogFilePath(logfile), log, {encoding: 'utf8'}, err => { getLogFileUrl(logfile).then(logurl => { - bot.createMessage(modMailGuild.id, `Log of modmail thread with ${channelInfo.name}:\n<${logurl}>`); + const closeMessage = `Modmail thread with ${channelInfo.name} (${channelInfo.userId}) was closed by ${msg.author.mention} +Logs: <${logurl}>`; + + bot.createMessage(modMailGuild.id, closeMessage); delete modMailChannels[channelInfo.userId]; msg.channel.delete();