Skip to content

Commit

Permalink
v1.3.0
Browse files Browse the repository at this point in the history
Added how to get token in README
  • Loading branch information
takameron committed Sep 18, 2021
1 parent 1f71730 commit 76cbd2c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
28 changes: 25 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
# slack-dump
Generate an export of Channel, Private Group and / or Direct Message history and export it as a ZIP file compatible with Slack's import tool.

## Token

1. Visit https://api.slack.com/
2. Click "Create an app"
3. Select "From scratch"
4. Input App Name and pick a workspace
5. Click "Features" → "OAuth & Permissions" of sidebar
6. Go to "Scopes" and set as below for Bot tokens and User tokens

* channels:read
* groups:read
* im:read
* mpim:read
* channels:history
* groups:history
* im:history
* mpim:history

7. Go to "OAuth Tokens for Your Workspace" and click "Install to Workspace"
8. Accept
9. OAuth Token is displayed in "OAuth Tokens for Your Workspace"

## Usage

```
Expand All @@ -13,19 +35,19 @@ USAGE:
main [global options] command [command options] [arguments...]
VERSION:
1.2.1
1.3.0
AUTHORS:
Joe Fitzgerald <jfitzgerald@pivotal.io>
Sunyong Lim <dicebattle@gmail.com>
Yoshihiro Misawa <myoshi321go@gmail.com>
takameron <contact@takameron.info>
takameron <tech@takameron.info>
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--token value, -t value a Slack API token: (see: https://api.slack.com/web) [$SLACK_API_TOKEN]
--token value, -t value a Slack API token: (see: https://api.slack.com/apis) [$SLACK_API_TOKEN]
--output value, -o value Output directory path. Default: current directory path [$]
--help, -h show help (default: false)
--version, -v print the version (default: false)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func main() {
Email: "tech@takameron.info",
},
}
app.Version = "1.2.1"
app.Version = "1.3.0"
app.Action = func(c *cli.Context) error {
token := c.String("token")
if token == "" {
Expand Down

0 comments on commit 76cbd2c

Please sign in to comment.