aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-03-19 13:21:00 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2022-09-18 16:36:55 +0200
commit30328658d53b5327044abf2169339e0e5c15a6ee (patch)
tree34ce262d311c06f6a9a6b6868d3d2ac71c03942c
parent54ff86d9ac7de7e77b2d7a2a75dc9b8b4876438f (diff)
downloadwee-slack-30328658d53b5327044abf2169339e0e5c15a6ee.tar.gz
Add documentation for using the new session tokens
-rw-r--r--README.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index b9041ee..87afa67 100644
--- a/README.md
+++ b/README.md
@@ -164,8 +164,12 @@ token (but not the token itself). If you're worried about this, you can use the
1. Open and sign into the [Slack customization page](https://my.slack.com/customize). Check that you end up on the correct team.
2. Open the developer console (`Ctrl+Shift+J`/`Cmd+Opt+J` in Chrome and `Ctrl+Shift+K`/`Cmd+Opt+K` in Firefox).
3. Paste and run this code: `window.prompt("Session token:", TS.boot_data.api_token)`
-4. A prompt with the token will appear. Copy the token, return to WeeChat and run `/slack register <token>`.
-5. Reload the script with `/python reload slack`.
+4. A prompt with the token will appear. Copy the token.
+5. In the developer console go to Application in Chrome or Storage in Firefox.
+6. Expand Cookies and click on the domain.
+7. Find the cookie named `d` and copy the value.
+8. Return to WeeChat and run `/slack register <token>:<cookie>`.
+9. Reload the script with `/python reload slack`.
#### Optional: Connecting to multiple teams