Shorter sentences

This commit is contained in:
Dragon Fire
2021-01-30 23:06:34 -05:00
parent 61800d602b
commit 8a3f89cd92
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class TypingRaceCommand extends Command {
this.client.games.delete(msg.channel.id);
return msg.say('Looks like they declined...');
}
const sentence = this.client.registry.commands.get('typing-test').generateSentence(6);
const sentence = this.client.registry.commands.get('typing-test').generateSentence(5);
const img = await this.client.registry.commands.get('typing-test').generateImage(sentence);
await msg.say(`**Type the following sentence within 30 seconds:**`, {
files: [{ attachment: img, name: 'typing-race.png' }]
+1 -1
View File
@@ -36,7 +36,7 @@ module.exports = class TypingTestCommand extends Command {
}
async run(msg, { difficulty }) {
const sentence = this.generateSentence(6);
const sentence = this.generateSentence(5);
const time = times[difficulty];
await msg.reply(`**You have ${time / 1000} seconds to type this sentence.**`, {
files: [{ attachment: this.generateImage(sentence), name: 'typing-test.png' }]