This commit is contained in:
Dragon Fire
2021-03-27 16:51:31 -04:00
parent 4722d72fa5
commit 338d1e9011
+2 -1
View File
@@ -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' }] });
}
};