Merge pull request #272 from ProfessorDey/patch-3

Neaten up Definitions
This commit is contained in:
Ralph 2019-10-11 00:16:01 -04:00 committed by GitHub
commit 4c9c4c1dbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,14 +23,8 @@ exports.stats = {
let volume24_btc = Number(data.total_volume);
let dt = new Date();
let timestamp = dt.toUTCString();
let hr_indicator = ':thumbsup:';
let day_indicator = ':thumbsup:';
if (percent_change_1h < 0) {
hr_indicator = ':thumbsdown:';
}
if (percent_change_24h < 0) {
day_indicator = ':thumbsdown:';
}
let hr_indicator = (percent_change_1h < 0) ? ':thumbsdown:' : ':thumbsup:';
let day_indicator = (percent_change_24h < 0) ? ':thumbsdown:' : ':thumbsup:';
needle.get('https://api.coingecko.com/api/v3/coins/markets?vs_currency=gbp&ids=lbry-credits&order=market_cap_desc&per_page=100&page=1&sparkline=false', function (error, response) {
if (error || response.statusCode !== 200) {