This bot lets you download json files with direct message chats between you and another user on your team. Chats between you and every other user on your team will be downloaded in json format and will be stored in the output folder that you provide while running the command.
- Ruby v2.2.1 or greater
To install dependencies run the command
$ bundle
- slack-history-export should be installed. Refer https://github.com/hisabimbola/slack-history-export for installation details.
Usage: ruby slack_dm_backup.rb [-h] [-t TOKEN] [-o OUTPUT_FOLDER]
NOTE: To get a slack token, visit https://api.slack.com/custom-integrations/legacy-tokens
Arguments:
--help, -h Show help text. [boolean]
--token, -t Token from slack. [string]
--outfolder, -o Output folder to store all the json files. [string]
@hisabimbola [slack-history-export] (https://github.com/hisabimbola/slack-history-export)
@dharmastyle [slack2html.php] (https://gist.github.com/dharmastyle/5d1e8239c5684938db0b)
@humor4fun [slack-backup] (https://github.com/humor4fun/slack-backup)