Fix Color Codes

This commit is contained in:
Daniel Odendahl Jr
2017-04-29 02:32:12 +00:00
parent c1fb18b5e0
commit b4881da68c
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = class YearsCommand extends Command {
images.push(Jimp.read('https://i.imgur.com/eScwGFS.png'));
const [avatar, years] = await Promise.all(images);
avatar.resize(200, 200);
years.blit(avatar, 461, 127);
years.composite(avatar, 461, 127);
years.getBuffer(Jimp.MIME_PNG, (err, buff) => {
if (err) return message.say('An Unknown Error Occurred.');
return message.channel.send({files: [{attachment: buff}]});
+2 -2
View File
@@ -30,9 +30,9 @@ module.exports = class BeautifulCommand extends Command {
images.push(Jimp.read('https://i.imgur.com/OOQ9QwQ.jpg'));
const [avatar, beautiful] = await Promise.all(images);
avatar.resize(200, 200);
beautiful.blit(avatar, 432, 42);
beautiful.composite(avatar, 432, 42);
avatar.resize(190, 190);
beautiful.blit(avatar, 451, 434);
beautiful.composite(avatar, 451, 434);
beautiful.getBuffer(Jimp.MIME_PNG, (err, buff) => {
if (err) return message.say('An Unknown Error Occurred.');
return message.channel.send({files: [{attachment: buff}]});
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class BobRossCommand extends Command {
return message.say('This Command requires the `Attach Files` Permission.');
const { user } = args;
const userAvatar = user.displayAvatarURL.replace(/(png|jpg|jpeg|gif|webp)/, 'png');
const blank = new Jimp(600, 775, 0xFFFFFF);
const blank = new Jimp(600, 775, 0xFFFFFFFF);
let images = [];
images.push(Jimp.read(userAvatar));
images.push(Jimp.read('https://i.imgur.com/7NSiFLd.png'));
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = class RIPCommand extends Command {
images.push(Jimp.read('https://i.imgur.com/KriteWm.jpg'));
const [avatar, gravestone] = await Promise.all(images);
avatar.resize(200, 200);
gravestone.blit(avatar, 158, 51);
gravestone.composite(avatar, 158, 51);
gravestone.getBuffer(Jimp.MIME_PNG, (err, buff) => {
if (err) return message.say('An Unknown Error Occurred.');
return message.channel.send({files: [{attachment: buff}]});
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports = class SteamCardCommand extends Command {
const { user } = args;
const username = message.guild ? message.guild.member(user).displayName : user.username;
const userAvatar = user.displayAvatarURL.replace(/(png|jpg|jpeg|gif|webp)/, 'png');
const blank = new Jimp(494, 568, 0xFFFFFF);
const blank = new Jimp(494, 568, 0xFFFFFFFF);
let images = [];
images.push(Jimp.read(userAvatar));
images.push(Jimp.read('https://i.imgur.com/JF0WwQX.png'));
+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = class TriggeredCommand extends Command {
return message.say('This Command requires the `Attach Files` Permission.');
const { user } = args;
const userAvatar = user.displayAvatarURL.replace(/(png|jpg|jpeg|gif|webp)/, 'png');
const blank = new Jimp(320, 371, 0xFFFFFF);
const blank = new Jimp(320, 371, 0xFFFFFFFF);
let images = [];
images.push(Jimp.read(userAvatar));
images.push(Jimp.read('https://i.imgur.com/tF9yF62.png'));
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "16.4.0",
"version": "16.4.1",
"description": "A Discord Bot",
"main": "shardingmanager.js",
"scripts": {