mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
fix hash function
This commit is contained in:
parent
d70164716b
commit
56c2039a3f
1 changed files with 3 additions and 3 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue