Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Gabriel Bryant
@PGRBryant_twitter
Thanks @nzlosh that’s some really helpful directions to take. Hopefully the .io DNS error will get resolved because we could probably pull some quite useful tidbits from there. If anyone else has any ideas too, please share! I’d love to get this on Teams.
Sijis Aviles
@sijis
Folks are welcomed to start a collaborative teams-backend effort. We'd totally back it up and help where possible.
zxg321
@zxg321
你好
nwb5233
@nwb5233
你好
Sijis Aviles
@sijis
??
riverforman
@riverforman
hello
nikhilv14
@nikhilv14
hello, is anyone using or has used 'BotFramework' for Microsoft Teams? https://github.com/vasilcovsky/errbot-backend-botframework
I am a beginner and stuck in starting errbot ... do I need to have Webserver plugin with signed SSL certs? Need few pointers to save time :)
Carlos
@nzlosh
@nikhilv14 Which step in the installation instructions, located in the url you linked, are you stuck on?
nikhilv14
@nikhilv14

Thanks @nzlosh for your response
I am doubtful on the step:
Specify Messaging Endpoint: https://errbot-url/botframework

I have added Teams as one of the channel in Azure. However, while testing on web it says cant reach endpoint. Also, errbot never starts with error:

requests.exceptions.ConnectionError: HTTPConnectionPool(host='version.errbot.io', port=80): Max retries exceeded with url: /?errbot=6.1.1&python=3.7.3 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x111cddd68>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')

So I am not sure who is initiating connection and to where. Does errbot Webserver plugin requires public IP? will self-sign cert work in case of Azure?

