Prefix Change and General Code Improvements

This commit is contained in:
Daniel Odendahl Jr
2017-04-17 15:33:20 +00:00
parent 75ad7fecaa
commit fd221e6f56
20 changed files with 29 additions and 30 deletions
+2 -2
View File
@@ -35,9 +35,9 @@ module.exports = class YearsCommand extends Command {
const [avatar, years] = await Promise.all(images);
avatar.resize(200, 200);
years.blit(avatar, 461, 127);
years.getBuffer(Jimp.MIME_PNG, (err, buff) => {
return years.getBuffer(Jimp.MIME_PNG, (err, buff) => {
if (err) return message.say(':x: Error! Something went wrong!');
return message.channel.sendFile(buff);
return message.channel.send({file: buff});
});
}
};
+2 -2
View File
@@ -37,9 +37,9 @@ module.exports = class BeautifulCommand extends Command {
beautiful.blit(avatar, 432, 42);
avatar.resize(190, 190);
beautiful.blit(avatar, 451, 434);
beautiful.getBuffer(Jimp.MIME_PNG, (err, buff) => {
return beautiful.getBuffer(Jimp.MIME_PNG, (err, buff) => {
if (err) return message.say(':x: Error! Something went wrong!');
return message.channel.sendFile(buff);
return message.channel.send({file: buff});
});
}
};
+2 -2
View File
@@ -39,9 +39,9 @@ module.exports = class BobRossCommand extends Command {
avatar.resize(300, 300);
nothing.composite(avatar, 44, 85);
nothing.composite(bob, 0, 0);
nothing.getBuffer(Jimp.MIME_PNG, (err, buff) => {
return nothing.getBuffer(Jimp.MIME_PNG, (err, buff) => {
if (err) return message.say(':x: Error! Something went wrong!');
return message.channel.sendFile(buff);
return message.channel.send({file: buff});
});
}
};
+2 -2
View File
@@ -36,9 +36,9 @@ module.exports = class RIPCommand extends Command {
const [avatar, gravestone] = await Promise.all(images);
avatar.resize(200, 200);
gravestone.blit(avatar, 60, 65);
gravestone.getBuffer(Jimp.MIME_PNG, (err, buff) => {
return gravestone.getBuffer(Jimp.MIME_PNG, (err, buff) => {
if (err) return message.say(':x: Error! Something went wrong!');
return message.channel.sendFile(buff);
return message.channel.send({file: buff});
});
}
};
+2 -2
View File
@@ -40,9 +40,9 @@ module.exports = class SteamCardCommand extends Command {
nothing.composite(avatar, 25, 25);
nothing.composite(steamcard, 0, 0);
nothing.print(font, 38, 20, userDisplayName);
nothing.getBuffer(Jimp.MIME_PNG, (err, buff) => {
return nothing.getBuffer(Jimp.MIME_PNG, (err, buff) => {
if (err) return message.say(':x: Error! Something went wrong!');
return message.channel.sendFile(buff);
return message.channel.send({file: buff});
});
}
};