Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
aravindprasanna
@aravindprasanna
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 ^^
Alex Sheluchin
@sheluchin
Same here.
maxleonca
@maxleonca
The problem I'm having with a clean install is that slackclient seems to have change dramatically on version 2.2.0, so you may need to use slackclient 1.3.2
Cory McHale
@lethonomia
Yep I believe support for the 2.2.0 is still being worked on for errbot. errbotio/errbot#1367
maxleonca
@maxleonca
And now that I switched servers I'm getting the "SlackAPIResponseError(error=f"Couldn't authenticate with Slack. Server said: {self.auth['error']}"
Cory McHale
@lethonomia
are you behind proxies?
Sijis Aviles
@sijis
i believe the latest errbot release pins slackclient to pre 2.0 version
maxleonca
@maxleonca
No, I'm not. But I just checked Slack and I don't know if it was there before or not but I can see a generic Bots app and it works with it no issues. I used to use Hubot app and that one stopped working
As of the slackclient is just mentions it by the old name errbot[slack] if it fails to find it when it starts.
Cory McHale
@lethonomia
If its not a proxy issue I'd double check the token in the config.py
Sebastian
@BattleBas
Hello, quick question. Is there already a task to migrate the backend slackclient from v1 to v2 ? I could only find this ticket: errbotio/errbot#1339
Carlos
@nzlosh
@BattleBas There is a branch where work has been started to integrate slackclient2 here https://github.com/errbotio/errbot/tree/slackclient2.
Sebastian
@BattleBas
@nzlosh thanks!
Boochi
@boochishiva_twitter
@here
hello everyone.. has anyone captured file upload in slack through errbot..
Boochi
@boochishiva_twitter
tried the callback_stream.. but i'm not able to connect to that event''
errbot.backends.slack No event handler available for file_shared, ignoring this event
Allianzcortex
@Allianzcortex
Finally find the organization..... A very very simple problem and Im nearly troubled by the whole day... Does anyone use webserver inside the dashbot and deploy it in production environment ? If so , how do you make the configuration file ? It seems we cannot type the command !plugin configure {} manually after the errbot is already running. The related issue : errbotio/errbot#1373
Allianzcortex
@Allianzcortex
Well ... finally figure it out , needs to put some generated data files into /data folder and run the command errbot -r && errbot. Will write a blog soon about it ,hope others will not waste so much time on it like me