mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Keep Going
This commit is contained in:
@@ -35,10 +35,10 @@ module.exports = class BobRossCommand extends Command {
|
||||
const avatar = new Image();
|
||||
const generate = () => {
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.fillRect(0, 0, 507, 338);
|
||||
ctx.rotate(2 * Math.PI / 180);
|
||||
ctx.fillRect(0, 0, 600, 775);
|
||||
ctx.rotate(3 * Math.PI / 180);
|
||||
ctx.drawImage(avatar, 44, 85, 300, 300);
|
||||
ctx.rotate(-2 * Math.PI / 180);
|
||||
ctx.rotate(-3 * Math.PI / 180);
|
||||
ctx.drawImage(base, 0, 0);
|
||||
};
|
||||
const rossImg = await request
|
||||
|
||||
@@ -55,7 +55,7 @@ module.exports = class SteamCardCommand extends Command {
|
||||
return msg.channel.send({ files: [{ attachment: canvas.toBuffer(), name: 'card.png' }] })
|
||||
.catch(err => msg.say(err));
|
||||
} catch (err) {
|
||||
return msg.say('An Error Occurred while creating the image.');
|
||||
return msg.say('An Error Occurred while creating the image. ' + err);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -35,8 +35,8 @@ module.exports = class TriggeredCommand extends Command {
|
||||
const generate = () => {
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.fillRect(0, 0, 320, 371);
|
||||
ctx.drawImage(base, 0, 0);
|
||||
ctx.drawImage(avatar, 0, 0, 320, 320);
|
||||
ctx.drawImage(base, 0, 0);
|
||||
};
|
||||
const triggeredImg = await request
|
||||
.get('https://i.imgur.com/tF9yF62.png');
|
||||
|
||||
@@ -34,7 +34,7 @@ module.exports = class WantedCommand extends Command {
|
||||
const avatar = new Image();
|
||||
const generate = () => {
|
||||
ctx.drawImage(base, 0, 0);
|
||||
ctx.drawImage(avatar, 149, 360, 430, 430);
|
||||
ctx.drawImage(avatar, 150, 360, 430, 430);
|
||||
};
|
||||
const wantedImg = await request
|
||||
.get('https://i.imgur.com/6bBDfsO.png');
|
||||
|
||||
Reference in New Issue
Block a user