freifunk-bot

Modular parser for the hackerspace door status with handlers for multiple services
git clone git://archive.git.mtrnord.blog/MTRNord/freifunk-bot.git
Log | Files | Refs | README | LICENSE

commit 65fbf51e9770027643196a188ee5f4ff854a0ccb
parent 38a0ec68bb584105f78597ea7e095ff4107707fa
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 11 Sep 2016 10:53:12 +0200

Fix something at the IRC

Diffstat:
Mhandlers/irc.js | 2+-
Mhandlers/pushbullet.js | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/handlers/irc.js b/handlers/irc.js @@ -84,7 +84,7 @@ _.find(params_config["servers"], function (key) { autoConnect: false, messageSplit: 1000000, floodProtection: true, - floodProtectionDelay: 1000, + floodProtectionDelay: 1000 }); clients.push(bot[key]); } diff --git a/handlers/pushbullet.js b/handlers/pushbullet.js @@ -17,7 +17,7 @@ module.exports = { */ pushbulletSend: function (door_status){ var token = process.env.pushbullet_api - if (typeof token == 'undefined' && !token) { + if (typeof token === 'undefined' && !token) { console.log("No pushbullet token defined") } curl.request({ url: 'https://api.pushbullet.com/v2/pushes', method: 'POST', headers: { "Access-Token": token, "Content-Type": 'application/json' }, data: '{"channel_tag": "space-door", "body":"'+ door_status + '","title":"Door Status","type":"note"}'}, function (err, stdout, meta) {