diff --git a/src/commands/train.ts b/src/commands/train.ts index 7837840..3d72de7 100644 --- a/src/commands/train.ts +++ b/src/commands/train.ts @@ -29,7 +29,10 @@ export default class Train extends Command { await this.client.db.NNTrainingData.updateOne({ name: 'tc' }, { $addToSet: { data: { input: this.client.util.encode(msg.content), output: { res: Number(args[2]) } } } }); await message.delete(); - return this.success(message.channel, 'Neural Network trained successfully.'); + const done = await this.success(message.channel, 'Neural Network trained successfully.'); + return setTimeout(async () => { + await done.delete(); + }, 3000); } catch (err) { return this.client.util.handleError(err, message, this); }