mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
Pokemon Fusion
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const pokemon = require('../../assets/json/pokemon-fusion');
|
||||
|
||||
module.exports = class PokemonFusionCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'pokemon-fusion',
|
||||
aliases: ['poke-fusion', 'poke-fuse'],
|
||||
group: 'random',
|
||||
memberName: 'pokemon-fusion',
|
||||
description: 'Fuses two Generation 1 Pokemon together.',
|
||||
args: [
|
||||
{
|
||||
key: 'source1',
|
||||
prompt: 'What Pokemon should be fused?',
|
||||
type: 'string',
|
||||
validate: (source1) => {
|
||||
if (pokemon.includes(source1.toLowerCase())) return true;
|
||||
else return 'Only Pokemon from Generation 1 may be used.';
|
||||
},
|
||||
parse: (source1) => pokemon[source1.toLowerCase()]
|
||||
},
|
||||
{
|
||||
key: 'source2',
|
||||
prompt: 'What Pokemon should be fused?',
|
||||
type: 'string',
|
||||
validate: (source2) => {
|
||||
if (pokemon.includes(source2.toLowerCase())) return true;
|
||||
else return 'Only Pokemon from Generation 1 may be used.';
|
||||
},
|
||||
parse: (source2) => pokemon[source2.toLowerCase()]
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, args) {
|
||||
const { source1, source2 } = args;
|
||||
return msg.say(`http://images.alexonsager.net/pokemon/fused/${source1}/${source1}.${source2}.png`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user