galactic-bot/structure/client/components/observers/MessageLogger.js
Navy d6a0f99601 A lot of shit
Co-authored-by: nolan <noooolaaaan@gmail.com>
2020-04-17 18:23:13 +03:00

51 lines
856 B
JavaScript

const { stripIndents } = require('common-tags');
const { Observer } = require('../../../interfaces/');
class MessageLogger extends Observer {
constructor(client) {
super(client, {
name: 'messageLogger',
priority: 3,
guarded: true
});
this.client = client;
this.hooks = [
['messageDelete', this.onDelete.bind(this)],
['messageDeleteBulk', this.onBulk.bind(this)],
['messageUpdate', this.onEdit.bind(this)],
['message', this.onMessage.bind(this)]
];
}
async onDelete(message) {
}
//Bulk delete logs, gets a collection
async onBulk(messages) {
}
async onEdit(oldMsg, newMsg) {
}
//Image logging
async onMessage(message) {
}
}
module.exports = MessageLogger;