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 37fee2389fb4313615521e242cea90c8643aded3
parent 3e6234ce5ff44bc16a82b85b7feede27b7a3a915
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 10 Sep 2016 23:48:13 +0200

refix telegram

Diffstat:
Mhandlers/getNodes.js | 2+-
Mhandlers/telegram.js | 1-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/handlers/getNodes.js b/handlers/getNodes.js @@ -91,7 +91,7 @@ module.exports = { }); var output = "Current nodes in " + name + ": " + count if(handler === "telegram"){ - bot.editMessageText(output, TfromId) + bot.sendMessage(TfromId, output) botan.track(Tmsg, 'nodes ' + ccode_func) }else { if(handler === "irc"){ diff --git a/handlers/telegram.js b/handlers/telegram.js @@ -27,7 +27,6 @@ module.exports = { _.find(communities.communities, function (key) { var ccode = key["ccode"]; if (ccode.toLowerCase() === resp.toLowerCase()) { - bot.sendMessage(fromId, "Counting Nodes"); getNodes.countNodes(resp.toLowerCase(), "telegram", fromId, msg, "", bot, botan) } });