3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

Merge pull request #666 from Scritches/master

fixed tabs/spaces and added spotify uri for desktop app linkability
This commit is contained in:
Luke Slater 2018-03-22 11:03:55 +00:00 committed by GitHub
commit 9a7e1ab4bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 76 additions and 75 deletions

View File

@ -107,7 +107,8 @@ var spotify = function(dbot) {
return a.name }).join(', '), return a.name }).join(', '),
'album': body.tracks.items[0].album.name, 'album': body.tracks.items[0].album.name,
'track': body.tracks.items[0].name, 'track': body.tracks.items[0].name,
'url': t 'url': t,
'uri': body.tracks.items[0].uri
})); }));
} else { } else {
event.reply(dbot.t('not-found')); event.reply(dbot.t('not-found'));

View File

@ -21,11 +21,11 @@
"it": "[Track] {artist} {track} (dall' album {album})" "it": "[Track] {artist} {track} (dall' album {album})"
}, },
"found": { "found": {
"en": "[{url}] {artist} {track} (from {album})", "en": "[{url} - {uri}] {artist} {track} (from {album})",
"cy": "[{url}] {artist} {track} (o'r albwm: {album})", "cy": "[{url} - {uri}] {artist} {track} (o'r albwm: {album})",
"de": "[{url}] {artist} {track} (aus dem Album {album})", "de": "[{url} - {uri}] {artist} {track} (aus dem Album {album})",
"fr": "[{url}] {artist} {track} (tiré de {album})", "fr": "[{url} - {uri}] {artist} {track} (tiré de {album})",
"it": "[{url}] {artist} {track} (dall' album {album})" "it": "[{url} - {uri}] {artist} {track} (dall' album {album})"
}, },
"not-found": { "not-found": {
"en": "No results.", "en": "No results.",