mirror of
https://github.com/UniverseDevGroup/PokeBot.git
synced 2025-01-23 09:51:58 -05:00
Merge branches 'master' and 'master' of https://github.com/PokeWorld/PokeBot
This commit is contained in:
commit
6f1a9bab9e
1 changed files with 14 additions and 0 deletions
14
bot.js
14
bot.js
|
@ -63,6 +63,20 @@ bot.on('guildMemberRemove', (member) => {
|
||||||
bot.channels.get('416633835216830495').send(`**${member.user.tag}** just left. We now have ${member.guild.memberCount} members left. Aww man...`);
|
bot.channels.get('416633835216830495').send(`**${member.user.tag}** just left. We now have ${member.guild.memberCount} members left. Aww man...`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
bot.on('messageDeleteBulk', (msgs) => {
|
||||||
|
try {
|
||||||
|
const embed = new Discord.RichEmbed()
|
||||||
|
.setColor(0x00ae86)
|
||||||
|
.setTitle(`:wastebasket: ${msgs.size}`)
|
||||||
|
.setDescription(`${msgs.size} messages in *${msgs.first().channel}* were bulk deleted.`)
|
||||||
|
.setTimestamp()
|
||||||
|
.setFooter('Messages purged');
|
||||||
|
msgs.first().guild.channels.find('name', 'logs').send({ embed });
|
||||||
|
}
|
||||||
|
catch (err) {
|
||||||
|
console.error(err.stack);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
bot.on('message', (msg) => {
|
bot.on('message', (msg) => {
|
||||||
parseCommand(msg);
|
parseCommand(msg);
|
||||||
|
|
Loading…
Add table
Reference in a new issue