forked from Galactic/galactic-bot
38 lines
678 B
JavaScript
38 lines
678 B
JavaScript
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; |