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 43d656389449023ca84a9ddeabb35743431d6f05
parent 4a642f67252b9bb703dc4e888bee5f767bf5a357
Author: Marcel Radzio <marcel@radzio-sh.de>
Date:   Thu, 10 Dec 2015 23:27:55 +0100

maybe fixed the irc bot

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

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