Skip to content

Commit

Permalink
Merge pull request #186 from 0xflotus/master
Browse files Browse the repository at this point in the history
fixed small errors in docs
  • Loading branch information
aoberoi authored May 7, 2019
2 parents 7596366 + fe6114f commit 0dc7080
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions docs/_advanced/authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -56,4 +56,4 @@ const authorizeFn = async ({ teamId, enterpriseId }) => {

throw new Error('No matching authorizations');
}
```
```
2 changes: 1 addition & 1 deletion docs/_basic/listening_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion docs/_basic/sending_messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ In the case that you'd like to send a message outside of a listener or you want
</div>

```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?_`);
});
Expand Down
2 changes: 1 addition & 1 deletion docs/_basic/web_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
18 changes: 9 additions & 9 deletions docs/_tutorials/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}>!`
Expand All @@ -235,8 +235,8 @@ app.message('hello', ({ message, say }) => {
"text": "Click Me"
},
"action_id": "button_click"
}
}
}
}
]
});
});
Expand Down Expand Up @@ -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}>!`
Expand All @@ -285,8 +285,8 @@ app.message('hello', ({ message, say }) => {
"text": "Click Me"
},
"action_id": "button_click"
}
}
}
}
]
});
});
Expand Down

0 comments on commit 0dc7080

Please sign in to comment.