Skip to content

Commit ca610f7

Browse files
committed
refactor: rename message_im to message to match event name
1 parent e63ba4b commit ca610f7

12 files changed

Lines changed: 15 additions & 15 deletions

File tree

.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Three-layer design: **app.py** → **listeners/** → **agent/**
4747
**Entry point (`app.py`)** initializes Bolt with Socket Mode and calls `register_listeners(app)`.
4848

4949
**Listeners** are organized by Slack platform feature:
50-
- `listeners/events/``app_home_opened`, `app_mentioned`, `message_im`
50+
- `listeners/events/``app_home_opened`, `app_mentioned`, `message`
5151
- `listeners/actions/``category_buttons` (regex `^category_`), feedback handlers
5252
- `listeners/views/``issue_submission` modal handler
5353

claude-agent-sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Every incoming request is routed to a "listener". This directory groups each lis
180180

181181
- `app_home_opened.py` — Publishes the App Home view with category buttons.
182182
- `app_mentioned.py` — Responds to `@Casey` mentions in channels.
183-
- `message_im.py` — Responds to direct messages from users.
183+
- `message.py` — Responds to direct messages from users.
184184

185185
**`/listeners/actions`** — Handles interactive components:
186186

claude-agent-sdk/listeners/events/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
from .app_home_opened import handle_app_home_opened
44
from .app_mentioned import handle_app_mentioned
55
from .assistant_thread_started import handle_assistant_thread_started
6-
from .message_im import handle_message_im
6+
from .message import handle_message
77

88

99
def register(app: AsyncApp):
1010
app.event("app_home_opened")(handle_app_home_opened)
1111
app.event("app_mention")(handle_app_mentioned)
1212
app.event("assistant_thread_started")(handle_assistant_thread_started)
13-
app.event("message")(handle_message_im)
13+
app.event("message")(handle_message)

claude-agent-sdk/listeners/events/message_im.py renamed to claude-agent-sdk/listeners/events/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
CONTEXTUAL_EMOJIS = ["+1", "raised_hands", "rocket", "tada", "bulb", "fire"]
2121

2222

23-
async def handle_message_im(
23+
async def handle_message(
2424
client: AsyncWebClient, event: dict, logger: Logger, say: AsyncSay
2525
):
2626
"""Handle direct messages sent to Casey."""

openai-agents-sdk/.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ See the root `../.claude/CLAUDE.md` for monorepo-wide architecture, commands, an
1212

1313
**Feedback blocks** use the native `FeedbackButtonsElement` from `slack_sdk.models.blocks`. A single `feedback` action ID is registered.
1414

15-
The `message_im` handler adds the `:eyes:` reaction on every message (including thread replies).
15+
The `message` handler adds the `:eyes:` reaction on every message (including thread replies).

openai-agents-sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Every incoming request is routed to a "listener". This directory groups each lis
180180

181181
- `app_home_opened.py` — Publishes the App Home view with category buttons.
182182
- `app_mentioned.py` — Responds to `@Casey` mentions in channels.
183-
- `message_im.py` — Responds to direct messages from users.
183+
- `message.py` — Responds to direct messages from users.
184184

185185
**`/listeners/actions`** — Handles interactive components:
186186

openai-agents-sdk/listeners/events/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
from .app_home_opened import handle_app_home_opened
44
from .app_mentioned import handle_app_mentioned
55
from .assistant_thread_started import handle_assistant_thread_started
6-
from .message_im import handle_message_im
6+
from .message import handle_message
77

88

99
def register(app: App):
1010
app.event("app_home_opened")(handle_app_home_opened)
1111
app.event("app_mention")(handle_app_mentioned)
1212
app.event("assistant_thread_started")(handle_assistant_thread_started)
13-
app.event("message")(handle_message_im)
13+
app.event("message")(handle_message)

openai-agents-sdk/listeners/events/message_im.py renamed to openai-agents-sdk/listeners/events/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
CONTEXTUAL_EMOJIS = ["+1", "raised_hands", "rocket", "tada", "bulb", "fire"]
2222

2323

24-
def handle_message_im(client: WebClient, event: dict, logger: Logger, say: Say):
24+
def handle_message(client: WebClient, event: dict, logger: Logger, say: Say):
2525
"""Handle direct messages sent to Casey."""
2626
# Skip bot messages and message subtypes (edits, deletes, etc.)
2727
if event.get("bot_id") or event.get("subtype"):

pydantic-ai/.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ See the root `../.claude/CLAUDE.md` for monorepo-wide architecture, commands, an
1212

1313
**Feedback blocks** use the native `FeedbackButtonsElement` from `slack_sdk.models.blocks`. A single `feedback` action ID is registered.
1414

15-
The `message_im` handler only adds the `:eyes:` reaction on the first message in a thread (`if not event.get("thread_ts")`).
15+
The `message` handler only adds the `:eyes:` reaction on the first message in a thread (`if not event.get("thread_ts")`).

pydantic-ai/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Every incoming request is routed to a "listener". This directory groups each lis
180180

181181
- `app_home_opened.py` — Publishes the App Home view with category buttons.
182182
- `app_mentioned.py` — Responds to `@Casey` mentions in channels.
183-
- `message_im.py` — Responds to direct messages from users.
183+
- `message.py` — Responds to direct messages from users.
184184

185185
**`/listeners/actions`** — Handles interactive components:
186186

0 commit comments

Comments
 (0)