Inform the mod mail server when new mod mail threads are opened

master
Miikka Virtanen 2016-12-06 00:51:32 +02:00
parent ed37673b7e
commit 691229068f
1 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,11 @@ bot.on('messageCreate', (msg) => {
channel.createMessage(`« **${msg.author.username}#${msg.author.discriminator}:** ${msg.content}`); channel.createMessage(`« **${msg.author.username}#${msg.author.discriminator}:** ${msg.content}`);
if (channel._wasCreated) { 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."); msg.channel.createMessage("Thank you for your message! Our mod team will reply to you here as soon as possible.");
} }
}); });