Skip to content

Commit

Permalink
Update README on how to set up a slack app.
Browse files Browse the repository at this point in the history
  • Loading branch information
fa7ca7 committed Jan 20, 2025
1 parent a8535fa commit 43572e1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,24 @@ In order to add support for a new language one runs
msginit --no-translator -i lang/karmabot.pot -l uk_UA.UTF-8
```

## Slack application configuration

- Basic Information
- App-Level Tokens
- Create an app token (`config.slack_app_token`)
- Socket Mode
- Enable Socket Mode
- Features affected
- Interactivity and Shortcuts
- Turn on
- Slash Commands
- Add `/karmabot`
- Enable Events
- Subscribe to bot events:
- app_mention
- message:channels
- team_join

## License

see [./LICENSE](/LICENSE)
2 changes: 1 addition & 1 deletion karmabot/karmabot.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _app_mention_callback(client, event):
logger.debug("[app_mention] %s", event)
self._handle_app_mention(client, event)

@self.slack_app.command("/karma-test")
@self.slack_app.command("/karmabot")
def _command_callback(ack: Callable, respond: Callable, command: dict):
ack()
logger.debug("[command] %s", command)
Expand Down

0 comments on commit 43572e1

Please sign in to comment.