Skip to content

Commit 35c99c8

Browse files
authored
Create README.md
1 parent 5b9378f commit 35c99c8

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# txt.discord.website
2+
This site is used to view `.txt` files that have been uploaded to Discord.
3+
The site is static; the data loading and formatting is performed clientside.
4+
Deleting the original file from Discord will also prevent loading it with this site.
5+
6+
## Example
7+
Link to a txt file uploaded to Discord:
8+
> https://cdn.discordapp.com/attachments/147698382092238848/506154212124786689/example.txt
9+
10+
Take the relevant substring (channel id, attachment id, and attachment name):
11+
> 147698382092238848/506154212124786689/example
12+
13+
Add as a query parameter:
14+
> https://txt.discord.website?txt=147698382092238848/506154212124786689/example
15+
16+
For raw (non-formatted) output, append `&raw=true`:
17+
> https://txt.discord.website?txt=147698382092238848/506154212124786689/example&raw=true
18+
19+
## Logging format
20+
Additional formatting will occur for lines formatted in the following way:
21+
```
22+
[Timestamp] Username Up To 70 Chars (optional Discord ID) : Content
23+
```
24+
Ex:
25+
```
26+
[October 29, 2018 at 5:37 PM] jagrosh#4824 (123456789012345678) : Hello there
27+
```

0 commit comments

Comments
 (0)