Image Edit Group, Achievement Command

This commit is contained in:
Daniel Odendahl Jr
2017-06-11 16:51:29 +00:00
parent e12eb42380
commit 5478098d2b
5 changed files with 42 additions and 3 deletions
+1
View File
@@ -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'],
+38
View File
@@ -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' }] });
}
};
@@ -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(', ')}`,
@@ -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: [
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "22.1.9",
"version": "22.2.0",
"description": "A Discord Bot",
"main": "Shard.js",
"scripts": {