From b113c136790c0aceed563bbab6c648b4b50f5756 Mon Sep 17 00:00:00 2001 From: MSFTserver Date: Fri, 10 Nov 2017 11:28:59 -0800 Subject: [PATCH] update timed function with fix --- bot/modules/hash.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot/modules/hash.js b/bot/modules/hash.js index 973a9d1..4805d9d 100644 --- a/bot/modules/hash.js +++ b/bot/modules/hash.js @@ -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 - } }); } });