From dd78920e97a7c56efc53e0ded20c8b0ced9977da Mon Sep 17 00:00:00 2001 From: Yudi Date: Sat, 9 Feb 2019 20:46:33 -0200 Subject: [PATCH] #123 --- Docker-usage-instructions.md | 40 +----------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/Docker-usage-instructions.md b/Docker-usage-instructions.md index e72aee5..b0a0792 100644 --- a/Docker-usage-instructions.md +++ b/Docker-usage-instructions.md @@ -19,44 +19,6 @@ A docker image's export path is in /a, to export the file to host use: $ docker run -v $PWD:/a tyrrrz/discordchatexporter export -t TOKEN -c CHANNEL -# -A script to export every channel you're on: -``` -#!/bin/bash -# Info: https://github.com/Tyrrrz/DiscordChatExporter/wiki -MY_TOKEN_ID= -TOKENTYPE= - -if [[ "$TOKENTYPE" == "BOT" ]]; then -ISBOTYES=-b -fi - -# get list of guilds -guilds=$(docker run --rm -v $PWD:/a tyrrrz/discordchatexporter guilds -t $MY_TOKEN_ID $ISBOTYES | tr -d '[:blank:]') - -for guild in $guilds; do - guild_id=$(echo $guild | cut -d '|' -f 1) - guild_name=$(echo $guild | cut -d '|' -f 2) - echo "Guild: $guild_name - $guild_id" - - channels=$(docker run --rm -v $PWD:/a tyrrrz/discordchatexporter channels -t $MY_TOKEN_ID $ISBOTYES -g $guild_id | tr -d '[:blank:]') - for channel in $channels; do - channel_id=$(echo $channel | cut -d '|' -f 1) - channel_name=$(echo $channel | cut -d '|' -f 2) - - echo "Channel: $channel_name - $channel_id at $guild_name" - result=$(docker run --rm -v $PWD:/a tyrrrz/discordchatexporter export -t $MY_TOKEN_ID $ISBOTYES -c $channel_id -o /a/${guild_name}_${channel_name}.html) - if [ ! $? ]; then - echo "Something went wrong:" - echo "$result" - exit - else - echo "File saved as ${guild_name}_${channel_name}.html" - fi - done -done -exit -``` ## -Special thanks to [@simnalamburt](https://github.com/simnalamburt) (Dockerize) and [@shlagevuk](https://github.com/shlagevuk) (Script) \ No newline at end of file +Special thanks to [@simnalamburt](https://github.com/simnalamburt) (Dockerize) and [@shlagevuk](https://github.com/shlagevuk) (Legacy Script) \ No newline at end of file