update neural network

pull/29/head
Matthew 2020-09-27 18:14:00 -04:00
parent 22ce6dfa7c
commit c61a29f48a
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 4 additions and 1 deletions

View File

@ -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 this.client.db.NNTrainingData.updateOne({ name: 'tc' }, { $addToSet: { data: { input: this.client.util.encode(msg.content), output: { res: Number(args[2]) } } } });
await message.delete(); 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) { } catch (err) {
return this.client.util.handleError(err, message, this); return this.client.util.handleError(err, message, this);
} }