botkit

Botkit With Express

孤街醉人 提交于 2021-02-19 04:08:30
问题 The documentation at Botkit (https://github.com/howdyai/botkit/blob/master/readme-facebook.md) is pretty not meaningful at all: // if you are already using Express, you can use your own server instance... // see "Use BotKit with an Express web server" controller.setupWebserver(process.env.port,function(err,webserver) { controller.createWebhookEndpoints(controller.webserver, bot, function() { console.log('This bot is online!!!'); }); }); Moreover, without a custom webserver (like express),

Botkit With Express

微笑、不失礼 提交于 2021-02-19 04:07:49
问题 The documentation at Botkit (https://github.com/howdyai/botkit/blob/master/readme-facebook.md) is pretty not meaningful at all: // if you are already using Express, you can use your own server instance... // see "Use BotKit with an Express web server" controller.setupWebserver(process.env.port,function(err,webserver) { controller.createWebhookEndpoints(controller.webserver, bot, function() { console.log('This bot is online!!!'); }); }); Moreover, without a custom webserver (like express),

Slack: How can I remove a message's action buttons without Slack appending “edited”

拈花ヽ惹草 提交于 2019-12-11 15:12:46
问题 I have a Slackbot message that has action buttons (see here). When a user click's a button, we perform a bit of work on our server and then use chat.update to remove the action buttons and update the message's footer: removeButtons(reply, convo, footer) { const data = reply.original_message; delete data.attachments[0].actions; data.channel = reply.channel; if (footer) { data.attachments[0].footer = footer; } this.bot.api.chat.update(data, (res) => { }); } Everything is working great but Slack

Domains are not being added, Whitelist domains facebook messenger extension

社会主义新天地 提交于 2019-12-08 18:57:26
I've been trying to whitelist my domains following the instruction that is given by facebook but nothing is working. I first tried with curl, the response is {result:"success"} but when I try to list the domains that are whitelisted I am getting {data:[]} Then I tried using node request module as follow: request.post("https://graph.facebook.com/v2.6/me/messenger_profile?access_token=sfdlksdfu79r9429049824982342348sjdfsf", { "setting_type": "domain_whitelisting", "whitelisted_domains": ["https://mydomainw.com", "https://mydomainw.com/profile", "https://sfujyx.com/ofr", "mydomain1.com",

Domains are not being added, Whitelist domains facebook messenger extension

試著忘記壹切 提交于 2019-12-08 06:54:33
问题 I've been trying to whitelist my domains following the instruction that is given by facebook but nothing is working. I first tried with curl, the response is {result:"success"} but when I try to list the domains that are whitelisted I am getting {data:[]} Then I tried using node request module as follow: request.post("https://graph.facebook.com/v2.6/me/messenger_profile?access_token=sfdlksdfu79r9429049824982342348sjdfsf", { "setting_type": "domain_whitelisting", "whitelisted_domains": ["https

Invalid command 'PassengerAppRoot', perhaps misspelled or defined by a module not included in the server configuration

≡放荡痞女 提交于 2019-12-02 15:37:43
问题 I have followed every step for installation given in Installing Passenger + Apache on a Linux/Unix production server for Node.js apps + Red Hat 6 / CentOS 6 (with RPM) and everything worked but when I am trying to configure my subdomain in virtualhost on my centos 6 server using WHM to host my botkit bot, I get this error : The “/usr/local/apache/bin/httpd” command (process 27088) reported error number 1 when it ended. Configuration problem detected on line 9 of file /usr/local/apache/conf