Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 10c40f8

Browse files
committed
When using the bot without "installing" it, you need to pass the bot
token. The language I use to explain this could be cleaned up by someone on the Slack team who has a better understanding of the installation process... but the gist is in this patch. (It took many cycles of Slack support to get to the bottom of this, so it is really worthwhile adding this clarification.) thx.
1 parent 1444c4d commit 10c40f8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/Section-4.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ export CLIENT_SECRET='xxXXxxXXXXXxxxxXXX'
1616
export VERIFICATION_TOKEN='xxxXXXxxXXxxX'
1717
```
1818

19+
Note that if you have not "installed" your bot, you need to pass the BOT TOKEN to the slack_client. We can use export here as well and modify the bot init function to pass the TOKEN to the slack_client init.
20+
```
21+
export SLACK_BOT_TOKEN='xoxb-XXXXXXXXXXXX-xxxxxxxxxxxx-XXXXXXXXXXXXXXXXXXXXXXXX'
22+
```
23+
24+
In `bot.py`, Line 24:
25+
```
26+
self.client = SlackClient(os.environ.get("SLACK_BOT_TOKEN"))
27+
```
28+
1929
Our app will grab these secrets from our environment.
2030

2131
---

0 commit comments

Comments
 (0)