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

37 lines
603 B
JavaScript
Raw Normal View History

const { Observer } = require('../../../interfaces/');
class ActivityTracker extends Observer {
constructor(client) {
super(client, {
name: 'activityTracker',
2020-04-17 22:18:52 +02:00
priority: 4,
guarded: true
});
this.client = client;
2020-04-17 22:18:52 +02:00
this.cache = { };
this.hooks = [
['message', this.onMessage.bind(this)],
['voiceStateUpdate', this.onVoiceState.bind(this)]
];
}
async onMessage(message) {
}
async onVoiceState(oldState, newState) {
}
}
module.exports = ActivityTracker;