mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-25 23:43:33 +00:00
Remove bot options (-b). Untested
@@ -24,7 +24,6 @@ Make sure you already have **DiscordChatExporter.CLI** and **.NET Core** properl
|
|||||||
# Info: https://github.com/Tyrrrz/DiscordChatExporter/wiki
|
# Info: https://github.com/Tyrrrz/DiscordChatExporter/wiki
|
||||||
|
|
||||||
TOKEN=tokenhere
|
TOKEN=tokenhere
|
||||||
TOKENTYPE=bot/user
|
|
||||||
CHANNELID=channelhere
|
CHANNELID=channelhere
|
||||||
DLLFOLDER=dceFOLDERpathhere
|
DLLFOLDER=dceFOLDERpathhere
|
||||||
FILENAME=filenamehere
|
FILENAME=filenamehere
|
||||||
@@ -56,13 +55,8 @@ fi
|
|||||||
# This will change the script's directory to DLLPATH, if unable to do so, the script will exit.
|
# This will change the script's directory to DLLPATH, if unable to do so, the script will exit.
|
||||||
cd $DLLFOLDER || exit 1
|
cd $DLLFOLDER || exit 1
|
||||||
|
|
||||||
# This checks if you've typed "bot" on TOKENTYPE
|
|
||||||
if [[ "$TOKENTYPE" == "bot" ]]; then
|
|
||||||
ISBOTYES=-b
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This will export your chat
|
# This will export your chat
|
||||||
dotnet DiscordChatExporter.Cli.dll export -t $TOKEN $ISBOTYES -c $CHANNELID -f $EXPORTFORMAT -o $FILENAME.tmp
|
dotnet DiscordChatExporter.Cli.dll export -t $TOKEN -c $CHANNELID -f $EXPORTFORMAT -o $FILENAME.tmp
|
||||||
|
|
||||||
# This sets the current time to a variable
|
# This sets the current time to a variable
|
||||||
CURRENTTIME=$(date +"%Y-%m-%d-%H-%M-%S")
|
CURRENTTIME=$(date +"%Y-%m-%d-%H-%M-%S")
|
||||||
@@ -82,8 +76,6 @@ exit 0
|
|||||||
**4.** Replace:
|
**4.** Replace:
|
||||||
`tokenhere` with your [Token](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs)
|
`tokenhere` with your [Token](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs)
|
||||||
|
|
||||||
`bot/user` If it's a bot token, replace it with `bot`. If it's from a user, `user`
|
|
||||||
|
|
||||||
`channelhere` with a [Channel ID](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs)
|
`channelhere` with a [Channel ID](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs)
|
||||||
|
|
||||||
`dceFOLDERpathhere` with DCE's **directory's path** (e.g. `/Users/user/Desktop/DiscordChatExporterFolder`, NOT `/Users/user/Desktop/DiscordChatExporterFolder/DiscordChatExporter.DLL`)
|
`dceFOLDERpathhere` with DCE's **directory's path** (e.g. `/Users/user/Desktop/DiscordChatExporterFolder`, NOT `/Users/user/Desktop/DiscordChatExporterFolder/DiscordChatExporter.DLL`)
|
||||||
|
|||||||
Reference in New Issue
Block a user