mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
Neaten up Definitions
Just a little adjustment to cut out a few unnecessary lines where an inline ternary operator would do.
This commit is contained in:
parent
0e0190d874
commit
ce3bfb87e9
1 changed files with 2 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue