From 95ef35f12489eaf1509309e20801f9fc23df8737 Mon Sep 17 00:00:00 2001 From: Yudi Date: Sun, 23 Sep 2018 22:09:09 -0300 Subject: [PATCH] Updated Scheduling exports on macOS (markdown) --- Scheduling-exports-on-macOS.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Scheduling-exports-on-macOS.md b/Scheduling-exports-on-macOS.md index 40e1fb0..ffc89df 100644 --- a/Scheduling-exports-on-macOS.md +++ b/Scheduling-exports-on-macOS.md @@ -19,7 +19,7 @@ Make sure you already have DiscordChatExporter and Mono properly installed ([ins **4.** Paste the following into the empty text box: ``` -# Info: https://github.com/Tyrrrz/DiscordChatExporter +# Info: https://github.com/Tyrrrz/DiscordChatExporter/wiki TOKEN= TOKENTYPE= @@ -38,17 +38,17 @@ fi PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin -mono DiscordChatExporter.Cli.exe export -t $TOKEN $ISBOTYES -c $CHANNEL -f $EXPORTFORMAT -o exporttmp +mono DiscordChatExporter.Cli.exe export -t ${TOKEN//\"} $ISBOTYES -c $CHANNEL -f $EXPORTFORMAT -o exporttmp CURRENTTIME=`date +"%Y-%m-%d-%H-%M-%S"` if [[ "$EXPORTFORMAT" == "PlainText" ]]; then - mv "exporttmp" $EXPORTDIRECTORY/$FILENAME-$CURRENTTIME.txt + mv "exporttmp" ${EXPORTDIRECTORY//\"}/$FILENAME-$CURRENTTIME.txt elif [[ "$EXPORTFORMAT" == "Html"* ]]; then - mv "exporttmp" $EXPORTDIRECTORY/$FILENAME-$CURRENTTIME.html + mv "exporttmp" ${EXPORTDIRECTORY//\"}/$FILENAME-$CURRENTTIME.html elif [[ "$EXPORTFORMAT" == "Csv" ]]; then - mv "exporttmp" $EXPORTDIRECTORY/$FILENAME-$CURRENTTIME.csv + mv "exporttmp" ${EXPORTDIRECTORY//\"}/$FILENAME-$CURRENTTIME.csv else exit fi @@ -67,7 +67,7 @@ exit `` with a filename without spaces - `` with the export directory without quotes (e.g. /Users/user/Documents/Discord\ Exports) + `` with the export directory (e.g. /Users/user/Documents/Discord\ Exports) `` with one of the available export formats