This commit is contained in:
Daniel Odendahl Jr
2017-12-09 21:40:16 +00:00
parent aa6493e60a
commit 1d537892e6
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class GlitchCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.drawImage(data, 0, 0);
distort(ctx, 20, 0, 0, data.width, data.height, 5);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'distort.png' }] });
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'glitch.png' }] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}