mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Minor Code Improvements
This commit is contained in:
@@ -63,10 +63,16 @@ module.exports = class MathGameCommand extends Command {
|
||||
errors: ['time']
|
||||
});
|
||||
if (collected.first().content !== solved)
|
||||
return msg.say(`Aw... Too bad, try again next time!\nThe correct answer is: ${solved}`);
|
||||
return msg.say(
|
||||
`Aw... Too bad, try again next time!
|
||||
The correct answer is: ${solved}`
|
||||
);
|
||||
return msg.say(`Good Job! You won! ${solved} is the correct answer!`);
|
||||
} catch (err) {
|
||||
return msg.say(`Aw... Too bad, try again next time!\nThe correct answer is: ${solved}`);
|
||||
return msg.say(
|
||||
`Aw... Too bad, try again next time!
|
||||
The correct answer is: ${solved}`
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user