Dan is a dumb

This commit is contained in:
Daniel Odendahl Jr
2017-10-14 02:49:14 +00:00
parent 26b48bf047
commit 4ab3c6ad6a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ module.exports = class ThugLifeCommand extends Command {
const canvas = createCanvas(avatar.width, avatar.height);
const ctx = canvas.getContext('2d');
ctx.drawImage(avatar, 0, 0);
greyscale(0, 0, avatar.width, avatar.height);
greyscale(ctx, 0, 0, avatar.width, avatar.height);
ctx.drawImage(base, 0, 0, avatar.width, avatar.height);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'thug-life.png' }] });
} catch (err) {