mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-31 01:11:32 +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) {
|
||||
if (error || response.statusCode !== 200) {
|
||||
msg.channel.send('whattomine API is not available');
|
||||
} else {
|
||||
}
|
||||
var data = response.body;
|
||||
var reward = Number(data.block_reward);
|
||||
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 })
|
||||
return
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue