mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
White Outline in pills
This commit is contained in:
@@ -59,7 +59,10 @@ module.exports = class PillsCommand extends Command {
|
||||
const lines = await wrapText(ctx, text, 280);
|
||||
const topMost = 455 - (((fontSize * lines.length) / 2) + ((10 * (lines.length - 1)) / 2));
|
||||
for (let i = 0; i < lines.length; i++) {
|
||||
ctx.strokeStyle = 'white';
|
||||
ctx.lineWidth = 5;
|
||||
const height = topMost + ((fontSize + 10) * i);
|
||||
ctx.strokeText(lines[i], 183, height);
|
||||
ctx.fillText(lines[i], 183, height);
|
||||
}
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'pills.png' }] });
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "116.25.0",
|
||||
"version": "116.25.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user