Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial #6

Open
oshazard opened this issue Apr 25, 2016 · 5 comments
Open

Tutorial #6

oshazard opened this issue Apr 25, 2016 · 5 comments

Comments

@oshazard
Copy link

_How to export ALL THE STUFF_​ (April 25, 2016)

  1. Install the Go language using your favorite package manager, then

    • $ mkdir ~/go
    • $ export GOPATH=$HOME/go
    • $ export PATH=${PATH}:${GOPATH}/bin
  2. Get API key from here: https://api.slack.com/docs/oauth-test-tokens

    • Click on the team
    • Click Confirm (link ends in &sudo=1# haha)
  3. Download https://github.com/nlopes/slack/tree/c7719bec2a8daa87329f30fb59b05a652c783f22
    (API broken in newer commits)

    • Extract to ~/go/src/github.com/nlopes/slack
    • $ go build
    • $ go install
  4. Download https://github.com/Takayoshi-Aoyagi/slack-dump
    (newer than this repo thanks @Takayoshi-Aoyagi)

    • Extract to go/src/github.com/Takayoshi-Aoyagi/slack-dump
    • $ go get (downloads rest of deps)
    • $ go build
    • $ go install
  5. Export the stuff

    • $ read -p "token: " input

    (paste the token in; keeps it from being stored in history)

    • $ slack-dump -t=${input} myprivatechannel
    • $ unzip slackdump.zip
  6. Now you will have a bunch of .json files

@aydancoskun
Copy link

I get the following error after running:

slack-dump -t=${input}

[little pause - its doing something]

DEPRECATED Action signature. Must be 'cli.ActionFunc'. This is an error in the application. Please contact the distributor of this application if this is not you. See https://github.com/urfave/cli/blob/master/CHANGELOG.md#deprecated-cli-app-action-signature

Any ideas would be appreciated, just not a go guru

@neelb
Copy link

neelb commented Jul 25, 2016

@aydancoskun Use my https://github.com/neelb/slack-dump repo. I fixed the issue.

@bhoch
Copy link

bhoch commented Nov 8, 2016

I have done all of this, and I don't get a slack-dump command when done. Can someone help me with what I am doing wrong?

@zwhitchcox
Copy link

I get this error

./main.go:120: group.Conversation undefined (type slack.Group has no field or method Conversation)
./main.go:131: channel.NumMembers undefined (type slack.Channel has no field or method NumMembers)
./main.go:131: group.NumMembers undefined (type slack.Group has no field or method NumMembers)
./main.go:167: channel.Conversation undefined (type slack.Channel has no field or method Conversation)
./main.go:193: group.Conversation undefined (type slack.Group has no field or method Conversation)

when trying go get

@Xo66uT
Copy link

Xo66uT commented Mar 2, 2017

@zwhitchcox you need install only this commit https://github.com/nlopes/slack/tree/c7719bec2a8daa87329f30fb59b05a652c783f22 of github.com/nlopes/slack not newer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants