Keep Going

This commit is contained in:
Daniel Odendahl Jr
2017-05-10 05:37:50 +00:00
parent 31a7632076
commit d22af1ff5b
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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
+1 -1
View File
@@ -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);
}
}
};
+1 -1
View File
@@ -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');
+1 -1
View File
@@ -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');