mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Holy crap lois, it's a fix!
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = class HolyCrapLoisCommand extends Command {
|
|||||||
name: '20th Century Fox',
|
name: '20th Century Fox',
|
||||||
url: 'https://www.foxmovies.com/',
|
url: 'https://www.foxmovies.com/',
|
||||||
reason: 'Image, Original "Family Guy" Show'
|
reason: 'Image, Original "Family Guy" Show'
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
@@ -43,7 +43,7 @@ module.exports = class HolyCrapLoisCommand extends Command {
|
|||||||
const canvas = createCanvas(base.width, base.height);
|
const canvas = createCanvas(base.width, base.height);
|
||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
const { x, y, width, height } = centerImagePart(data, 424, 424, 0, 40);
|
const { x, y, width, height } = centerImagePart(data, 414, 414, 10, 50);
|
||||||
ctx.drawImage(data, x, y, width, height);
|
ctx.drawImage(data, x, y, width, height);
|
||||||
ctx.drawImage(door, 0, 0);
|
ctx.drawImage(door, 0, 0);
|
||||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'holy-crap-lois.png' }] });
|
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'holy-crap-lois.png' }] });
|
||||||
|
|||||||
Reference in New Issue
Block a user