remove training message handler

merge-requests/22/merge
Matthew 2021-03-06 21:24:39 -05:00
parent 6d0499d42c
commit 1e242f2027
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 0 additions and 30 deletions

View File

@ -1,29 +0,0 @@
/* eslint-disable no-unreachable */
import { Message } from 'eris';
import { Client, Event, LocalStorage } from '../class';
export default class Training extends Event {
public client: Client;
public storage: LocalStorage;
constructor(client: Client) {
super(client);
this.event = 'messageCreate';
this.storage = new LocalStorage('training');
}
public async run(message: Message) {
return;
try {
if (message.channel.id !== '485680288123584525') return;
await this.storage.set(message.id, {
content: message.content,
date: new Date(),
score: -1,
});
} catch (err) {
this.client.util.handleError(err, message);
}
}
}

View File

@ -2,4 +2,3 @@ export { default as CallBackHandler } from './CallBackHandler';
export { default as CommandHandler } from './CommandHandler';
export { default as guildMemberAdd } from './guildMemberAdd';
export { default as ready } from './ready';
export { default as Training } from './Training';