{"repo":"slackapi/bolt-js","free":true,"listed":false,"github":"https://github.com/slackapi/bolt-js","clone":"git clone https://github.com/slackapi/bolt-js.git","description":"A framework to build Slack apps using JavaScript","language":"TypeScript","stars":2937,"topics":["slack","framework","typescript","slack-apps","javascript","socket-mode","websocket","websockets","websocket-client"],"license":"MIT","category":"networking-infra","readme_excerpt":"Bolt for JavaScript A JavaScript framework to build Slack apps in a flash with the latest platform features. Read the getting started guide to set-up and run your first Bolt app. Read the documentation to explore the basic and advanced concepts of Bolt for JavaScript. Setup Initialization Create an app by calling the constructor, which is a top-level export. Listening for events The Slack Request URL for a Bolt app must have the path set to /slack/events . For example: https://my-slack-app.example.com/slack/events . Otherwise, all incoming requests from Slack won't be handled. Apps typically react to a collection of incoming events, which can correspond Events API events, actions, shortcuts, slash commands or options requests. For each type of request, there's a method to build a listener function. Making things happen Most of the app's functionality will be inside listener functions (the fn parameters above). These functions are called with a set of arguments. Argument Description :---: :--- payload Contents of the incoming event. The payload structure depends on the listener. For example, for an Events API event, payload will be the event type structure. For a block action, it will be the action from within the actions array. The payload object is also accessible via the alias corresponding to the listener ( message , event , action , shortcut , view , command , or options ). For example, if you were building a message() listener, you could use the payload and message argum","default_branch":null,"files":null,"tree":[],"storefront":"/r/slackapi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/slackapi/bolt-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}