Permalink
Browse files
Fix likes count for Soundcloud
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+1
−1
scripts/servisi.coffee
|
|
@@ -30,7 +30,7 @@ module.exports = (bot) -> |
|
|
bot.fetchJSON "http://api.soundcloud.com/tracks.json?order=hotness&client_id=93e33e327fd8a9b77becd179652272e2&q=#{encodeURI(f)}", (data) ->
|
|
|
if data
|
|
|
izbran = _.first(data)
|
|
|
- r.reply "#{izbran.title}(#{moment.duration(izbran.duration).humanize()}) #{izbran.permalink_url} ♥#{humanize.numberFormat(izbran.favoritings_count,0)} ▶#{humanize.numberFormat(izbran.playback_count,0)}"
|
|
|
+ r.reply "#{izbran.title}(#{moment.duration(izbran.duration).humanize()}) #{izbran.permalink_url} ♥#{humanize.numberFormat(izbran.likes_count,0)} ▶#{humanize.numberFormat(izbran.playback_count,0)}"
|
|
|
else
|
|
|
r.reply "Ni zadetka"
|
|
|
|
|
|
|
0 comments on commit
cd794ba