@@ -1,6 +1,6 @@ |
||
1 | 1 |
{ |
2 | 2 |
"name": "hubot-multi-adapter", |
3 |
- "version": "0.1.5", |
|
3 |
+ "version": "0.1.6", |
|
4 | 4 |
"description": "A Hubot adapter that can receive messages thru socket.io or telegram", |
5 | 5 |
"main": "src/multi-adapter", |
6 | 6 |
"scripts": { |
@@ -14,9 +14,9 @@ app = express() |
||
14 | 14 |
app.listen 3000, => |
15 | 15 |
console.log('HTTP server on port 3000') |
16 | 16 |
|
17 |
-var TelegramBot = require('node-telegram-bot-api'); |
|
17 |
+TelegramBot = require('node-telegram-bot-api'); |
|
18 | 18 |
#Telegram bot token (given when you create a new bot using the BotFather); |
19 |
-var telegramBot = new TelegramBot(process.env.TELEGRAM_TOKEN, {polling: false}); |
|
19 |
+telegramBot = new TelegramBot(process.env.TELEGRAM_TOKEN, {polling: false}); |
|
20 | 20 |
|
21 | 21 |
class MultiAdapter extends Adapter |
22 | 22 |
|