fartpiss people on join on spb5k server

This commit is contained in:
loicbersier 2019-10-05 19:26:43 +02:00
parent a7a3056b16
commit 2ffe5e7e09

View file

@ -11,6 +11,11 @@ class guildMemberAddListener extends Listener {
}
async exec(guild) {
if (guild.id == 240843640375607296) {
guild.members.get(guild.user.id).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']);