mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user