from slack_bolt import App
from slack_bolt.adapter.socket_mode import SocketModeHandler
def main(
app_token: str,
bot_token: str,
handler_path: str,
command: str,
):
app = App(token=bot_token)
@app.command(command)
def launch_flow(ack, body):
ack()
wmill.run_flow_async(
path=handler_path,
args={"command_body": body},
)
SocketModeHandler(app, app_token).start()
Submitted by adam weaver528 175 days ago