aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot.js19
1 files changed, 9 insertions, 10 deletions
diff --git a/bot.js b/bot.js
index c9c0202..0cc389d 100644
--- a/bot.js
+++ b/bot.js
@@ -321,16 +321,15 @@ client.on('message', message => {
}
});
-client.on('guildMemberAdd', usr => {
-
- var embed = new Discord.RichEmbed();
-
- embed.setAuthor("Victor Tran", "https://yt3.ggpht.com/-Iuf1v4-SSSM/AAAAAAAAAAI/AAAAAAAAAAA/89IYeQw--wU/photo.jpg");
- embed.setColor("#0096FF");
- embed.setDescription(":wave: **HEY HEY HEY**! Welcome " + usr.displayName + " to AstrelTaser Cantral! Before you start, we recommend you check the rules over at https://docs.google.com/spreadsheets/d/1JUxm3ykqCWCagXZqGo390fO9Fl7IpGcnHmCfdrdBx8w/edit?usp=drivesdk. Thanks, and enjoy the community. - Victor");
- embed.setURL("https://docs.google.com/spreadsheets/d/1JUxm3ykqCWCagXZqGo390fO9Fl7IpGcnHmCfdrdBx8w/edit?usp=drivesdk");
-
- usr.sendEmbed(embed)
+
+client.on('guildCreate', guild => {
+ console.log(`[>] I just joined ${guild.name}. This server have ${guild.memberCount} members.`)
+
+});
+
+client.on('guildDelete', guild => {
+ console.log(`[>] I was removed from ${guild.name}.`)
+
});
client.login(config.token).catch(