Skip to content

Commit 457f55c

Browse files
committed
Tweak code in README
1 parent 3da6e1c commit 457f55c

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ def event_test(say):
4444

4545

4646
# Interactivity: https://api.slack.com/interactivity
47-
# @app.shortcut("callback-id-here")
48-
@app.command("/hello-bolt-python")
49-
def handle_global_shortcut(ack, client, logger, payload):
47+
@app.shortcut("callback-id-here")
48+
# @app.command("/hello-bolt-python")
49+
def open_modal(ack, client, logger, payload):
5050
# acknowledge the incoming request from Slack immediately
5151
ack()
5252
# open a modal
53-
api_response = client.views_open(
53+
api_response = client.views_open(
5454
trigger_id=payload["trigger_id"],
5555
view={
5656
"type": "modal",

samples/readme_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def event_test(say):
2323

2424

2525
# Interactivity: https://api.slack.com/interactivity
26-
# @app.shortcut("callback-id-here")
27-
@app.command("/hello-bolt-python")
28-
def handle_global_shortcut(ack, client, logger, payload):
26+
@app.shortcut("callback-id-here")
27+
# @app.command("/hello-bolt-python")
28+
def open_modal(ack, client, logger, payload):
2929
# acknowledge the incoming request from Slack immediately
3030
ack()
3131
# open a modal

samples/readme_async_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ async def event_test(say):
2323

2424

2525
# Interactivity: https://api.slack.com/interactivity
26-
# @app.shortcut("callback-id-here")
27-
@app.command("/hello-bolt-python")
28-
async def handle_global_shortcut(ack, client, logger, payload):
26+
@app.shortcut("callback-id-here")
27+
# @app.command("/hello-bolt-python")
28+
async def open_modal(ack, client, logger, payload):
2929
# acknowledge the incoming request from Slack immediately
3030
await ack()
3131
# open a modal

0 commit comments

Comments
 (0)