From 691229068f0cc0bcbe212c3e85fcb4b9610b54b5 Mon Sep 17 00:00:00 2001 From: Miikka Virtanen Date: Tue, 6 Dec 2016 00:51:32 +0200 Subject: [PATCH] Inform the mod mail server when new mod mail threads are opened --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 7edbbf9..1b9e8f3 100644 --- a/index.js +++ b/index.js @@ -103,6 +103,11 @@ bot.on('messageCreate', (msg) => { channel.createMessage(`« **${msg.author.username}#${msg.author.discriminator}:** ${msg.content}`); if (channel._wasCreated) { + bot.createMessage(modMailGuild.id, { + content: `@here New modmail thread: ${channel.mention}`, + disableEveryone: false, + }); + msg.channel.createMessage("Thank you for your message! Our mod team will reply to you here as soon as possible."); } });