From 1e242f2027b8f4bfa20c4af3990fdb5051ed725b Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 6 Mar 2021 21:24:39 -0500 Subject: [PATCH] remove training message handler --- src/events/Training.ts | 29 ----------------------------- src/events/index.ts | 1 - 2 files changed, 30 deletions(-) delete mode 100644 src/events/Training.ts diff --git a/src/events/Training.ts b/src/events/Training.ts deleted file mode 100644 index f178a3c..0000000 --- a/src/events/Training.ts +++ /dev/null @@ -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); - } - } -} diff --git a/src/events/index.ts b/src/events/index.ts index 277d16c..9caf386 100644 --- a/src/events/index.ts +++ b/src/events/index.ts @@ -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';