2020-06-18 16:07:39 +02:00
|
|
|
const { Observer } = require('../../../interfaces/');
|
2020-06-19 20:30:30 +02:00
|
|
|
const { Util } = require('../../../../util');
|
2020-06-18 16:07:39 +02:00
|
|
|
|
2020-06-18 23:00:32 +02:00
|
|
|
const CONSTANTS = {
|
|
|
|
COLORS: {
|
|
|
|
RED: 16711680, // message delete
|
|
|
|
YELLOW: 15120384, // message edit
|
2020-06-19 20:30:30 +02:00
|
|
|
LIGHT_BLUE: 11337726, // message pin
|
|
|
|
BLUE: 479397
|
2020-06-20 22:27:23 +02:00
|
|
|
},
|
|
|
|
IMAGES: {
|
|
|
|
PREMIUM_LIMIT: 2,
|
|
|
|
UPLOAD_LIMIT: {
|
|
|
|
'0': 8,
|
|
|
|
'1': 8,
|
|
|
|
'2': 50,
|
|
|
|
'3': 100
|
|
|
|
},
|
|
|
|
MB_DIVIDER: 1024*1024
|
|
|
|
},
|
|
|
|
WEEK: 7 * 24 * 60 * 60
|
2020-06-18 23:00:32 +02:00
|
|
|
};
|
2020-06-18 16:07:39 +02:00
|
|
|
|
|
|
|
class GuildLogger extends Observer {
|
|
|
|
|
|
|
|
constructor(client) {
|
|
|
|
|
|
|
|
super(client, {
|
|
|
|
name: 'guildLogger',
|
2020-07-04 12:23:10 +02:00
|
|
|
priority: 3,
|
|
|
|
disabled: true
|
2020-06-18 16:07:39 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
this.hooks = [
|
|
|
|
['message', this.storeAttachment.bind(this)], //Attachment logging
|
|
|
|
['messageDelete', this.messageDelete.bind(this)],
|
|
|
|
['messageDeleteBulk', this.messageDeleteBulk.bind(this)],
|
|
|
|
['messageUpdate', this.messageEdit.bind(this)],
|
|
|
|
['voiceStateUpdate', this.voiceState.bind(this)],
|
|
|
|
['guildBanAdd', this.ban.bind(this)],
|
|
|
|
['guildBanRemove', this.unban.bind(this)],
|
|
|
|
['guildMemberAdd', this.memberJoin.bind(this)],
|
|
|
|
['guildMemberRemove', this.memberLeave.bind(this)],
|
|
|
|
['guildMemberUpdate', this.memberUpdate.bind(this)]
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async storeAttachment(message) {
|
|
|
|
|
2020-06-20 22:27:23 +02:00
|
|
|
const { guild, member, author, channel } = message;
|
|
|
|
if(!guild || author.bot) return;
|
|
|
|
if(!message.attachments.size) return;
|
2020-07-23 22:40:20 +02:00
|
|
|
console.log('Store call');
|
2020-06-20 22:27:23 +02:00
|
|
|
|
|
|
|
const settings = await guild.settings(),
|
2020-07-23 22:40:20 +02:00
|
|
|
setting = settings.messageLog,
|
|
|
|
roles = member.roles.cache.map((r) => r.id),
|
|
|
|
{ ignoredRoles } = setting;
|
2020-06-20 22:27:23 +02:00
|
|
|
|
|
|
|
//if(guild._settings.premium < CONSTANTS.IMAGES.PREMIUM_LIMIT) return;
|
|
|
|
if(!setting.attachments || setting.ignoredChannels.includes(channel.id)) return;
|
2020-07-23 22:40:20 +02:00
|
|
|
if(setting.ignoredRoles.length && roles.length) for(const role of ignoredRoles) if(roles.includes(role)) return;
|
2020-06-20 22:27:23 +02:00
|
|
|
|
2020-07-23 22:40:20 +02:00
|
|
|
console.log('Can store');
|
2020-06-20 22:27:23 +02:00
|
|
|
|
|
|
|
const attachments = message.attachments.values();
|
|
|
|
for(const attachment of attachments) {
|
|
|
|
|
|
|
|
const TH = this.client.transactionHandler;
|
|
|
|
const { size, name, id } = attachment;
|
2020-07-23 22:40:20 +02:00
|
|
|
const fsize = size/CONSTANTS.IMAGES.MB_DIVIDER; // File size in MB
|
2020-06-20 22:27:23 +02:00
|
|
|
if(fsize > CONSTANTS.IMAGES.UPLOAD_LIMIT[guild.premiumTier]) continue;
|
|
|
|
|
2020-07-23 22:40:20 +02:00
|
|
|
const buffer = await Util.downloadAsBuffer(attachment.url).catch((err) => {
|
|
|
|
this.client.logger.error(err); return null;
|
|
|
|
});
|
2020-06-20 22:27:23 +02:00
|
|
|
if(!buffer) return;
|
|
|
|
const data = {
|
|
|
|
buffer,
|
|
|
|
id
|
|
|
|
};
|
|
|
|
|
|
|
|
try {
|
|
|
|
//TODO: test this
|
|
|
|
//const start = Date.now();
|
|
|
|
const result = await TH.send({
|
|
|
|
provider: 'mongodb',
|
|
|
|
request: {
|
|
|
|
type: 'insertOne',
|
|
|
|
collection: 'attachment_logs',
|
|
|
|
data
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
//console.log(`Took ${Date.now()-start}ms to insert image.`);
|
|
|
|
//console.log(result);
|
|
|
|
|
|
|
|
const metadata = {
|
|
|
|
database_ID: result.insertedId,
|
|
|
|
id,
|
|
|
|
guild: guild.id,
|
|
|
|
message: message.id,
|
|
|
|
author: author.id,
|
|
|
|
name,
|
|
|
|
size,
|
|
|
|
timestamp: Math.floor(Date.now()/1000),
|
|
|
|
removeAt: Math.floor(Date.now()/1000 + guild._settings.premium * CONSTANTS.WEEK * 0.25)
|
2020-07-23 22:40:20 +02:00
|
|
|
};
|
2020-06-20 22:27:23 +02:00
|
|
|
|
|
|
|
//console.log(metadata);
|
|
|
|
|
|
|
|
await TH.send({
|
|
|
|
provider: 'mongodb',
|
|
|
|
request: {
|
|
|
|
type: 'insertOne',
|
|
|
|
collection: 'attachment_logs_index',
|
|
|
|
data: metadata
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
//console.log(`Took ${Date.now()-start}ms to insert entire entry.`);
|
|
|
|
|
|
|
|
} catch (err) {
|
|
|
|
this.client.logger.error('Something went wrong with storing image to db:\n' + err.stack);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-06-18 16:07:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//TODO: Figure this thing out, this should be called from messageDelete and rawMessageDelete if any attachments are present
|
|
|
|
//data should be an object containing the necessary information to query for the attachment from the db, and the relevant information to log it
|
|
|
|
//Will figure this out once I get to that point
|
|
|
|
async logAttachment(data) {
|
2020-07-24 20:31:52 +02:00
|
|
|
|
2020-06-18 16:07:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
async messageDelete(message) {
|
|
|
|
|
2020-06-19 20:30:30 +02:00
|
|
|
if(message.author.bot) return;
|
|
|
|
|
2020-06-18 16:07:39 +02:00
|
|
|
const { guild } = message;
|
|
|
|
if (!guild) return;
|
|
|
|
|
|
|
|
if (!message.member) message.member = await guild.members.fetch(message.author);
|
2020-06-18 23:00:32 +02:00
|
|
|
const { member, channel, author } = message;
|
2020-06-18 16:07:39 +02:00
|
|
|
|
|
|
|
const settings = await guild.settings();
|
|
|
|
const chatlogs = settings.messageLog;
|
|
|
|
if (!chatlogs || !chatlogs.channel) return;
|
|
|
|
|
|
|
|
const { ignoredRoles, ignoredChannels } = chatlogs;
|
2020-06-19 20:30:30 +02:00
|
|
|
const logChannel = await guild.resolveChannel(chatlogs.channel);
|
|
|
|
if(!logChannel) return;
|
|
|
|
|
|
|
|
const perms = logChannel.permissionsFor(guild.me);
|
|
|
|
if(!perms.has('SEND_MESSAGES') || !perms.has('VIEW_CHANNEL')) return;
|
2020-06-18 16:07:39 +02:00
|
|
|
|
2020-07-23 22:40:20 +02:00
|
|
|
if (ignoredRoles.length && member.roles.cache.size) {
|
|
|
|
const roles = member.roles.cache.map((r) => r.id);
|
|
|
|
for (const role of ignoredRoles) {
|
|
|
|
if (roles.includes(role)) return;
|
|
|
|
}
|
|
|
|
}
|
2020-06-18 16:07:39 +02:00
|
|
|
|
|
|
|
if (ignoredChannels && ignoredChannels.includes(channel.id)) return;
|
|
|
|
|
2020-06-18 23:00:32 +02:00
|
|
|
if (message.attachments.size) return this.logAttachment({ msgID: message.id, guildID: guild.id, channelID: channel.id, logChannel });
|
2020-06-18 16:07:39 +02:00
|
|
|
|
2020-06-18 23:00:32 +02:00
|
|
|
const embed = {
|
2020-06-19 20:30:30 +02:00
|
|
|
title: message.format('MSGLOG_DELETE_TITLE', { author: Util.escapeMarkdown(author.tag), channel: channel.name }),
|
2020-06-18 23:00:32 +02:00
|
|
|
description: message.content,
|
|
|
|
footer: {
|
|
|
|
text: message.format('MSGLOG_DELETE_FOOTER', { msgID: message.id, userID: author.id })
|
|
|
|
},
|
|
|
|
color: CONSTANTS.COLORS.RED,
|
|
|
|
timestamp: message.createdAt
|
|
|
|
};
|
|
|
|
|
|
|
|
await logChannel.send({ embed });
|
2020-06-18 16:07:39 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async messageDeleteBulk(messages) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async messageEdit(oldMessage, newMessage) {
|
|
|
|
|
2020-06-18 23:00:32 +02:00
|
|
|
// embeds loading in (ex. when a link is posted) would cause a message edit event
|
|
|
|
if(oldMessage.embeds.length !== newMessage.embeds.length) return;
|
2020-06-19 20:30:30 +02:00
|
|
|
if(oldMessage.author.bot) return;
|
2020-06-18 23:00:32 +02:00
|
|
|
|
|
|
|
const { guild } = oldMessage;
|
|
|
|
if (!guild) return;
|
|
|
|
|
|
|
|
if (!oldMessage.member) oldMessage.member = await guild.members.fetch(oldMessage.author);
|
|
|
|
const { member, channel, author } = oldMessage;
|
|
|
|
|
|
|
|
const settings = await guild.settings();
|
|
|
|
const chatlogs = settings.messageLog;
|
2020-06-19 20:30:30 +02:00
|
|
|
if (!chatlogs.channel) return;
|
2020-06-18 23:00:32 +02:00
|
|
|
|
|
|
|
const { ignoredRoles, ignoredChannels } = chatlogs;
|
2020-06-19 20:30:30 +02:00
|
|
|
const logChannel = await guild.resolveChannel(chatlogs.channel);
|
|
|
|
if(!logChannel) return;
|
|
|
|
|
|
|
|
const perms = logChannel.permissionsFor(guild.me);
|
|
|
|
if(!perms.has('SEND_MESSAGES') || !perms.has('VIEW_CHANNEL')) return;
|
2020-06-18 23:00:32 +02:00
|
|
|
|
2020-07-23 22:40:20 +02:00
|
|
|
if (ignoredRoles && member.roles.cache.size) {
|
|
|
|
const roles = member.roles.cache.map((r) => r.id);
|
|
|
|
for (const role of ignoredRoles) {
|
|
|
|
if (roles.includes(role)) return;
|
|
|
|
}
|
|
|
|
}
|
2020-06-18 23:00:32 +02:00
|
|
|
|
|
|
|
if (ignoredChannels && ignoredChannels.includes(channel.id)) return;
|
|
|
|
|
|
|
|
if(oldMessage.content === newMessage.content && oldMessage.pinned !== newMessage.pinned) {
|
|
|
|
|
|
|
|
const embed = {
|
2020-06-19 20:30:30 +02:00
|
|
|
title: oldMessage.format('MSGLOG_PINNED_TITLE', { author: Util.escapeMarkdown(author.tag), channel: channel.name, pinned: oldMessage.format('PIN_TOGGLE', { toggle: newMessage.pinned }, true) }),
|
2020-06-18 23:00:32 +02:00
|
|
|
description: oldMessage.format('MSGLOG_EDIT_JUMP', { guild: guild.id, channel: channel.id, message: oldMessage.id }),
|
|
|
|
color: CONSTANTS.COLORS.LIGHT_BLUE
|
2020-07-23 22:40:20 +02:00
|
|
|
};
|
2020-06-18 23:00:32 +02:00
|
|
|
|
|
|
|
if(oldMessage.content.length) embed.description += '\n' + oldMessage.content.substring(0, 1900);
|
|
|
|
if(oldMessage.attachments.size) {
|
|
|
|
const img = oldMessage.attachments.first();
|
2020-07-23 22:40:20 +02:00
|
|
|
if(img.height && img.width) embed.image = { url: img.url };
|
2020-06-18 23:00:32 +02:00
|
|
|
}
|
|
|
|
|
2020-06-19 20:30:30 +02:00
|
|
|
await logChannel.send({ embed }).catch(this.client.logger.error);
|
2020-06-18 23:00:32 +02:00
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
const embed = {
|
2020-06-19 20:30:30 +02:00
|
|
|
title: oldMessage.format('MSGLOG_EDIT_TITLE', { author: Util.escapeMarkdown(author.tag), channel: channel.name }),
|
2020-06-18 23:00:32 +02:00
|
|
|
footer: {
|
|
|
|
text: oldMessage.format('MSGLOG_EDIT_FOOTER', { msgID: oldMessage.id, userID: author.id })
|
|
|
|
},
|
|
|
|
description: oldMessage.format('MSGLOG_EDIT_JUMP', { guild: guild.id, channel: channel.id, message: oldMessage.id }),
|
|
|
|
color: CONSTANTS.COLORS.YELLOW,
|
|
|
|
timestamp: oldMessage.createdAt,
|
|
|
|
fields: [
|
2020-06-19 20:30:30 +02:00
|
|
|
// {
|
|
|
|
// name: oldMessage.format('MSGLOG_EDIT_OLD'),
|
|
|
|
// value: oldMessage.content.length > 1024 ? oldMessage.content.substring(0, 1021) + '...' : oldMessage.content
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// name: oldMessage.format('MSGLOG_EDIT_NEW'),
|
|
|
|
// value: newMessage.content.length > 1024 ? newMessage.content.substring(0, 1021) + '...' : newMessage.content
|
|
|
|
// }
|
2020-06-18 23:00:32 +02:00
|
|
|
]
|
|
|
|
};
|
2020-06-19 20:30:30 +02:00
|
|
|
|
|
|
|
const oldCon = oldMessage.content,
|
2020-07-23 22:40:20 +02:00
|
|
|
newCon = newMessage.content;
|
2020-06-19 20:30:30 +02:00
|
|
|
//Original content
|
|
|
|
embed.fields.push({
|
|
|
|
name: oldMessage.format('MSGLOG_EDIT_OLD'),
|
|
|
|
value: oldCon.length > 1024 ? oldCon.substring(0, 1021) + '...' : oldCon
|
|
|
|
});
|
|
|
|
if(oldCon.length > 1024) embed.fields.push({
|
|
|
|
name: '\u200b',
|
|
|
|
value: '...' + oldCon.substring(1021)
|
|
|
|
});
|
|
|
|
//Edited content
|
|
|
|
embed.fields.push({
|
|
|
|
name: oldMessage.format('MSGLOG_EDIT_NEW'),
|
|
|
|
value: newCon.length > 1024 ? newCon.substring(0, 1021) + '...' : newCon
|
|
|
|
});
|
|
|
|
if(newCon.length > 1024) embed.fields.push({
|
|
|
|
name: '\u200b',
|
|
|
|
value: '...' + newCon.substring(1021)
|
2020-07-23 22:40:20 +02:00
|
|
|
});
|
2020-06-19 20:30:30 +02:00
|
|
|
|
|
|
|
//if(oldMessage.content.length > 1024) embed.description += '\n' + oldMessage.format('MSGLOG_EDIT_OLD_CUTOFF');
|
|
|
|
//if(newMessage.content.length > 1024) embed.description += '\n' + oldMessage.format('MSGLOG_EDIT_NEW_CUTOFF');
|
2020-06-18 23:00:32 +02:00
|
|
|
|
2020-07-23 22:40:20 +02:00
|
|
|
await logChannel.send({ embed }).catch((err) => {
|
|
|
|
this.client.logger.error('Error in message edit:\n' + err.stack);
|
2020-06-19 20:30:30 +02:00
|
|
|
});
|
2020-06-18 23:00:32 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-06-18 16:07:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
async voiceState(oldState, newState) {
|
|
|
|
|
2020-06-19 20:30:30 +02:00
|
|
|
if(oldState.channel && newState.channel && oldState.channel === newState.channel) return;
|
|
|
|
const { guild, member } = oldState;
|
|
|
|
|
|
|
|
//TODO: add checks for disconnecting bot from vc when left alone in one (music player)
|
|
|
|
|
|
|
|
const settings = await guild.settings();
|
|
|
|
const setting = settings.voiceLog;
|
|
|
|
if(!setting || !setting.channel) return;
|
|
|
|
|
|
|
|
const logChannel = await guild.resolveChannel(setting.channel);
|
|
|
|
if(!logChannel) return;
|
|
|
|
|
|
|
|
const perms = logChannel.permissionsFor(guild.me);
|
|
|
|
if(!perms.has('SEND_MESSAGES') || !perms.has('VIEW_CHANNEL')) return;
|
|
|
|
|
|
|
|
let index = null;
|
|
|
|
const langParams = {
|
|
|
|
nickname: member.nickname ? `\`(${member.nickname})\`` : '',
|
|
|
|
tag: Util.escapeMarkdown(member.user.tag),
|
|
|
|
id: member.id,
|
|
|
|
oldChannel: oldState.channel?.name,
|
|
|
|
newChannel: newState.channel?.name
|
2020-07-23 22:40:20 +02:00
|
|
|
};
|
2020-06-19 20:30:30 +02:00
|
|
|
|
|
|
|
if(!oldState.channel && newState.channel) index = 'VCLOG_JOIN';
|
|
|
|
else if(oldState.channel && newState.channel) index = 'VCLOG_SWITCH';
|
|
|
|
else index = 'VCLOG_LEAVE';
|
|
|
|
|
|
|
|
this.client.rateLimiter.queueSend(logChannel, guild.format(index, langParams).trim());
|
|
|
|
|
2020-06-18 16:07:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
async ban(guild, user) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async unban(guild, user) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-06-19 20:30:30 +02:00
|
|
|
_replaceTags(text, member) {
|
2020-06-20 22:27:23 +02:00
|
|
|
const { user, guild } = member;
|
2020-06-19 20:30:30 +02:00
|
|
|
return text
|
2020-07-23 22:40:20 +02:00
|
|
|
.replace(/\{mention\}/gu, `<@${member.id}>`)
|
|
|
|
.replace(/\{tag\}/gu, Util.escapeMarkdown(user.tag))
|
|
|
|
.replace(/\{user\}/gu, Util.escapeMarkdown(user.username))
|
|
|
|
.replace(/\{guildsize\}/gu, guild.memberCount)
|
|
|
|
.replace(/\{guildname\}/gu, guild.name)
|
|
|
|
.replace(/\{accage\}/gu, this.client.resolver.timeAgo(Date.now()/1000 - user.createdTimestamp/1000)) //.replace(/a/, '1')
|
|
|
|
.replace(/\{id\}/gu, user.id)
|
2020-06-19 20:30:30 +02:00
|
|
|
.trim();
|
|
|
|
}
|
|
|
|
|
2020-06-18 16:07:39 +02:00
|
|
|
async memberJoin(member) {
|
|
|
|
|
2020-06-19 20:30:30 +02:00
|
|
|
const { guild } = member;
|
|
|
|
const settings = await guild.settings();
|
|
|
|
const setting = settings.memberLog;
|
|
|
|
if(!setting.channel) return;
|
|
|
|
|
|
|
|
const logChannel = await guild.resolveChannel(setting.channel);
|
|
|
|
if(!logChannel) return;
|
|
|
|
|
|
|
|
const perms = logChannel.permissionsFor(guild.me);
|
|
|
|
if(!perms.has('SEND_MESSAGES') || !perms.has('VIEW_CHANNEL')) return;
|
|
|
|
|
|
|
|
let { joinMessage } = setting;
|
|
|
|
joinMessage = this._replaceTags(joinMessage, member);
|
2020-07-23 22:40:20 +02:00
|
|
|
this.client.rateLimiter.queueSend(logChannel, joinMessage);
|
2020-06-19 20:30:30 +02:00
|
|
|
|
2020-06-18 16:07:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
async memberLeave(member) {
|
|
|
|
|
2020-06-19 20:30:30 +02:00
|
|
|
const { guild } = member;
|
|
|
|
const settings = await guild.settings();
|
|
|
|
const setting = settings.memberLog;
|
|
|
|
if(!setting.channel) return;
|
|
|
|
|
|
|
|
const logChannel = await guild.resolveChannel(setting.channel);
|
|
|
|
if(!logChannel) return;
|
|
|
|
|
|
|
|
const perms = logChannel.permissionsFor(guild.me);
|
|
|
|
if(!perms.has('SEND_MESSAGES') || !perms.has('VIEW_CHANNEL')) return;
|
|
|
|
|
|
|
|
let { leaveMessage } = setting;
|
|
|
|
leaveMessage = this._replaceTags(leaveMessage, member);
|
2020-07-23 22:40:20 +02:00
|
|
|
this.client.rateLimiter.queueSend(logChannel, leaveMessage);
|
2020-06-19 20:30:30 +02:00
|
|
|
|
2020-06-18 16:07:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
async memberUpdate(oldMember, newMember) {
|
|
|
|
|
2020-06-19 20:30:30 +02:00
|
|
|
if(oldMember.nickname === newMember.nickname) return;
|
|
|
|
|
|
|
|
const { guild, user } = oldMember;
|
|
|
|
const settings = await guild.settings();
|
|
|
|
const setting = settings.nicknameLog;
|
|
|
|
if(!setting.channel) return;
|
|
|
|
|
|
|
|
const logChannel = await guild.resolveChannel(setting.channel);
|
|
|
|
if(!logChannel) return;
|
|
|
|
|
|
|
|
const perms = logChannel.permissionsFor(guild.me);
|
|
|
|
if(!perms.has('SEND_MESSAGES') || !perms.has('VIEW_CHANNEL')) return;
|
|
|
|
|
|
|
|
const oldNick = oldMember.nickname || oldMember.user.username;
|
|
|
|
const newNick = newMember.nickname || newMember.user.username;
|
|
|
|
|
|
|
|
const embed = {
|
|
|
|
title: guild.format('NICKLOG_TITLE', { user: Util.escapeMarkdown(user.tag) }),
|
|
|
|
description: guild.format('NICKLOG_DESCRIPTION', { oldNick, newNick }),
|
|
|
|
footer: {
|
|
|
|
text: guild.format('NICKLOG_FOOTER', { id: user.id })
|
|
|
|
},
|
|
|
|
color: CONSTANTS.COLORS.BLUE
|
|
|
|
};
|
|
|
|
|
2020-07-23 22:40:20 +02:00
|
|
|
logChannel.send({ embed });
|
2020-06-19 20:30:30 +02:00
|
|
|
|
2020-06-18 16:07:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = GuildLogger;
|