forked from Galactic/galactic-bot
37 lines
603 B
JavaScript
37 lines
603 B
JavaScript
const { Observer } = require('../../../interfaces/');
|
|
|
|
class ActivityTracker extends Observer {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
name: 'activityTracker',
|
|
priority: 4,
|
|
guarded: true
|
|
});
|
|
|
|
this.client = client;
|
|
this.cache = { };
|
|
|
|
this.hooks = [
|
|
['message', this.onMessage.bind(this)],
|
|
['voiceStateUpdate', this.onVoiceState.bind(this)]
|
|
];
|
|
|
|
}
|
|
|
|
async onMessage(message) {
|
|
|
|
|
|
|
|
}
|
|
|
|
async onVoiceState(oldState, newState) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = ActivityTracker; |