make it actually work

This commit is contained in:
loicbersier 2019-10-05 19:39:08 +02:00
parent 9abf6a9a19
commit 4f68f9c466

View file

@ -11,6 +11,10 @@ class guildMemberAddListener extends Listener {
}
async exec(guild) {
if (guild.guild.id == 240843640375607296) {
guild.setNickname('fart piss');
}
if (fs.existsSync(`./welcome/${guild.guild.id}.json`)) {
let welcome = require(`../../welcome/${guild.guild.id}.json`);
const channel = this.client.channels.get(welcome['channel']);