From 56c2039a3ff7cbd6fc7fbfe9a0ec96c38e70a4d5 Mon Sep 17 00:00:00 2001 From: MSFTserver Date: Sun, 29 Oct 2017 11:36:08 -0700 Subject: [PATCH] fix hash function --- bot/modules/hash.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/modules/hash.js b/bot/modules/hash.js index e12396d..e20402d 100644 --- a/bot/modules/hash.js +++ b/bot/modules/hash.js @@ -10,10 +10,10 @@ exports.custom = [ exports.timedhash = function(bot) { setInterval(function() { - sendMiningInfo(bot, msg); - }, 60 * 60 * 1000); + sendMiningInfo(bot); + }, 6 * 60 * 60 * 1000); - function sendMiningInfo(bot, msg) { + function sendMiningInfo(bot) { needle.get('https://explorer.lbry.io/api/v1/status', function(error, response) { if (error || response.statusCode !== 200) { bot.channels.get(ChannelID).send('Explorer API is not available');