Skip to content

Instantly share code, notes, and snippets.

@remore
Created September 6, 2017 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remore/3aa54755dfb0d58b31fdb32e94f9368c to your computer and use it in GitHub Desktop.
Save remore/3aa54755dfb0d58b31fdb32e94f9368c to your computer and use it in GitHub Desktop.
dicebattle/slack-dumpを利用した時のログ

Environment & Requirement

Usage

あらかじめgoをインストールしてpathが通った状態にしておいた上で以下を実行(以下はgeneral, random, support, developmentという4つのチャネルをエクスポートしたい場合の例):

$ git clone https://github.com/dicebattle/slack-dump
$ cd slack-dump
$ go build main.go sort.go
$ ./main -t=xoxp-9999...ABCDEFFG general random support development

Workaround

9/6に実行した時点では、go1.9環境下ではbuild時に以下のような現象(バグ?)を確認。

$ go run main.go sort.go
# command-line-arguments
./main.go:146:11: channel.NumMembers undefined (type slack.Channel has no field or method NumMembers)
./main.go:146:30: group.NumMembers undefined (type slack.Group has no field or method NumMembers)

これについてはとりあえずmain.goの146行目をコメントアウトして問題回避した。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment