From 99d14de2c11f2e4fd8cc09792e3ee703cb24c3e3 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 28 Jul 2017 15:15:42 +0000 Subject: [PATCH] Fixes --- XiaoBot.js | 2 +- commands/moderation/warn.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/XiaoBot.js b/XiaoBot.js index 2d59b1c5..2c48082e 100644 --- a/XiaoBot.js +++ b/XiaoBot.js @@ -89,7 +89,7 @@ client.on('guildMemberRemove', member => { .replace(/{{member}}/gi, member.user.username) .replace(/{{server}}/gi, member.guild.name) .replace(/{{mention}}/gi, member); - channel.send(msg || `Welcome ${member.user.username}!`); + channel.send(msg || `Bye ${member.user.username}...`); }); client.on('guildCreate', async guild => { diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index 1f3f4da8..4aad773b 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -48,7 +48,7 @@ module.exports = class WarnCommand extends Command { if (!msgs.size || !['y', 'yes'].includes(msgs.first().content.toLowerCase())) return msg.say('Aborting.'); try { const message = parseTopicMsg(modlogs.topic, 'modmessage') - .replace(/{{action}}/gi, 'warn') + .replace(/{{action}}/gi, 'warned') .replace(/{{moderator}}/gi, msg.author.tag) .replace(/{{server}}/gi, msg.guild.name); await member.send(stripIndents`