From 7b8a0879b1af16840ed51dda5fb57c10dfffcc27 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Tue, 7 May 2019 10:08:51 +0200 Subject: [PATCH 1/5] Update getting_started.md --- docs/_tutorials/getting_started.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/_tutorials/getting_started.md b/docs/_tutorials/getting_started.md index 7c6d1976a..f93e32f6d 100644 --- a/docs/_tutorials/getting_started.md +++ b/docs/_tutorials/getting_started.md @@ -99,7 +99,7 @@ Create a new file called `app.js` in this directory and add the following code: ```javascript const { App } = require('@slack/bolt'); -// Initalizes your app with your bot token and signing secret +// Initializes your app with your bot token and signing secret const app = new App({ token: process.env.SLACK_BOT_TOKEN, signingSecret: process.env.SLACK_SIGNING_SECRET @@ -222,8 +222,8 @@ app.message('hello', ({ message, say }) => { // say() sends a message to the channel where the event was triggered say({ blocks: [ - { - "type": "section", + { + "type": "section", "text": { "type": "mrkdwn", "text": `Hey there <@${message.user}>!` @@ -235,8 +235,8 @@ app.message('hello', ({ message, say }) => { "text": "Click Me" }, "action_id": "button_click" - } - } + } + } ] }); }); @@ -272,8 +272,8 @@ app.message('hello', ({ message, say }) => { // say() sends a message to the channel where the event was triggered say({ blocks: [ - { - "type": "section", + { + "type": "section", "text": { "type": "mrkdwn", "text": `Hey there <@{message.user}>!` @@ -285,8 +285,8 @@ app.message('hello', ({ message, say }) => { "text": "Click Me" }, "action_id": "button_click" - } - } + } + } ] }); }); From 3209855beb8a5f2572c1b7d9e85d7e45ab52c23e Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Tue, 7 May 2019 10:11:39 +0200 Subject: [PATCH 2/5] Update listening_events.md --- docs/_basic/listening_events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_basic/listening_events.md b/docs/_basic/listening_events.md index 31a7f4aff..b2c5b3da9 100644 --- a/docs/_basic/listening_events.md +++ b/docs/_basic/listening_events.md @@ -13,7 +13,7 @@ The `event()` method requires an `eventType` of type string. ```javascript const welcomeChannelId = 'C12345'; -// When a user joins the team, send a message in a predfined channel asking them to introduce themselves +// When a user joins the team, send a message in a predefined channel asking them to introduce themselves app.event('team_join', async ({ event, context }) => { try { const result = await app.client.chat.postMessage({ From 5bd81457d5c5b6255d9618b978dd92d6d37e6715 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Tue, 7 May 2019 10:12:59 +0200 Subject: [PATCH 3/5] Update sending_messages.md --- docs/_basic/sending_messages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_basic/sending_messages.md b/docs/_basic/sending_messages.md index d2a4eed49..b4bc78255 100644 --- a/docs/_basic/sending_messages.md +++ b/docs/_basic/sending_messages.md @@ -11,7 +11,7 @@ In the case that you'd like to send a message outside of a listener or you want ```javascript -// Listens for messsages containing "knock knock" and responds with an italicized "who's there?" +// Listens for messages containing "knock knock" and responds with an italicized "who's there?" app.message('knock knock', ({ message, say }) => { say(`_Who's there?_`); }); From 3746aeee57276980cca99e2aef41a697cda96657 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Tue, 7 May 2019 10:13:45 +0200 Subject: [PATCH 4/5] Update web_api.md --- docs/_basic/web_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_basic/web_api.md b/docs/_basic/web_api.md index f310a4f1b..59c84b0a6 100644 --- a/docs/_basic/web_api.md +++ b/docs/_basic/web_api.md @@ -18,7 +18,7 @@ app.message('wake me up', async ({ message, context }) => { try { // Call the chat.scheduleMessage method with a token const result = await app.client.chat.scheduleMessage({ - // The token you used to initalize your app is stored in the `context` object + // The token you used to initialize your app is stored in the `context` object token: context.botToken, channel: message.channel.id, post_at: whenSeptemberEnds, From f3bb1cd8f2866b36ca7ef2c3cc91c2b45f9cc986 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Tue, 7 May 2019 10:14:44 +0200 Subject: [PATCH 5/5] Update authorization.md --- docs/_advanced/authorization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_advanced/authorization.md b/docs/_advanced/authorization.md index 4a79720fe..e00ae5088 100644 --- a/docs/_advanced/authorization.md +++ b/docs/_advanced/authorization.md @@ -44,7 +44,7 @@ const authorizeFn = async ({ teamId, enterpriseId }) => { for (const team in installations) { // Check for matching teamId and enterpriseId in the installations array if ((team.teamId === teamId) && (team.enterpriseId === enterpriseId)) { - // This is a match. Use these installaton credentials. + // This is a match. Use these installation credentials. return { // You could also set userToken instead botToken: team.botToken, @@ -56,4 +56,4 @@ const authorizeFn = async ({ teamId, enterpriseId }) => { throw new Error('No matching authorizations'); } -``` \ No newline at end of file +```