bots

Hero card buttons are represented as bullets after deploying it to azure

China☆狼群 提交于 2019-12-08 04:01:50
问题 I have developed a chat bot in node.js and deployed it to Microsoft Azure. I have done debugging locally using bot framework channel emulator and everything was perfect along with two buttons which I have added to a Hero Card. But after deploying the same code to Azure, those two buttons were converted to two bullets. Code: bot.dialog('/secondaryTrigger', [ function (session) { var hCard = new builder.HeroCard(session) .title('Hi '+session.userData.splittedName[0]+'!') .text('Select Your

Facebook Graph API subscribed_apps edge only works with pages I own

亡梦爱人 提交于 2019-12-07 15:37:55
问题 Introduction I have a Facebook APP and it is already published and approved to access the manage_pages and pages_messaging permissions. Facebook Login and Messenger are also installed. I also have a Webhook set and it works well. My objective I would like to make it easy for my users to create and publish a bot within the app, like what Chatfuel does. The user logins in using Facebook, create a new bot, link to a page and automatically the bot is available for use. The user will not be

Register for messages from collabd like XCSBuildService to receive Xcode Bots integration number

末鹿安然 提交于 2019-12-07 14:23:06
问题 During an Xcode Bots build each run gets an integration number assigned. This number does not show in the build logs but would be convenient to create http links back to the individual Xcode Bots build in an CI environment or enterprise app store. In the /Library/Server/Xcode/Logs/xcsbuildd.log I found that XCSBuildService gets a message/event from collabd with a structure that contains the integration number. Is there a way to register to the same event in an own (OSX) program and receive

Strange exceptions on production website from HTTP_USER_AGENT Java/1.6.0_17

為{幸葍}努か 提交于 2019-12-07 14:05:19
问题 Today we have received some strange exceptions on our production website. They all have the following HTTP_USER_AGENT string: Java/1.6.0_17 . I looked it up over at UserAgentString.com but the info is quite useless. Here's one of the exceptions we're getting (they are all more or less the same): System.NotSupportedException: The given path's format is not supported. The path that is being queried: /klacht/Scripts/,data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done

Automate data retrieval from a web site using a Ruby web bot

不羁岁月 提交于 2019-12-07 07:30:33
Say I have a website which displays your marks when you input your roll number. You can also see others' marks the same way by incrementing your own roll number. I want to create an Excel sheet to find the standard deviation of the marks (college project). It is physically impossible for me to manually enter all the data, so I am searching for some automation method which can do this work for me and save all fields in a text file, which I can easily convert to a table. Background Details: Link to the site here . The input is in a text box which. When submit is clicked the table is generated

Handle multiple questions for Telegram bot in python

时间秒杀一切 提交于 2019-12-07 06:10:53
问题 I'm programming a telegram bot in Python using the Telegram bot API. I'm facing the problem of managing questions that need an answer of the user. The problem arises when the program is waiting for an answer of one user and another user request information or ask another question before the first user responds. The Telegram API uses a code to handle the request. When you ask for updates you include a code. If the code you send is higher than a request code, it is mark as handled and telegram

PHP background process

半城伤御伤魂 提交于 2019-12-07 02:05:41
问题 I've wrote a php irc bot, but i need it to work in the background. With this there'd be no quits or so. What is the best way to do this? Thanks and Regards. 回答1: Take a look at the following website. There is a pretty descend explanation on how to write PHP daemons. http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/ 回答2: Run it in screen, then detach. You can then quit the terminal and re-attach to the screen session later. 回答3: I use something similar: nohup php /path/to

How to receive an image in a Facebook Messenger bot

给你一囗甜甜゛ 提交于 2019-12-07 01:47:09
问题 How can I receive an attachment in form of an image through the Facebook Messenger API? Their documentation only provides instructions on how to receive text-based messages. 回答1: I am not sure what language you are using to code your bot but since you are referring to the facebook documents where most of the messenger code snippets are in node.js Here's something for you to try, let me know if this helps. app.post('/webhook/', function (req, res) { //Getting the mesagess var messaging_events

Xcode Server CI Bot Test Session exited(-1)

随声附和 提交于 2019-12-06 18:30:02
问题 I am getting an error when trying to run tests on XcodeServer against simulator devices. The tests sometimes pass for one device and fail for another, but the failing device is not always the same one. This can happen in a single session. The log file error is as follows: 2015-03-23 10:44:11.029 Initializing test infrastructure. 2015-03-23 10:44:11.029 Writing testing status log to /Library/Developer/XcodeServer/Integrations/Integration-7e6e54f21a2fd25cddc9df0436cb3688/Session-2015-03-23_10

Automatically send a message into the WebChat window in Bot Framework

空扰寡人 提交于 2019-12-06 16:48:21
I am using Microsoft Bot Framework and I created two bots. I am trying to build a simple HTML page that will show two webchat windows side by side, each for one of the two bots. The idea is to have an input box in the page, and when someone types into it, the text gets sent into both webchats at the same time. However, since webchats are basically iframes, there is not much I can do unless I make the webchat iframe expose some methods to the parent frame. This is the expected browser behaviour. So my question is: is there any way to control the webchat iframes from a parent frame, or the bot