mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Fix Vocaloid
This commit is contained in:
@@ -35,7 +35,8 @@ module.exports = class SteamCommand extends Command {
|
|||||||
const price = current === original ? `$${current}` : `~~$${original}~~ $${current}`;
|
const price = current === original ? `$${current}` : `~~$${original}~~ $${current}`;
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setColor(0x101D2F)
|
.setColor(0x101D2F)
|
||||||
.setAuthor(`Steam - ${body.items[0].name}`, 'https://i.imgur.com/vL8b4D5.png')
|
.setAuthor('Steam', 'https://i.imgur.com/vL8b4D5.png')
|
||||||
|
.setTitle(body.items[0].name)
|
||||||
.setURL(`http://store.steampowered.com/app/${body.items[0].id}`)
|
.setURL(`http://store.steampowered.com/app/${body.items[0].id}`)
|
||||||
.setImage(body.items[0].tiny_image)
|
.setImage(body.items[0].tiny_image)
|
||||||
.addField('❯ Price',
|
.addField('❯ Price',
|
||||||
|
|||||||
@@ -35,7 +35,8 @@ module.exports = class VocaloidCommand extends Command {
|
|||||||
});
|
});
|
||||||
if (!body.totalCount) return msg.say('No Results.');
|
if (!body.totalCount) return msg.say('No Results.');
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setAuthor('VocaDB', 'https://i.imgur.com/MklQqa2.png')
|
.setColor(0x86D2D0)
|
||||||
|
.setAuthor('VocaDB', 'https://i.imgur.com/9Tx9UIc.jpg')
|
||||||
.setTitle(body.items[0].name)
|
.setTitle(body.items[0].name)
|
||||||
.setURL(`http://vocadb.net/S/${body.items[0].id}`)
|
.setURL(`http://vocadb.net/S/${body.items[0].id}`)
|
||||||
.addField('❯ Artist',
|
.addField('❯ Artist',
|
||||||
@@ -43,7 +44,7 @@ module.exports = class VocaloidCommand extends Command {
|
|||||||
.addField('❯ Publish Date',
|
.addField('❯ Publish Date',
|
||||||
moment(body.items[0].publishDate).format('MMMM Do YYYY'), true)
|
moment(body.items[0].publishDate).format('MMMM Do YYYY'), true)
|
||||||
.addField('❯ Length',
|
.addField('❯ Length',
|
||||||
(body.items[0].lengthSeconds / 60).toFixed(2).replace(/\./g, ':'), true);
|
moment.duration(body.items[0].lengthSeconds, 's').format(), true);
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "28.2.0",
|
"version": "28.2.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user