Carlos
@nzlosh
The error you see there is related to errbot attempting to check if it has the latest version. There was a problem with errbot.io recently and I think that error is related to it. You can ignore that message version.errbot.io has nothing to do with your teams setup.
From what I understand of the instructions, you need to enable errbots webserver (it's documented here https://errbot.readthedocs.io/en/latest/user_guide/plugin_development/webhooks.html). It's not good security practice to have the errbot webserver listen directly on a public interface. You should put a reverse proxy in front of errbot and use SSL certificates to encrypt the traffic between Teams and the bot (it's just basic web security. Self-signed will work, but you should use your own certificates to ensure nobody is pretending to be your bot).
Carlos
@nzlosh
@nikhilv14 You would set the https://errbot-url/botframework to be the ip address/dns name that the reverse proxy is listening on. The reverse proxy should be configured to proxy requests to the /botframework route on to your errbot instance.
nikhilv14
@nikhilv14
Sure @nzlosh I will start plugging web security piece by piece when this starts running. Guess, I would need DNS/IP reachable from web/Azure to have bot respond to web tests/Teams
Carlos
@nzlosh
Yes, that's the idea.
aravindprasanna
@aravindprasanna
With errbot are you using ngrok to expose your bot ? How is Azure Calling your not ?
Bot
Also something I have observed with the Teams Bot backend From vacilcovsky .
The bot cannot send messages to a user
It can receive and respond but not send unsolicited messages . As a result you cannot use it with something like flows
nikhilv14
@nikhilv14
ah man, using it with flows was one of the way to connect it with Sharepoint and PowerApps
I am not using ngrok though, should try it out. Is it possible that because of ngrok you encounter the issue of not initiating messages to user? Did you experience similar issue when using reverse proxy/directly exposing errbot via public IP ?
Scott Burns
@sburns
:wave: is it possible to alias multiple @re_botcmd patterns to a single function? this doesn't work
class Bot:
    @re_botcmd(pattern=r"^(foo)$")
    @re_botcmd(pattern=r"^(bat)$")
    def bar(self, message, match):
        yield match.group(1)
alpinweis
@alpinweis
I've tried !apropos test with a Slack backend and got:
'SlackBackend' object has no attribute 'check_command_access'
Is this expected?
Carlos
@nzlosh
@sburns Perhaps you could try using a single decorator with a regex or r"^(foo|bat)$" to match either text form?
Carlos
@nzlosh
@alpinweis I just tested the command you mentioned on my errbot instance and it worked without any error message.
about reports I'm running errbot 6.1.1
alpinweis
@alpinweis
@nzlosh I too have errbot 6.1.1 with slackclient 1.3.2 (via pip install slackclient==1.3.2 instead of pip install errbot[slack]). does that matter? I was not sure how to add errbot[slack] to my requirements.txt - I was getting some syntax errors. what's the right way to do this?
Carlos
@nzlosh
That's what I'm using too.
Carlos
@nzlosh
@alpinweis For what it's worth, I installed slackclient via pip with the same command as yourself. The attribute check_command_access is part of the errbot implementation, not the slackclient itself. The error you got has something to do with errbot's help functions.
alpinweis
@alpinweis
weird. i haven't touched errbot's help functionality. wondering if it has to do with configs
shivakumaraswamy-lab
@shivakumaraswamy-lab
i get message "This command requires bot-admin privileges" when i run commands like !plugin reload etc, in this case, how do i know which used ID is bot admin
I have configured Slack as chat backend and running commands from Slack user
Carlos
@nzlosh
@shivakumaraswamy-lab Try using the whoami command to get the information errbot has on the slack account your want to declare as a bot admin.
maxleonca
@maxleonca
Hello, newbie here. I have Errbot running with the Slack backend without issues. However when I try to install a repo I keep getting errors, which reference https://repos.errbot.io/repos.json not being available. I checked the site and seems that there is no DNS entry for that subdomain. As for the error itself is: 'text': "Computer says nooo. See logs for details:\nb'repo_index'". Am I missing something?
Carlos
@nzlosh
@maxleonca There was an issue relating to errbot.io, I don't know the details but as you noticed, DNS entries are no longer available. You will probably find a more detailed error in the errbot logs. My guess is the bot is attempting to fetch repos.json to find the plugin you asked to install. If the repos.json manifest isn't available, the bot probably can't resolve the plugin name to a internet accessible repository. You could probably find the plugin yourself and manually install it via git clone by reading through this https://errbot.readthedocs.io/en/6.1.1/user_guide/administration.html#configuration
maxleonca
@maxleonca
@nzlosh Indeed I tried with more than one, just adding the URL of the repo from github directly to no avail.
The error can be found here... https://pastebin.com/A0xAztrS
Is very likely this is just a newbie error, but I've been unable to pass over this.
Carlos
@nzlosh
It looks like the repos.json manifest file still isn't being found. I found this issue that might give you a work around errbotio/errbot#1249
maxleonca
@maxleonca
Yeap, I saw that a couple of nights before, but since the repos.json is nowerhere to be found I was unable to pass over it. Waiting seems to be the only play now. @nzlosh thank you doe!
Carlos
@nzlosh
I found this manifest file, but it hasn't been updated in over a year. You could update the bot configuration to point to it as indicated in the issue. https://github.com/errbotio/errbot-version-server/blob/master/static/repos.json
Maybe it'll have the reference you need to get the plugin installed.
maxleonca
@maxleonca
@nzlosh Thank you, I did change the repos.json to a local folder and it seems to be working.
maxleonca
@maxleonca
Hello, has anyone notices DNS problems also with version.errbot.io? It seems is also gone now.
Carlos
@nzlosh
@maxleonca It's been gone for a while.
Naveen Kumar Sangi
@nkprince007
Hi
how can i get team id for slack backend inside a botcmd
Sijis Aviles
@sijis
Its possible but youd likely have to go I to the slack api to get it. I don't believe the backend offers that natively, that I recall offhand.
kagrawal27
@kagrawal27
I was trying to setup a custom integration with my slack workspace but it seems that custom integrations creation is no longer supported and people are encouraged to create apps now for the same. So I went ahead and created an App on slack and followed similar instructions on https://errbot.readthedocs.io/en/latest/user_guide/configuration/slack.html to setup the backend configuration but when I try to fire off the App and start it's raising an exception as follows: raise Exception('This is not a Slack user or bot id: %s (should start with U or B)' % userid)
Exception: This is not a Slack user or bot id: WNE1C4QSC (should start with U or B) . So I'm thinking maybe since its not a "custom integration" but rather an "App" now, it probably needs some different kind of setup in its config.py file but I'm not sure how to go about that, can someone help?
Sijis Aviles
@sijis
I literally get a slack token and add it to config.py. never needed to add as an app or anything like that
@kagrawal27 ^^