Skip to content
This repository was archived by the owner on Aug 25, 2023. It is now read-only.

Commit 54f603c

Browse files
committed
Webhooks for ThingsBot
1 parent c094f3d commit 54f603c

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

examples/redditlivebot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"author": "Alberto Coscia",
1111
"license": "GPL-3.0",
1212
"dependencies": {
13-
"nodeogram": "0.0.3",
13+
"nodeogram": "0.0.5",
1414
"superagent": "^2.1.0",
1515
"superagent-promise": "^1.1.0",
1616
"websocket": "^1.0.23"
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"token" : "SOMETHING"
2+
"token" : "SOMETHING",
3+
"useWebhooks": true,
4+
"webhookPort": 8080,
5+
"webhookRoute": "/"
36
}

examples/thingsbot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"author": "Alberto Coscia",
1111
"license": "GPL-3.0",
1212
"dependencies": {
13-
"nodeogram": "0.0.3",
13+
"nodeogram": "0.0.5",
1414
"superagent": "^1.8.3"
1515
}
1616
}

examples/thingsbot/thingsbot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const nodeogram = require('nodeogram'),
33
Bot = nodeogram.Bot,
44
InlineQueryResultArticle = nodeogram.InlineQueryResultArticle;
55

6-
bot = new Bot(config.token, {profiles_path: __dirname + '/profiles.json', enableHelp: false});
6+
bot = new Bot(config.token, {profiles_path: __dirname + '/profiles.json', enableHelp: false, useWebhooks: config.useWebhooks, webhookPort: config.webhookPort, webhookRoute: config.webhookRoute});
77
bot.init();
88

99
function search(query, limit) {

0 commit comments

Comments
 (0)