discord js send a message when bot joins code example
Example: send a message when a bot joins your server discord.js
client.on('guildCreate', guild => {
guild.systemChannel.send(`Hello, I'm LMAOBOT. Thanks for inviting me, here are a list of all my commands! :alien:`)
});