mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Fix
This commit is contained in:
@@ -5,7 +5,7 @@ const { MessageEmbed } = require('discord.js');
|
|||||||
module.exports = class NeopetItemCommand extends Command {
|
module.exports = class NeopetItemCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'neopet-item',
|
name: 'neopets-item',
|
||||||
aliases: ['jellyneo', 'jellyneo-item', 'jellyneo-item-database'],
|
aliases: ['jellyneo', 'jellyneo-item', 'jellyneo-item-database'],
|
||||||
group: 'search',
|
group: 'search',
|
||||||
memberName: 'neopet-item',
|
memberName: 'neopet-item',
|
||||||
@@ -34,7 +34,7 @@ module.exports = class NeopetItemCommand extends Command {
|
|||||||
const { text } = await snekfetch.get(`https://items.jellyneo.net/item/${id[1]}/`);
|
const { text } = await snekfetch.get(`https://items.jellyneo.net/item/${id[1]}/`);
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setColor(0xFFCE31)
|
.setColor(0xFFCE31)
|
||||||
.setAuthor('Neopets', 'https://i.imgur.com/umW0YwZ.png')
|
.setAuthor('Neopets', 'https://i.imgur.com/BP8qxJH.png')
|
||||||
.setTitle(text.match(/<h1>(.+)<\/h1>/)[1])
|
.setTitle(text.match(/<h1>(.+)<\/h1>/)[1])
|
||||||
.setDescription(text.match(/<em>(.+)<\/em>/)[1])
|
.setDescription(text.match(/<em>(.+)<\/em>/)[1])
|
||||||
.setURL(`https://items.jellyneo.net/item/${id[1]}/`)
|
.setURL(`https://items.jellyneo.net/item/${id[1]}/`)
|
||||||
|
|||||||
Reference in New Issue
Block a user