hisabimbola / slack-history-export

A NPM module that allows slack users export their history

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get All Messages

humor4fun opened this issue · comments

Can you add a function to pull down all messages? Using [im.list(), groups.list(), mpim.list(), channel.list()] the slack APIs allow you to get a complete list of conversations for the current user token which could then easily be iterated through to log the entire system.

I've started trying to make this work but I have no experience with node.

Cool, will add it the next time I am working on this.

I've found a way to re-implement this using bash and the baser Slack API calls, so I no longer need this feature (but other's might want it so I'll leave it open.)

@humor4fun Would you be willing to share your bash solution as a gist or something for the rest of us?

@beporter Take a look at my slack-backup repo for the script and let me know if that solves your question. I started writing a few other tools around this line of thinking that I'm not comfortable releasing into the wild yet.

Oh very nice. I identified a few glitches when running the script on a Mac (that uses BSD sed and grep by default instead of the GNU flavors), but I'll try to open an issue or create a PR later. Thank you both!

I wrote it on and for running from a Kali linux VM, if you have a player you can get a copy of the prebuilt vm from their website. Otherwise some small tweaks should allow it to run for you on osx