mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-29 01:07:47 +00:00
Updated Scheduling exports on macOS (markdown)
@@ -19,7 +19,7 @@ Make sure you already have DiscordChatExporter and Mono properly installed ([ins
|
|||||||
|
|
||||||
**4.** Paste the following into the empty text box:
|
**4.** Paste the following into the empty text box:
|
||||||
```
|
```
|
||||||
# Info: https://github.com/Tyrrrz/DiscordChatExporter
|
# Info: https://github.com/Tyrrrz/DiscordChatExporter/wiki
|
||||||
|
|
||||||
TOKEN=<token>
|
TOKEN=<token>
|
||||||
TOKENTYPE=<BOT/USER>
|
TOKENTYPE=<BOT/USER>
|
||||||
@@ -38,17 +38,17 @@ fi
|
|||||||
|
|
||||||
PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
|
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"`
|
CURRENTTIME=`date +"%Y-%m-%d-%H-%M-%S"`
|
||||||
|
|
||||||
if [[ "$EXPORTFORMAT" == "PlainText" ]]; then
|
if [[ "$EXPORTFORMAT" == "PlainText" ]]; then
|
||||||
mv "exporttmp" $EXPORTDIRECTORY/$FILENAME-$CURRENTTIME.txt
|
mv "exporttmp" ${EXPORTDIRECTORY//\"}/$FILENAME-$CURRENTTIME.txt
|
||||||
|
|
||||||
elif [[ "$EXPORTFORMAT" == "Html"* ]]; then
|
elif [[ "$EXPORTFORMAT" == "Html"* ]]; then
|
||||||
mv "exporttmp" $EXPORTDIRECTORY/$FILENAME-$CURRENTTIME.html
|
mv "exporttmp" ${EXPORTDIRECTORY//\"}/$FILENAME-$CURRENTTIME.html
|
||||||
|
|
||||||
elif [[ "$EXPORTFORMAT" == "Csv" ]]; then
|
elif [[ "$EXPORTFORMAT" == "Csv" ]]; then
|
||||||
mv "exporttmp" $EXPORTDIRECTORY/$FILENAME-$CURRENTTIME.csv
|
mv "exporttmp" ${EXPORTDIRECTORY//\"}/$FILENAME-$CURRENTTIME.csv
|
||||||
else
|
else
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
@@ -67,7 +67,7 @@ exit
|
|||||||
|
|
||||||
`<name>` with a filename without spaces
|
`<name>` with a filename without spaces
|
||||||
|
|
||||||
`<dir>` with the export directory without quotes (e.g. /Users/user/Documents/Discord\ Exports)
|
`<dir>` with the export directory (e.g. /Users/user/Documents/Discord\ Exports)
|
||||||
|
|
||||||
`<format>` with one of the available export formats
|
`<format>` with one of the available export formats
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user