Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
asjrosabal
@asjrosabal
Hello, How can I send a notification to someone? I am using
self.send( self.build_identifier("user@host.tld/resource"), "Boo! Bet you weren't expecting me, were you?", )
but not working for me. Thanks
Carlos
@nzlosh
@fosorio118 You can use quote marks to pass a string as a single argument. !cmd "arg1 with spaces"
Sijis Aviles
@sijis
nzlosh: you beat me to it! :)
Carlos
@nzlosh
Right place at the right time ;)
Martin Flygenring
@zaughon
Is there a way to run a @cmdfilter before the command reach the "command not found" filter? We tend to have people accidentally uppercase the first letters in the command, !Hello instead of !hello, which causes command not found. I was wondering if i could make a cmdfilter to lowercase the command, but seems like the "command not found" is reached before my new filter is run.
Carlos
@nzlosh
@zaughon It's a frequently asked question. Did you see this in the docs? https://errbot.readthedocs.io/en/latest/user_guide/administration.html#overriding-commandnotfoundfilter
Sijis Aviles
@sijis
You can also use a regex to make the command case insensitive
Sijis Aviles
@sijis
I'm going through some of the older plugins in the org and formatting them and also seeing if they still work. So if you see something change or gone, it's me
Carlos
@nzlosh
:thumbsup:
sakets596
@sakets596

I am getting below error while trying to execute !repos:
Computer says nooo. See logs for details:
'avatar_url'

I am new to Errbot. Please help me.

logs:

23:51:28 ERROR errbot.core An error happened while processing a message ("!repos"): Traceback (most recent call last):
File "/Users/3529477/PycharmProjects/errbot-2/venv/lib/python3.9/site-packages/errbot/core.py", line 555, in _execute_and_send
reply = method(msg, match) if match else method(msg, args)
File "/Users/3529477/PycharmProjects/errbot-2/venv/lib/python3.9/site-packages/errbot/core_plugins/plugins.py", line 85, in repos
from_index = self._bot.repo_manager.get_repo_from_index(repo_name)
File "/Users/3529477/PycharmProjects/errbot-2/venv/lib/python3.9/site-packages/errbot/repo_manager.py", line 208, in get_repo_from_index
result.append(makeEntry(repo_name, name, plugin))
File "/Users/3529477/PycharmProjects/errbot-2/venv/lib/python3.9/site-packages/errbot/repo_manager.py", line 56, in makeEntry
avatar_url=json_value["avatar_url"],
KeyError: 'avatar_url'

1 reply
Sijis Aviles
@sijis
Oh. That's odd. I think you need more option than just !repos
Rob
@mrrobinhood5
Hey guys. is errbot dev still active?
Sijis Aviles
@sijis
Yes. Changes and fixes still happen
the8woodcutter
@thewoodcutter
Hi folks, need help after a long time with errbot. How do i properly set up an admin, and then administrate the bot with that admin using the XMPP backend pls
i am using my JID "chunk@tilde.team", "@chunk9", "@chunk"
in the config.py
cuz now in text backend, which i was using to configure my errbot for xmpp, and then reload using my full config.py after configging, I am stuck in !asuser in !inroom
and I cannot manage anything as it won't recognize me as admin
Carlos
@nzlosh
@thewoodcutter Try using !whoami to get the correct JID to use. It's been a while since I've used XMPP, but last time I used it, I noticed that the JID changed depending on which room or private chat I used the !whoami from. You may need to add more than one entry depending on where you intend to run admin commands from.
the8woodcutter
@thewoodcutter
i did figure it out fellas
finally, just needed a bit more perserverance
@nzlosh thanks o7
Sijis Aviles
@sijis
The Admin definition jid should also be able to support wildcard, possibly regex too.
zhongguozhi2
@zhongguozhi2
test
Carlos
@nzlosh
For anyone using errbot with discord, the discord.py framework https://github.com/Rapptz/discord.py that the discord backend depends on, has been put into archive mode and the maintainer has officially stepped down. For the full story, you can see the gist here https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1. Long story short, Discord has made a lot of changes to how external bots can interact with their service which has caused friction between bot library developers. Discord's Slash Commands sound like a game changer that library developers can't/won't support. I'll try to get a better understanding of where slash commands are going and what that will mean for errbot.
asjrosabal
@asjrosabal
Hi everyone. I'm using Errbot in Slack channel, how can I send a csv file to someone? Any idea. Thanks
Sijis Aviles
@sijis
Sijis Aviles
@sijis
Errbot is part of hacktoberfest. Feel free to look at issues and see if theres something that you feel you could tackle. If there isn't thats ok. Other fixes / features are appreciated too.
Ivan
@Nov1kov
Hello. Do you know a way to set specific backend token for each plugin?
Carlos
@nzlosh
@Nov1kov can you elaborate? Errbot doesn't support connecting multiple backends with a single instance
Ivan
@Nov1kov
I need plugins that can send messages from different bots but in the same messenger. it looks like multibackends but in the same messenger... I understand, looks like it not for Errbot
Carlos
@nzlosh
@Nov1kov Errbot plugins are generally developed by end users for their specific needs. There are 3rd party plugins that you can use if they do what you need. Errbot loads plugins on startup but can load/unload them at runtime. Once a plugin is loaded it can send messages to the chat backend that Errbot is connected to (a chat backend could be IRC, XMPP, Slack, Discord, Gitter, etc). It's possible to install the same plugin on multiple Errbot instances which would give the same bot behaviour across all backends.
Ivan
@Nov1kov
@nzlosh thanks!
Carlos
@nzlosh
@Nov1kov You're welcome. I'm not really sure if I answered your question, but if you have any more, feel free to post them here and we'll do our best to help you out.
Jeffrey Jen
@yihungjen_twitter
Hello! On reading bot flow context, is it purely in memory, or does it persists somewhere?
Sijis Aviles
@sijis
I'm pretty sure it persist within the local storage of the plugin.
cryptodog557
@cryptodog557
Hey peeps
Sijis Aviles
@sijis
@cryptodog557 welcome.
Ghost
@ghost~6197d0326da03739848ae44f
Hi folks, I'm currently discovering errbot with zulip.
Is there a way to lower() a function name, allowing to call @bot test and @bot TeSt the same code ?
alpinweis
@alpinweis
Hi. I'm trying to migrate to the SlackV3 backend. How do I call slack API methods now?
It used to be self._bot.api_call(method, data={}). Now any method I try to call complains something like api_call() got an unexpected keyword argument '<somename>'.
Say, I need to call conversations.create with a POST payload.
alpinweis
@alpinweis
I guess I could use self._bot.slack_web directly instead of self._bot.api_call, e.g. self._bot.slack_web.conversations_create(name="test").
Is this the correct way to do it or is there a better/recommended way?
Carlos
@nzlosh
@alpinweis can you open an issue please and I'll take a look
alpinweis
@alpinweis
Thanks @nzlosh. Just opened errbotio/err-backend-slackv3#54
Carlos
@nzlosh
:thumbsup: @alpinweis thanks for that. Having a github issue gets more visibility around the problem and any potential workaround/fix.
alpinweis
@alpinweis
@nzlosh are there plans to tag err-backend-slackv3 releases? when setting up the backend (via git clone err-backend-slackv3) it might help having a more stable version instead of the master head
Carlos
@nzlosh
That'd be a good idea now that it is in its own repository.
@sijis do you have any opinions on how releases for backends should be managed/defined as part of the larger errbot project?