mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-09-01 17:55:17 +00:00
update timed function with fix
This commit is contained in:
parent
fed6335ed5
commit
b113c13679
1 changed files with 1 additions and 2 deletions
|
@ -29,7 +29,7 @@ needle.get('https://explorer.lbry.io/api/v1/status', function(error, response) {
|
||||||
needle.get('https://whattomine.com/coins/164.json', function(error, response) {
|
needle.get('https://whattomine.com/coins/164.json', function(error, response) {
|
||||||
if (error || response.statusCode !== 200) {
|
if (error || response.statusCode !== 200) {
|
||||||
msg.channel.send('whattomine API is not available');
|
msg.channel.send('whattomine API is not available');
|
||||||
} else {
|
}
|
||||||
var data = response.body;
|
var data = response.body;
|
||||||
var reward = Number(data.block_reward);
|
var reward = Number(data.block_reward);
|
||||||
var block_time = Number(data.block_time);
|
var block_time = Number(data.block_time);
|
||||||
|
@ -52,7 +52,6 @@ needle.get('https://explorer.lbry.io/api/v1/status', function(error, response) {
|
||||||
};
|
};
|
||||||
bot.channels.get(ChannelID).send({ embed })
|
bot.channels.get(ChannelID).send({ embed })
|
||||||
return
|
return
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue