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