|
@ -235,21 +235,17 @@ function training(subject, interaction) { |
|
|
overrideMsg |
|
|
overrideMsg |
|
|
.awaitReactions(filter, { |
|
|
.awaitReactions(filter, { |
|
|
max: 1, |
|
|
max: 1, |
|
|
time: 600000, |
|
|
|
|
|
errors: ["time"], |
|
|
|
|
|
}) |
|
|
}) |
|
|
.then((userReaction) => { |
|
|
.then((userReaction) => { |
|
|
updateScore(true, score, authorId).then((msgToReply) => |
|
|
updateScore(true, score, authorId).then((msgToReply) => |
|
|
answerMsg.reply(msgToReply) |
|
|
answerMsg.reply(msgToReply) |
|
|
); |
|
|
); |
|
|
}); |
|
|
}).catch(console.error); |
|
|
}) |
|
|
}).catch(console.error); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}).catch(interaction.editReply("Sorry, the question timed out waiting for an answer.")); |
|
|
.catch(console.error); |
|
|
}).catch(console.error); |
|
|
}); |
|
|
}).catch(interaction.reply("Sorry, there was a problem fetching the question. Please try again!")); |
|
|
}) |
|
|
|
|
|
.catch(console.error); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function sendHelpMessage(interaction) { |
|
|
function sendHelpMessage(interaction) { |
|
|