disable gifbot til we fix lbrynet

This commit is contained in:
Alex Grintsvayg 2016-09-08 17:55:03 -04:00
parent 0af495264d
commit 5fc97d5785

6
app.js
View file

@ -30,8 +30,8 @@ tipbot.init(process.env.RPCUSER, process.env.RPCPASSWORD);
var hashbot = require('./bots/hashbot'); var hashbot = require('./bots/hashbot');
hashbot.init(slackbot, process.env.MINING_CHANNEL); hashbot.init(slackbot, process.env.MINING_CHANNEL);
var gifbot = require('./bots/gifbot'); //var gifbot = require('./bots/gifbot');
gifbot.init(slackbot, process.env.IMGUR_CLIENT_ID); //gifbot.init(slackbot, process.env.IMGUR_CLIENT_ID);
slackbot.on('start', function() { slackbot.on('start', function() {
slackbot.on('message', function(data) { slackbot.on('message', function(data) {
@ -39,7 +39,7 @@ slackbot.on('start', function() {
setTimeout(function() { sendWelcomeMessage(data.user.id); }, 2000); //Delay because of slow slack api updates which sometimes does not send msg. setTimeout(function() { sendWelcomeMessage(data.user.id); }, 2000); //Delay because of slow slack api updates which sometimes does not send msg.
} }
if (data.text) { if (data.text) {
gifbot.handle_msg(data.text, data.channel); // gifbot.handle_msg(data.text, data.channel);
var command = data.text.trim().split(' ')[0]; var command = data.text.trim().split(' ')[0];