Cleaned up repo and separated both bots into their respective folders
This commit is contained in:
parent
5414de60ca
commit
a9fda1fcb7
3134 changed files with 382980 additions and 31 deletions
17
sidBot-js/welcome.js
Normal file
17
sidBot-js/welcome.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
module.exports = client => {
|
||||
|
||||
client.on("guildMemberAdd", member => {
|
||||
|
||||
const channelID = 'X';
|
||||
|
||||
console.log(member)
|
||||
|
||||
const message = `**Welcome to the server, <@${member.id}>!**`;
|
||||
|
||||
const channel = member.guild.channels.cache.get(channelID);
|
||||
|
||||
channel.send(message);
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
Reference in a new issue