Lyrics and Thumbnail in VOCALOID

This commit is contained in:
Daniel Odendahl Jr
2017-07-31 03:33:47 +00:00
parent e380444cb3
commit 20ff3f6f0e
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -31,7 +31,8 @@ module.exports = class VocaloidCommand extends Command {
getTotalCount: true,
sort: 'FavoritedTimes',
preferAccurateMatches: true,
nameMatchMode: 'Exact'
nameMatchMode: 'Words',
fields: 'ThumbUrl,Lyrics'
});
if (!body.totalCount) return msg.say('No Results.');
const embed = new MessageEmbed()
@@ -39,6 +40,8 @@ module.exports = class VocaloidCommand extends Command {
.setAuthor('VocaDB', 'https://i.imgur.com/9Tx9UIc.jpg')
.setTitle(body.items[0].name)
.setURL(`http://vocadb.net/S/${body.items[0].id}`)
.setDescription(body.items[0].lyrics[0] ? body.items[0].lyrics[0].value : 'Unable to find lyrics.')
.setThumbnail(body.items[0].thumbUrl)
.addField(' Artist',
body.items[0].artistString)
.addField(' Publish Date',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "28.2.1",
"version": "28.2.2",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {