mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-07 22:20:12 +00:00
Updated Scheduling exports on Windows (markdown)
@@ -20,7 +20,7 @@ If($TOKENTYPE -match "BOT"){$ISBOTYES = "-b"}
|
||||
Else{$ISBOTYES = ""}
|
||||
.\DiscordChatExporter.Cli.exe export -t $TOKEN $ISBOTYES -c $CHANNEL -f $EXPORTFORMAT -o exporttmp
|
||||
|
||||
$Date = Get-Date -Format "yyyy-MMM-dd HH-mm"
|
||||
$Date = Get-Date -Format "yyyy-MM-dd HH-mm"
|
||||
|
||||
If($EXPORTFORMAT -match "PlainText"){mv exporttmp -Destination "$EXPORTDIRECTORY\$FILENAME-$Date.txt"}
|
||||
ElseIf($EXPORTFORMAT -match "HtmlDark"){mv exporttmp -Destination "$EXPORTDIRECTORY\$FILENAME-$Date.html"}
|
||||
@@ -54,7 +54,7 @@ exit
|
||||
|
||||
**1.** Press Windows + R, type `shell:startup` and press ENTER
|
||||
|
||||
**2.** Paste `filename.ps1` or a shortcut to this folder
|
||||
**2.** Paste `filename.ps1` or a shortcut into this folder
|
||||
|
||||
|
||||
## Scheduling with Task Scheduler
|
||||
|
||||
Reference in New Issue
Block a user