mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-13 02:12:59 +00:00
CLI date format
@@ -4,18 +4,27 @@
|
||||
The instructions to find your Token are [here](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs).
|
||||
|
||||
### Where is Channel ID?
|
||||
The instructions to find a Channel ID are [here](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs).
|
||||
The instructions to find Channel IDs are [here](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs).
|
||||
|
||||
|
||||
# CLI
|
||||
|
||||
### How do I use the CLI?
|
||||
Just run the CLI without parameters, it should output the usage instructions.
|
||||
|
||||
### How can I change the date format?
|
||||
Date formats can be changed with the --dateformat option. The default one is `dd-MMM-yyyy hh:mm tt`.
|
||||
|
||||
`dd` for day, `MMM` for abbreviated month, `yyyy` year, `hh` 12-hour clock, `mm` minute 00 through 59, and `tt` for AM/PM.
|
||||
|
||||
More info about .NET date formats [here](https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings).
|
||||
|
||||
### Option '-b' parse error: could not parse '\<BOTTOKEN>' to 'System.Boolean'
|
||||
`-b` does not require a value, it just tells that the token is a bot token.
|
||||
The correct usage is:
|
||||
`-b` does not require a value, it just tells that the token is a bot token. The correct usage is:
|
||||
|
||||
`DiscordChatExporter.Cli.exe -t <BOTTOKEN> -b -c <CHANNEL>`
|
||||
|
||||
# Linux
|
||||
## Linux
|
||||
|
||||
### Unhandled Exception
|
||||
```
|
||||
@@ -29,13 +38,13 @@ Make sure you've installed Mono correctly. The instructions are available [here]
|
||||
Run `su` on Terminal, then `adduser USER sudo`, replacing `USER` with your username. Reboot.
|
||||
|
||||
|
||||
# macOS
|
||||
## macOS
|
||||
|
||||
### Mono command not found
|
||||
If you're trying to execute mono within a script, make sure you include its path.
|
||||
If you're trying to execute mono within a script, make sure you include the PATH variable.
|
||||
|
||||
Adding `PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin` before the mono command should solve this.
|
||||
|
||||
***
|
||||
|
||||
If you weren't able to find a solution here, please [open a new issue](https://github.com/Tyrrrz/DiscordChatExporter/issues/new).
|
||||
If the solution for your problem isn't here, please [open a new issue](https://github.com/Tyrrrz/DiscordChatExporter/issues/new).
|
||||
Reference in New Issue
Block a user