fix hash function

This commit is contained in:
MSFTserver 2017-10-29 11:36:08 -07:00 committed by GitHub
parent d70164716b
commit 56c2039a3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');