galactic-bot/structure/client/components/observers/ActivityTracker.js

38 lines
678 B
JavaScript
Raw Normal View History

const { Observer } = require('../../../interfaces/');
const Collection = require('../../../../util/Collection.js');
class ActivityTracker extends Observer {
constructor(client) {
super(client, {
name: 'activityTracker',
priority: 3,
guarded: true
});
this.client = client;
this.cache = new Collection();
this.hooks = [
['message', this.onMessage.bind(this)],
['voiceStateUpdate', this.onVoiceState.bind(this)]
];
}
async onMessage(message) {
}
async onVoiceState(oldState, newState) {
}
}
module.exports = ActivityTracker;