Skip to content

Commit

Permalink
Add Slack app manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Jan 9, 2025
1 parent 4c13335 commit f88d529
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 3 deletions.
4 changes: 1 addition & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,7 @@ To setup NestBot development environment, follow these steps:
```

1. **Set up Slack slash commands**:
- Add the slash commands (`/contribute`, `/gsoc`, `/owasp`) to your Slack application in `Features -- Slash Commands` section using `http://<your-static-domain>/integrations/slack/events/` as the `Request URL`.
- Configure event subscriptions in `Features -- Event Subscriptions` section to use your `http://<your-static-domain>/integrations/slack/events/` URL.
Make sure `member_joined_channel` and `team_join` events are included for bot events.
- Configure your Slack application using [NestBot manifest file](https://github.com/OWASP/Nest/blob/main/backend/apps/slack/MANIFEST.yaml) (copy its contents and save it into`Settings -- App Manifest`)
- Reinstall your Slack application after making the changes in `Features -- OAuth & Permissions` section.

## Code Quality Checks
Expand Down
76 changes: 76 additions & 0 deletions backend/apps/slack/MANIFEST.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
display_information:
name: OWASP Nest
description: Your gateway to OWASP
background_color: "#293559"
features:
app_home:
home_tab_enabled: true
messages_tab_enabled: false
messages_tab_read_only_enabled: false
bot_user:
display_name: NestBot
always_online: true
slash_commands:
- command: /contribute
url: https://nest.owasp.dev/integrations/slack/events/
description: contributor's guide
usage_hint: --start
should_escape: false
- command: /projects
url: https://nest.owasp.dev/integrations/slack/events/
description: project directory
usage_hint: <search query>
should_escape: false
- command: /owasp
url: https://nest.owasp.dev/integrations/slack/events/
description: your gateway to OWASP
usage_hint: --help
should_escape: false
- command: /gsoc
url: https://nest.owasp.dev/integrations/slack/events/
description: get started with GSoC program
usage_hint: --start
should_escape: false
- command: /chapters
url: https://nest.owasp.dev/integrations/slack/events/
description: chapters
usage_hint: --help
should_escape: false
- command: /leaders
url: https://nest.owasp.dev/integrations/slack/events/
description: chapter and project leaders
usage_hint: <name/project>
should_escape: false
- command: /committees
url: https://nest.owasp.dev/integrations/slack/events/
description: committees
usage_hint: <name>
should_escape: false
oauth_config:
scopes:
bot:
- channels:read
- chat:write
- commands
- groups:read
- im:history
- im:read
- im:write
- mpim:read
- mpim:write
- users:read
- groups:write
- channels:manage
settings:
event_subscriptions:
request_url: https://nest.owasp.dev/integrations/slack/events/
bot_events:
- app_home_opened
- member_joined_channel
- team_join
interactivity:
is_enabled: true
request_url: https://nest.owasp.dev/integrations/slack/events/
org_deploy_enabled: false
socket_mode_enabled: false
token_rotation_enabled: false

0 comments on commit f88d529

Please sign in to comment.