mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Fix
This commit is contained in:
@@ -30,7 +30,10 @@ module.exports = class CaptchaQuizCommand extends Command {
|
|||||||
ctx.font = '26px Captcha';
|
ctx.font = '26px Captcha';
|
||||||
ctx.rotate(-0.05);
|
ctx.rotate(-0.05);
|
||||||
ctx.strokeText(text, 15, 26);
|
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, {
|
const msgs = await msg.channel.awaitMessages(res => res.author.id === msg.author.id, {
|
||||||
max: 1,
|
max: 1,
|
||||||
time: 15000
|
time: 15000
|
||||||
|
|||||||
Reference in New Issue
Block a user