This commit is contained in:
Daniel Odendahl Jr
2017-05-02 00:59:01 +00:00
parent b91cabbc16
commit f975dabb11
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ module.exports = class BeautifulCommand extends Command {
const [avatar, grunkle] = await Promise.all(images);
avatar.resize(117, 135);
grunkle.composite(avatar, 341, 35);
grunkle.composite(avatar, 342, 300);
grunkle.composite(avatar, 342, 302);
grunkle.getBuffer(Jimp.MIME_PNG, (err, buff) => {
if (err) return msg.say('An Unknown Error Occurred.');
return msg.channel.send({files: [{attachment: buff}]});
+4 -1
View File
@@ -29,7 +29,10 @@ module.exports = class TriggeredCommand extends Command {
images.push(Jimp.read('https://i.imgur.com/tF9yF62.png'));
const [avatar, triggered] = await Promise.all(images);
avatar.resize(320, 320);
avatar.blur(5);
avatar.blur(3);
avatar.color([
{ apply: 'mix', params: [ 0xFF0000FF, 30 ] }
]);
blank.composite(avatar, 0, 0);
blank.composite(triggered, 0, 0);
blank.getBuffer(Jimp.MIME_PNG, (err, buff) => {