Fix greetings not being sent after 2.9.0

Greetings broke when multi-server support was added.
This commit fixes that.
master
Dragory 2018-05-14 19:49:15 +03:00
parent 999bccd7aa
commit 445659d592
1 changed files with 2 additions and 2 deletions

View File

@ -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 => {