mirror of
https://github.com/utmapp/BluBot.git
synced 2026-12-01 07:53:17 -10:00
13 lines
379 B
JavaScript
13 lines
379 B
JavaScript
const { Events } = require('discord.js')
|
|
const config = require('../utils/config')
|
|
|
|
module.exports = {
|
|
event: Events.GuildMemberRemove,
|
|
async listener(event) {
|
|
if (!config.get().channels.welcome) return
|
|
const channel = await event.guild.channels.fetch(config.get().channels.welcome)
|
|
if (!channel) return
|
|
channel.send(`Goodbye <@${event.user.id}> 👋`)
|
|
}
|
|
}
|