Discord Scraping Procedures
Export all channels from a guild to a file
export DISCORD_TOKEN="TOKEN_JIBBERISH"
export GUILD_ID="GUILD_ID_NUMBER"
mkdir $HOME/DiscordScraping
cd $HOME/DiscordScraping
mkdir $GUILD_ID
cd $HOME/DiscordScraping/$GUILD_ID
docker run --rm -v $HOME/DiscordScraping/$GUILD_ID:/out \
--name discord01 \
tyrrrz/discordchatexporter:stable exportguild \
-t $DISCORD_TOKEN \
-g $GUILD_ID \
--media \
--dateformat "yyyy-MM-dd H:mm:ss.ffff" \
-f Json -p 80mb
Loop through and scrape each Discord Channel
Old Docker Command
sudo docker run --rm -v $HOME/DiscordScraping/$GUILD_ID:/out \
--name discord01 \
tyrrrz/discordchatexporter:stable channels \
-t $DISCORD_TOKEN \
-g $GUILD_ID > $HOME/DiscordScraping/channels-$GUILD_ID.txt