diff --git a/XiaoBot.js b/XiaoBot.js index e40c003c..d6b9a40c 100644 --- a/XiaoBot.js +++ b/XiaoBot.js @@ -21,6 +21,7 @@ client.registry ['settings', 'Server Settings'], ['response', 'Random Response'], ['randomimg', 'Random Image'], + ['imageedit', 'Image Manipulation'], ['avataredit', 'Avatar Manipulation'], ['textedit', 'Text Manipulation'], ['numedit', 'Number Manipulation'], diff --git a/commands/imageedit/achievement.js b/commands/imageedit/achievement.js new file mode 100644 index 00000000..7a9d0946 --- /dev/null +++ b/commands/imageedit/achievement.js @@ -0,0 +1,38 @@ +const Command = require('../../structures/Command'); +const snekfetch = require('snekfetch'); + +module.exports = class AchievementCommand extends Command { + constructor(client) { + super(client, { + name: 'achievement', + group: 'imageedit', + memberName: 'achievement', + description: 'Sends a Minecraft Achievement with the text of your choice.', + clientPermissions: ['ATTACH_FILES'], + args: [ + { + key: 'text', + prompt: 'What should the text of the achievement be?', + type: 'string', + validate: (text) => { + if (text.length < 25) return true; + else return 'Text must be under 25 Characters.'; + } + } + ] + }); + } + + async run(msg, args) { + const { text } = args; + const { body } = await snekfetch + .get('https://www.minecraftskinstealer.com/achievement/a.php') + .query({ + i: 1, + h: 'Achievement Get!', + t: text + }); + return msg.say({ files: [{ attachment: body, name: 'achievement.png' }] }); + } +}; + diff --git a/commands/random/meme.js b/commands/imageedit/meme.js similarity index 98% rename from commands/random/meme.js rename to commands/imageedit/meme.js index d034385c..2c43db5b 100644 --- a/commands/random/meme.js +++ b/commands/imageedit/meme.js @@ -5,7 +5,7 @@ module.exports = class MemeCommand extends Command { constructor(client) { super(client, { name: 'meme', - group: 'random', + group: 'imageedit', memberName: 'meme', description: 'Sends a Meme with text of your choice, and a background of your choice.', details: `**Codes:** ${codes.join(', ')}`, diff --git a/commands/random/pokemon-fusion.js b/commands/imageedit/pokemon-fusion.js similarity index 98% rename from commands/random/pokemon-fusion.js rename to commands/imageedit/pokemon-fusion.js index 5342fd29..d28073f6 100644 --- a/commands/random/pokemon-fusion.js +++ b/commands/imageedit/pokemon-fusion.js @@ -6,7 +6,7 @@ module.exports = class PokemonFusionCommand extends Command { super(client, { name: 'pokemon-fusion', aliases: ['poke-fusion', 'poke-fuse'], - group: 'random', + group: 'imageedit', memberName: 'pokemon-fusion', description: 'Fuses two Generation 1 Pokémon together.', args: [ diff --git a/package.json b/package.json index 06225c0f..4d746030 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "22.1.9", + "version": "22.2.0", "description": "A Discord Bot", "main": "Shard.js", "scripts": {