From 445659d5929fead33e9aafd3fcbec4beb587fe8b Mon Sep 17 00:00:00 2001 From: Dragory Date: Mon, 14 May 2018 19:49:15 +0300 Subject: [PATCH] Fix greetings not being sent after 2.9.0 Greetings broke when multi-server support was added. This commit fixes that. --- src/modules/greeting.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/greeting.js b/src/modules/greeting.js index 4f1f822..557fd44 100644 --- a/src/modules/greeting.js +++ b/src/modules/greeting.js @@ -5,10 +5,10 @@ const config = require('../config'); module.exports = bot => { if (! config.enableGreeting) return; - const greetingGuildId = config.mainGuildId || config.greetingGuildId; + const greetingGuilds = config.mainGuildId; bot.on('guildMemberAdd', (guild, member) => { - if (guild.id !== greetingGuildId) return; + if (! greetingGuilds.includes(guild.id)) return; function sendGreeting(file) { bot.getDMChannel(member.id).then(channel => {