Fix Vocaloid

This commit is contained in:
Daniel Odendahl Jr
2017-07-31 03:01:46 +00:00
parent 4e8cd5d91f
commit e380444cb3
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ module.exports = class SteamCommand extends Command {
const price = current === original ? `$${current}` : `~~$${original}~~ $${current}`;
const embed = new MessageEmbed()
.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}`)
.setImage(body.items[0].tiny_image)
.addField(' Price',
+3 -2
View File
@@ -35,7 +35,8 @@ module.exports = class VocaloidCommand extends Command {
});
if (!body.totalCount) return msg.say('No Results.');
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)
.setURL(`http://vocadb.net/S/${body.items[0].id}`)
.addField(' Artist',
@@ -43,7 +44,7 @@ module.exports = class VocaloidCommand extends Command {
.addField(' Publish Date',
moment(body.items[0].publishDate).format('MMMM Do YYYY'), true)
.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);
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "28.2.0",
"version": "28.2.1",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {