mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
Shorter sentences
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = class TypingRaceCommand extends Command {
|
|||||||
this.client.games.delete(msg.channel.id);
|
this.client.games.delete(msg.channel.id);
|
||||||
return msg.say('Looks like they declined...');
|
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);
|
const img = await this.client.registry.commands.get('typing-test').generateImage(sentence);
|
||||||
await msg.say(`**Type the following sentence within 30 seconds:**`, {
|
await msg.say(`**Type the following sentence within 30 seconds:**`, {
|
||||||
files: [{ attachment: img, name: 'typing-race.png' }]
|
files: [{ attachment: img, name: 'typing-race.png' }]
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ module.exports = class TypingTestCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async run(msg, { difficulty }) {
|
async run(msg, { difficulty }) {
|
||||||
const sentence = this.generateSentence(6);
|
const sentence = this.generateSentence(5);
|
||||||
const time = times[difficulty];
|
const time = times[difficulty];
|
||||||
await msg.reply(`**You have ${time / 1000} seconds to type this sentence.**`, {
|
await msg.reply(`**You have ${time / 1000} seconds to type this sentence.**`, {
|
||||||
files: [{ attachment: this.generateImage(sentence), name: 'typing-test.png' }]
|
files: [{ attachment: this.generateImage(sentence), name: 'typing-test.png' }]
|
||||||
|
|||||||
Reference in New Issue
Block a user