Skip to content

Commit bfd4649

Browse files
committed
fix: address pr feedback
1 parent 5bf3bf4 commit bfd4649

7 files changed

Lines changed: 12 additions & 17 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ logs/
3737
*.db
3838
.pytype/
3939
.idea/
40+
.slack

.slack/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.slack/config.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.slack/hooks.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ black .
7474

7575
Every incoming request is routed to a "listener". This directory groups each listener based on the Slack Platform feature used, so `/listeners/events` handles incoming events, `/listeners/shortcuts` would handle incoming [Shortcuts](https://docs.slack.dev/interactivity/implementing-shortcuts/) requests, and so on.
7676

77-
:::info[The `listeners/events` folder is purely educational and demonstrates alternative approaches to implementation]
78-
These listeners are **not registered** and are not used in the actual application. For the working implementation, refer to `listeners/assistant.py`.
77+
> [!NOTE]
78+
> The `listeners/events` folder is purely educational and demonstrates alternative approaches to implementation. These listeners are **not registered** and are not used in the actual application. For the working implementation, refer to `listeners/assistant/assistant.py`.
79+
7980
**`/listeners/assistant`**
8081

8182
Configures the new Slack Assistant features, providing a dedicated side panel UI for users to interact with the AI chatbot. This module includes:

app.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@
33

44
from slack_bolt import App
55
from slack_bolt.adapter.socket_mode import SocketModeHandler
6+
from slack_sdk import WebClient
67

78
from listeners import register_listeners
89

910
# Initialization
1011
logging.basicConfig(level=logging.DEBUG)
11-
app = App(token=os.environ.get("SLACK_BOT_TOKEN"))
1212

13+
app = App(
14+
token=os.environ.get("SLACK_BOT_TOKEN"),
15+
client=WebClient(
16+
base_url=os.environ.get("SLACK_API_URL", "https://slack.com/api"),
17+
token=os.environ.get("SLACK_BOT_TOKEN"),
18+
),
19+
)
1320
# Register Listeners
1421
register_listeners(app)
1522

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
--extra-index-url=https://test.pypi.org/simple/
22
slack_sdk==3.36.0.dev0
33
slack-bolt>=1.21,<2
4-
slack-cli-hooks<1.0.0
54

65
# If you use a different LLM vendor, replace this dependency
76
openai

0 commit comments

Comments
 (0)