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 0a9a2bd9f9bb69fa33e176ae2ff228425ea1089c
parent 43d656389449023ca84a9ddeabb35743431d6f05
Author: Marcel Radzio <marcel@radzio-sh.de>
Date:   Thu, 10 Dec 2015 23:30:33 +0100

maybe fixed the irc bot

Diffstat:
Mhandlers/irc.js | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/handlers/irc.js b/handlers/irc.js @@ -9,16 +9,14 @@ module.exports = { bot.addListener('error', function(message) { console.log('error: ', message); }); - bot.connect(5, function() { + bot.connect(10, function() { bot.send('msg', 'NickServ identify DoorBot'); bot.say('#hackerspace', 'Door Bot is starting to watch on the Door Status'); }); }, ircSend: function (door_status){ - bot.connect(5, function() { - bot.send('say', 'Door Status changed to: ' + door_status); - }); + bot.say('#hackerspace', 'Door Status changed to: ' + door_status); } }; \ No newline at end of file