how to do message in bot when it joins a server js 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:`)
});