woomy/src/events/guildCreate.js

18 lines
578 B
JavaScript
Raw Normal View History

2020-01-25 10:02:43 +00:00
const Discord = require("discord.js");
const chalk = require("chalk");
module.exports = (client, guild) => {
client.settings.ensure(guild.id, client.config.defaultSettings);
if(client.devmode === true) return;
channel = client.channels.get("458896120639127552");
let embed = new Discord.RichEmbed();
embed.setColor("#F38159");
embed.setAuthor("Joined a new server:")
embed.setDescription(` Name: \`${guild.name}\`\n Size: \`${guild.members.size}\``)
embed.setFooter(`I'm now in ${client.guilds.size} servers!`)
channel.send(embed);
};