These three files were used to help clean up a Slack Workspace channel export prior to importing into a Discord server.
Ultimately, the Salt Project Slack Archive Export was imported into the new Salt Project Discord Server:
- A Slack Workspace export
- Python (no third-party libraries required)
migration-channels.txt
: Just a file listing the channels you wish to ultimately export. This is used byclean-channel-listing.py
as a source list to clean up thechannels.json
file that Slack exportsclean-channel-listing.py
: As said above, cleans upchannels.json
. NOTE: You should also delete any of the directories in the Slack export that you don't plan to import, as an import tool may use different methods of import that don't referencechannels.json
, but also becauseclean-channel-updates.py
may then require more processing time.clean-channel-updates.py
: A simple script that deleteschannel_join
andchannel_leave
messages in channels, so that they aren't included as part of your Slack import.
- For importing to Discord, I had best success with: https://github.com/pR0Ps/slack-to-discord
- We saved all of our channels underneath a
Slack Archive
Discord server category - We appended all of the imported channels with
-slack-archive
to help prevent any confusion in case someone linked to an actual active channel in Discord with the same name (as you can have multiple channels with the same name...) - We turned all of the
Slack Archive
channels to read-only, so that they are ultimately searchable and linkable, but users can't respond to messages in the archive (as those messages aren't actually tied to Discord user accounts directly)