Consistency

This commit is contained in:
Daniel Odendahl Jr
2018-08-30 14:19:48 +00:00
parent b2a89819ef
commit 5ed413763c
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -255,7 +255,6 @@ on the [home server](https://discord.gg/sbMe32W).
* **3000-years**: Draws a user's avatar over Pokémon's "It's been 3000 years" meme.
* **approved**: Draws an "approved" stamp over a user's avatar.
* **avatar-fusion**: Draws a a user's avatar over a user's avatar.
* **beautiful**: Draws a user's avatar over Gravity Falls' "Oh, this? This is beautiful." meme.
* **bob-ross**: Draws a user's avatar over Bob Ross' canvas.
* **challenger**: Draws a user's avatar over Super Smash Bros.'s "Challenger Approaching" screen.
* **dexter**: Draws a user's avatar over the screen of Dexter from Pokémon.
@@ -273,7 +272,8 @@ on the [home server](https://discord.gg/sbMe32W).
* **steam-card**: Draws a user's avatar on a Steam Trading Card.
* **steam-now-playing**: Draws a user's avatar and the game of your choice over a Steam "now playing" notification.
* **the-ultimate-tattoo**: Draws a user's avatar as "The Ultimate Tattoo".
* **this-is-worthless**: Draws a user's useless avatar.
* **this-is-beautiful**: Draws a user's avatar over Gravity Falls' "Oh, this? This is beautiful." meme.
* **this-is-worthless**: Draws a user's avatar over Gravity Falls' "Oh, this? This is worthless." meme.
* **thug-life**: Draws "Thug Life" over a user's avatar.
* **triggered**: Draws a user's avatar over the "Triggered" meme.
* **wanted**: Draws a user's avatar over a wanted poster.

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 258 KiB

@@ -3,13 +3,13 @@ const { createCanvas, loadImage } = require('canvas');
const request = require('node-superfetch');
const path = require('path');
module.exports = class BeautifulCommand extends Command {
module.exports = class ThisIsBeautifulCommand extends Command {
constructor(client) {
super(client, {
name: 'beautiful',
aliases: ['grunkle-stan'],
name: 'this-is-beautiful',
aliases: ['beautiful', 'grunkle-stan'],
group: 'avatar-edit',
memberName: 'beautiful',
memberName: 'this-is-beautiful',
description: 'Draws a user\'s avatar over Gravity Falls\' "Oh, this? This is beautiful." meme.',
throttling: {
usages: 1,
@@ -30,7 +30,7 @@ module.exports = class BeautifulCommand extends Command {
async run(msg, { user }) {
const avatarURL = user.displayAvatarURL({ format: 'png', size: 128 });
try {
const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'beautiful.png'));
const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'this-is-beautiful.png'));
const { body } = await request.get(avatarURL);
const avatar = await loadImage(body);
const canvas = createCanvas(base.width, base.height);
@@ -40,7 +40,7 @@ module.exports = class BeautifulCommand extends Command {
ctx.drawImage(avatar, 249, 24, 105, 105);
ctx.drawImage(avatar, 249, 223, 105, 105);
ctx.drawImage(base, 0, 0);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'beautiful.png' }] });
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'this-is-beautiful.png' }] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
+1 -1
View File
@@ -10,7 +10,7 @@ module.exports = class ThisIsWorthlessCommand extends Command {
aliases: ['worthless'],
group: 'avatar-edit',
memberName: 'this-is-worthless',
description: 'Draws a user\'s useless avatar.',
description: 'Draws a user\'s avatar over Gravity Falls\' "Oh, this? This is worthless." meme.',
throttling: {
usages: 1,
duration: 10
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "88.2.0",
"version": "88.2.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {