bots

max retry exceeded with url in telegram bot

假如想象 提交于 2019-12-12 04:38:29
问题 I started writing a telegram bot in python. but when I run it after a while it returns an error: Exception in thread updater: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 137, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 91, in create_connection raise err File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 81, in create_connection

Error while using Bot Framework Emulator after publishing a bot V3 on Azure

為{幸葍}努か 提交于 2019-12-12 04:33:13
问题 I created a quite simple bot, using the version 1.1.0 of Bot Builder, and it worked fine, both locally and after publishing on Azure. However, when I changed to the version 3 (and changed the respective code), my bot is working locally, but it is not working (on Bot emulator) after I have published it on azure. I don't know if I am using the Emulator in a wrong way, or if I am publishing it wrongly. I changed the BotId, MicrosoftAppId and MicrosoftAppPassword tags of the webconfig. When I use

Exception in BOT Framework application in a FormBuilder : Cannot serialize delegates over unmanaged

試著忘記壹切 提交于 2019-12-12 04:14:54
问题 I am getting below error in FormFlow. A quick help is really appreciable. Exception: anonymous method closures that capture the environment are not serializable, consider removing environment capture or using a reflection serialization surrogate: FlightBot.FlightManager+<>c__DisplayClass2_0", "attachments": [ { "contentType": "text/plain", "content": " at Microsoft.Bot.Builder.Internals.Fibers.Serialization.ClosureCaptureErrorSurrogate.System.Runtime.Serialization.ISerializationSurrogate

slack github integration doesn't find wiki repository

大憨熊 提交于 2019-12-12 04:02:32
问题 I'm trying to add a GitHub slack integration (https://slack.com/apps/A0F7YS2SX-github) that will post whenever a change is made to our repository's GitHub wiki. I can log in to GitHub just fine and I see my repositories, but I don't see the repository for the wiki. The wiki is an actual repository; I can clone it and view its history and everything. For example, if my repository were called myRepo, the wiki would be myRepo.wiki. But I only see myRepo in the list of repositories the

How do I get rid of this RunTimeError when trying some code out of Chapter 12 of the Beginning Ruby book?

吃可爱长大的小学妹 提交于 2019-12-12 03:55:01
问题 Sorry if this is a total newbie question, but I am not sure how to solve this problem. I'm currently getting these errors when I try to run the code below: bot.rb:58:in `rescue in initialize': Can't load bot data (RunTimeError) bot.rb:55:in `initialize' basic_client.rb:3:in `new' basic_client.rb:3:in `<top (required)>' Here is the source code for bot.rb, and the error appears to be at the "@data = YAML.load(File.open(options[:data_file]).read)" part. # A basic implementation of a chatterbot

How to expire context lifespan on specific user input - api.ai

徘徊边缘 提交于 2019-12-12 03:27:48
问题 i'm working with api.ai and stuck on a point i want to expire lifespan of a context on a specific user input how to expire context lifespan on specific user input Api.ai any one please tell me solution since i'm unable to find it in documentation of api.ai 回答1: You can "reset" the context by setting the output context's lifetime to 0 as described on this page: https://docs.api.ai/docs/concept-contexts 来源: https://stackoverflow.com/questions/43146087/how-to-expire-context-lifespan-on-specific

Testing post request with GroupMe Bot

夙愿已清 提交于 2019-12-12 02:45:55
问题 I just started building a GroupMe bot which i'm super excited about. I am using the GroupMe NodeJS Callback bot. I am currently running it locally with foreman start and everything works well but I cannot figure out how to test its responses. For example: I like to say "Hey guy" and see if the bot returns a response, such as "Im not your buddy guy." I was thinking a curl request but I am not sure where to start. Please help! (I will be around to answer question thanks!!) 回答1: I figured out a

PyAutoGUI Image Recognition - Slight issue with pixel color matching

寵の児 提交于 2019-12-12 02:36:21
问题 I am trying to stop a possible block in my bot program by using PyAutoGUI's Image Recognition function ( pyautogui.locateCenterOnScreen ) to recognize a simple 'OK' button, in order to get rid of the possible block error message. However, the function only sometimes works as I have found out by screenshotting different error messages and comparing the pixel color side by side. The result I have found out is that the pixel color on two different 'OK' buttons are usually off by 1, explaining

Giving input to a GUI application through another program

旧巷老猫 提交于 2019-12-12 02:35:58
问题 What i want to know is how can you give input to a GUI app that is closed source and does not have any public API. To be more concise, let's say you open solitaire and want through a program to play it. Or, to go even to the basics, you have an GUI app with a button and you want to click it through another program. I know the question is a little vague, but that's the best I can phrase it. Please help me with some edits or some comments to make it more specific. 回答1: Investigate SendInput().

Connection Error on Microsoft Bot after publishing it on AWS

二次信任 提交于 2019-12-12 02:35:47
问题 I am trying to publish a bot that I coded in C# through visual studio 2015 on to AWS. I installed the Amazon Cloud SDK and was able to successfully publish the bot to AWS. I updated the bot endpoint with the address it gave (http://benbot-dev.us-west-2.elasticbeanstalk.com/). But when I go to Microsoft Bots site and test the bot connection it says Unable to connect to the remote server. Please help. I am thinking it is the https endpoint issue. But I am not sure how to get an API Gateway