welcome messages

master
Kit Kasune 3 years ago
parent e37c6aeb27
commit 8af7a820ca
  1. 14
      events/guildMemberAdd.js
  2. 2
      events/message.js

@ -30,5 +30,19 @@ module.exports = async (client, member) => {
.setTimestamp() .setTimestamp()
); );
member.guild.channels.cache.get('782727130009698317').send(`Welcome <@${member.id}> to the Crescent's Family Discord Server!`);
client.users.fetch(member.id).then(user => {
user.send(new Discord.MessageEmbed()
.setTitle("Hey there!")
.setDescription("I'm Luno, the official mascot of the Crescent's Family Discord Server!")
.addField("To-do", "Now that you're here:\n-Read our <#808069531507228682>,\n-Grab some roles in <#808108692557398096> and <#816145028954849280>,\n\n**-And come say hi in <#782727130009698317>!** Don't be shy!\n\nEnjoy your stay here!")
.setImage("https://cdn.discordapp.com/attachments/821171356820963328/847608054483910676/20210504_154239.gif")
.setColor('2c9cb0')
.setThumbnail(client.guilds.cache.get(client.misc.neptune).iconURL({size: 2048}))
.setFooter("Luno", client.user.avatarURL())
);
}).catch(() => {});
client.user.setActivity(`over ${client.guilds.cache.get(client.misc.neptune).members.cache.size} members!`, {type: "WATCHING"}); client.user.setActivity(`over ${client.guilds.cache.get(client.misc.neptune).members.cache.size} members!`, {type: "WATCHING"});
}; };

@ -65,7 +65,7 @@ module.exports = async (client, message) => {
}); });
} }
if (message.guild && message.channel.id === "815709333107114043") {console.log('ok'); return require('../util/newpartner.js')(message, client);} if (message.guild && message.channel.id === "815709333107114043") {return require('../util/newpartner.js')(message, client);}

Loading…
Cancel
Save