Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuration help #263

Open
kanthgithub opened this issue Nov 9, 2023 · 4 comments
Open

configuration help #263

kanthgithub opened this issue Nov 9, 2023 · 4 comments

Comments

@kanthgithub
Copy link

Question

how should we configure these in .env?
the name of env variables?
where are these being injected ?
please help to add a sample.

[Event and Interactivity Subscription](https://github.com/hanchchch/nestjs-slack-listener#event-and-interactivity-subscription)
You need to set event and interactivity subscriptions URL of your slack app so that the app can receive events and interactivity from slack.

Event subscription
https://api.slack.com/apps/your-app-id/event-subscriptions
http://<hostname>/slack/events
Interactivity subscription
https://api.slack.com/apps/your-app-id/interactive-messages
http://<hostname>/slack/interactivity
@kanthgithub
Copy link
Author

@hanchchch please help to check

@hanchchch
Copy link
Owner

Those are not env vars or something you need to inject in your code-side. You need to configure them on the slack apps setting page: https://api.slack.com

Please refer to:

  1. https://api.slack.com/apis/connections/events-api#subscribing
  2. https://api.slack.com/interactivity/handling#setup

@kanthgithub
Copy link
Author

got it thanks for quick response @hanchchch
i just created app, enabled event subscriptions and entered my API URL
would it be only one URL on which it would send any event activity?
and we gotta filter them as provided in your framework?

@hanchchch
Copy link
Owner

Yes, that's why I made this framework. I didn't want to put everything in one endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants