errbotio / errbot

Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
http://errbot.io
GNU General Public License v3.0
3.13k stars 615 forks source link

Can we expose the low-level backend API? #1414

Closed bortels closed 4 years ago

bortels commented 4 years ago

In order to let us help you better, please fill out the following fields as best you can:

I am...

I am running...

Issue description

I am using the Slack backend, and I'd like to call chat.postEphemeral to mimic what the /giphy app does. From what I can tell, the actual slack RTM client connection isn't exposed to the plugin, and the existing messaging interface doesn't support it. If there was some way to get that client handle, I could just make the call directly. I can kludge it by making a system call to a custom external script, but "yuck". I realize this breaks "errbot as a unified messaging interface" and might lead to plugins that are backend-specific, but not having some escape mechanism when we need it is a bummer. Thanks for considering it. If it's already available - I'd love a pointer to it in the docs, couldn't find anything.

nzlosh commented 4 years ago

What version of slackclient are you using? Have you seen the documentation explaining how to get access to the underlying client? https://errbot.readthedocs.io/en/latest/user_guide/plugin_development/backend_specifics.html#getting-to-the-underlying-client-library

bortels commented 4 years ago

Oh sweet! I missed that and it's exactly what I was looking for. You're way ahead of me, thank you!

On Tue, Feb 11, 2020 at 1:27 PM Carlos notifications@github.com wrote:

What version of slackclient are you using? Have you seen the documentation explaining how to get access to the underlying client? https://errbot.readthedocs.io/en/latest/user_guide/plugin_development/backend_specifics.html#getting-to-the-underlying-client-library

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/errbotio/errbot/issues/1414?email_source=notifications&email_token=AABQZOI2VC6FBNGJPIF3SQTRCMJ53A5CNFSM4KTIHC2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELOENVI#issuecomment-584861397, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABQZOISJNZULQTIXCMYIS3RCMJ53ANCNFSM4KTIHC2A .

-- Tom Bortels -- bortels@gmail.com

"Believe nothing, no matter where you read it or who has said it, not even if I have said it, unless it agrees with your own reason and your own common sense." -- buddha