Code Monkey home page Code Monkey logo

Comments (11)

arusso avatar arusso commented on May 23, 2024 2

With the introduction of Socket-Mode communication protocol and support for it being added to upstream in slack-go, I think that means we have all the pieces needed to use the Events API via Sockets-Mode without having to re-architect your app to listen for calls from Slack on a public http endpoint.

from slacker.

paulkarayan avatar paulkarayan commented on May 23, 2024 1

Do you want a PR for updating the Readme? would have saved me an hour today :)
of course - Slacker is going to save me many hours now... all is good. Let me know!

from slacker.

shomali11 avatar shomali11 commented on May 23, 2024

Interesting. We will have to look into this further and see how it affects slacker and what we need to do to support both cases.

from slacker.

leetrout avatar leetrout commented on May 23, 2024

Interesting. We will have to look into this further and see how it affects slacker and what we need to do to support both cases.

I am happy to help out if you're willing to entertain supporting both APIs. You never know with various projects where they draw the line.

Would you entertain PRs or think you're going to do the work yourself?

from slacker.

shomali11 avatar shomali11 commented on May 23, 2024

Absolutely! Some of the features here we suggested and/or created by awesome contributors!
I definitely think we need to support both APIs just in case somehow. The question is how to make it as easy and intuitive to the user of slacker

I did some research. At the time when nlopes started the go-slack project, there was only support for RTM and slacker was built on top of that (https://github.com/slack-go/slack/blob/master/examples/websocket/websocket.go)

It seems that go-slack now supports an Events API as seen here (https://github.com/slack-go/slack/blob/master/examples/eventsapi/events.go). I wonder if we can leverage this somehow.

from slacker.

leetrout avatar leetrout commented on May 23, 2024

Yeah, it looks like there is a relatively straightforward path to combine the command definitions with the events as they show up. I'm excited because this will let it run in lambda / cloud functions, too 😎

from slacker.

cameronbrill avatar cameronbrill commented on May 23, 2024

Checking to see if you guys are wanting to work on adding support to Events API. If so, I want to help out as well.

from slacker.

shomali11 avatar shomali11 commented on May 23, 2024

@cameronbrill Create a PR! Any help is very much appreciated

from slacker.

shomali11 avatar shomali11 commented on May 23, 2024

Awesome! Can you put a PR together?

from slacker.

arusso avatar arusso commented on May 23, 2024

Anything coming from me will take a while, as I am encumbered by policy and need to get approvals from my employer before I can contribute anything.

from slacker.

tvhung83 avatar tvhung83 commented on May 23, 2024

I hope you can update README, and/or log out fatal errors. It took me hours to figure out that it only supports legacy bot token (by enabling DEBUG mode).

from slacker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.