aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2018-01-28 20:25:07 +0100
committerGitHub <noreply@github.com>2018-01-28 20:25:07 +0100
commitf44d5bd98ae657868a54ef2f0655273de4d6b657 (patch)
treea43b48734f45ffbc389833c290779a7c996aad48 /README.md
parent01a3032162e48bbb0e3a9a974f9561aaacc7f814 (diff)
parent073858642dc8ae33721f764d1bef4754603de20b (diff)
downloadwee-slack-f44d5bd98ae657868a54ef2f0655273de4d6b657.tar.gz
Merge pull request #487 from ajdavis/restore-slack-oauth
Restore OAuth support
Diffstat (limited to 'README.md')
-rw-r--r--README.md27
1 files changed, 26 insertions, 1 deletions
diff --git a/README.md b/README.md
index 42c9b39..51d45a4 100644
--- a/README.md
+++ b/README.md
@@ -88,10 +88,35 @@ weechat
**NOTE:** If weechat is already running, the script can be loaded using ``/python load python/autoload/wee_slack.py``
#### 4. Add your Slack API key(s)
+
+Log in to Slack:
+
+```
+/slack register
+```
+
+This command prints a link you should open in your browser to authorize WeeChat
+with Slack. Once you've accomplished this, copy the "code" portion of the URL in
+the browser and pass it to this command:
+
+```
+/slack register [YOUR_SLACK_TOKEN]
+```
+
+Your Slack team is now added, and you can complete setup by restarting the
+wee-slack plugin.
+
+```
+/python reload slack
+```
+
+Alternatively, you can click the "Request token" button at the
+[Slack legacy token page](https://api.slack.com/custom-integrations/legacy-tokens),
+and paste it directly into your settings:
+
```
/set plugins.var.python.slack.slack_api_token [YOUR_SLACK_TOKEN]
```
-^^ (find this at https://api.slack.com/custom-integrations/legacy-tokens using the "Request token" button)
If you don't want to store your API token in plaintext you can use the secure features of weechat: