mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 14:18:36 +02:00
Image Edit Group, Achievement Command
This commit is contained in:
@@ -21,6 +21,7 @@ client.registry
|
|||||||
['settings', 'Server Settings'],
|
['settings', 'Server Settings'],
|
||||||
['response', 'Random Response'],
|
['response', 'Random Response'],
|
||||||
['randomimg', 'Random Image'],
|
['randomimg', 'Random Image'],
|
||||||
|
['imageedit', 'Image Manipulation'],
|
||||||
['avataredit', 'Avatar Manipulation'],
|
['avataredit', 'Avatar Manipulation'],
|
||||||
['textedit', 'Text Manipulation'],
|
['textedit', 'Text Manipulation'],
|
||||||
['numedit', 'Number Manipulation'],
|
['numedit', 'Number Manipulation'],
|
||||||
|
|||||||
@@ -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) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'meme',
|
name: 'meme',
|
||||||
group: 'random',
|
group: 'imageedit',
|
||||||
memberName: 'meme',
|
memberName: 'meme',
|
||||||
description: 'Sends a Meme with text of your choice, and a background of your choice.',
|
description: 'Sends a Meme with text of your choice, and a background of your choice.',
|
||||||
details: `**Codes:** ${codes.join(', ')}`,
|
details: `**Codes:** ${codes.join(', ')}`,
|
||||||
@@ -6,7 +6,7 @@ module.exports = class PokemonFusionCommand extends Command {
|
|||||||
super(client, {
|
super(client, {
|
||||||
name: 'pokemon-fusion',
|
name: 'pokemon-fusion',
|
||||||
aliases: ['poke-fusion', 'poke-fuse'],
|
aliases: ['poke-fusion', 'poke-fuse'],
|
||||||
group: 'random',
|
group: 'imageedit',
|
||||||
memberName: 'pokemon-fusion',
|
memberName: 'pokemon-fusion',
|
||||||
description: 'Fuses two Generation 1 Pokémon together.',
|
description: 'Fuses two Generation 1 Pokémon together.',
|
||||||
args: [
|
args: [
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "22.1.9",
|
"version": "22.2.0",
|
||||||
"description": "A Discord Bot",
|
"description": "A Discord Bot",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user