This commit is contained in:
Daniel Odendahl Jr
2018-01-26 21:47:22 +00:00
parent 818691cac7
commit b7c4bdf62d
+4 -1
View File
@@ -30,7 +30,10 @@ module.exports = class CaptchaQuizCommand extends Command {
ctx.font = '26px Captcha';
ctx.rotate(-0.05);
ctx.strokeText(text, 15, 26);
await msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'captcha-quiz.png' }] });
await msg.say(
'**You have 15 seconds, what does the captcha say?**',
{ files: [{ attachment: canvas.toBuffer(), name: 'captcha-quiz.png' }] }
);
const msgs = await msg.channel.awaitMessages(res => res.author.id === msg.author.id, {
max: 1,
time: 15000