update neural network
parent
22ce6dfa7c
commit
c61a29f48a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue