This commit is contained in:
Daniel Odendahl Jr
2017-11-09 00:02:59 +00:00
parent 819db49057
commit b6afded306
125 changed files with 743 additions and 289 deletions
+4 -4
View File
@@ -8,10 +8,10 @@ module.exports = class NeopetCommand extends Command {
aliases: ['neopet-image', 'neopet-image-finder'],
group: 'search',
memberName: 'neopet',
description: 'Searches for Neopets with the username of your query.',
description: 'Responds with the image of a specific Neopet.',
args: [
{
key: 'query',
key: 'pet',
prompt: 'What pet would you like to get an image of?',
type: 'string'
}
@@ -19,12 +19,12 @@ module.exports = class NeopetCommand extends Command {
});
}
async run(msg, { query }) {
async run(msg, { pet }) {
try {
const { text } = await snekfetch
.get('http://www.sunnyneo.com/petimagefinder.php')
.query({
name: query,
name: pet,
size: 5,
mood: 1
});