mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -60,7 +60,8 @@ module.exports = class SnapchatCommand extends Command {
|
||||
ctx.fillStyle = 'black';
|
||||
ctx.fillRect(0, barPosition - barHeight, base.width, barHeight);
|
||||
ctx.globalAlpha = 1;
|
||||
ctx.fillText(text, base.width / 2, (barPosition - barHeight) * 0.4);
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.fillText(text, base.width / 2, barPosition - (barHeight * 0.4));
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'snapchat.png' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user