Skip to content

Commit dd02f11

Browse files
committed
chore: add prettier
for more consistency 😉
1 parent c86f25d commit dd02f11

17 files changed

+4022
-4016
lines changed

.github/workflows/deploy-wrangler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
uses: cloudflare/wrangler-action@v3
2020
with:
2121
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
22-
command: deploy src/index.ts --minify
22+
command: deploy src/index.ts --minify

.prettierrc.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"trailingComma": "none",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true,
6+
"jsxSingleQuote": true,
7+
"printWidth": 120
8+
}

README.md

+19-13
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,46 @@
11
# 📦 fxTikTok
2+
23
[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/okdargy/fxtiktok)
34

45
Embed TikTok videos and slideshows on Discord with just `s/i/n`
56

67
## Screenshots
8+
79
<details>
810
<summary>Click here to see how fxTikTok looks like</summary>
911

10-
| <img src="https://raw.githubusercontent.com/okdargy/fxTikTok/master/.github/readme/compare.png" alt="Video Preview" width="90%" height="90%"/> |
11-
|:--:|
12-
| Comparing `tiktok.com` vs. `tnktok.com` embeds on Discord |
12+
| <img src="https://raw.githubusercontent.com/okdargy/fxTikTok/master/.github/readme/compare.png" alt="Video Preview" width="90%" height="90%"/> |
13+
| :--------------------------------------------------------------------------------------------------------------------------------------------: |
14+
| Comparing `tiktok.com` vs. `tnktok.com` embeds on Discord |
1315

14-
| <img src="https://raw.githubusercontent.com/okdargy/fxTikTok/master/.github/readme/slideshow.png" height="40%" width="40%" alt="Slideshow Preview" /> |
15-
|:--:|
16-
| Slideshow embeds |
16+
| <img src="https://raw.githubusercontent.com/okdargy/fxTikTok/master/.github/readme/slideshow.png" height="40%" width="40%" alt="Slideshow Preview" /> |
17+
| :---------------------------------------------------------------------------------------------------------------------------------------------------: |
18+
| Slideshow embeds |
1719

18-
| <img src="https://raw.githubusercontent.com/okdargy/fxTikTok/master/.github/readme/direct.png" alt="Direct Preview" /> |
19-
|:--:|
20-
| Direct image/video support |
20+
| <img src="https://raw.githubusercontent.com/okdargy/fxTikTok/master/.github/readme/direct.png" alt="Direct Preview" /> |
21+
| :--------------------------------------------------------------------------------------------------------------------: |
22+
| Direct image/video support |
2123

2224
</details>
2325

2426
## Usage
27+
2528
Using fxTikTok is easy on Discord. Fix ugly and unresponsive embeds by sending your TikTok link and then typing `s/i/n`
29+
2630
### How does this work?
31+
2732
When you send `s/i/n` in Discord, it modifies your most recent message. Specifically, it replaces the first occurrence of the second parameter (`i`) in the message with the third parameter (`n`).
2833

29-
| Before | After |
30-
|:--:|:--:|
34+
| Before | After |
35+
| :------------: | :------------: |
3136
| t**i**ktok.com | t**n**ktok.com |
3237

3338
### Using Direct Embeds
39+
3440
Don't want all that statistic clutter on your embed and only want the video or image? Simply change your URL to `d.tnktok.com`
3541

36-
| Before | After |
37-
|:--:|:--:|
42+
| Before | After |
43+
| :--------------------: | :------------------: |
3844
| **www**.t**i**ktok.com | **d**.t**n**ktok.com |
3945

4046
> Alternatively, you can also set `isDirect` to true thru the URL query by adding `?isDirect=true` at the end of your URL

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"scripts": {
55
"dev": "wrangler dev src/index.ts --env=local",
66
"build": "wrangler build src/index.ts",
7-
"deploy": "wrangler deploy --minify src/index.ts"
7+
"deploy": "wrangler deploy --minify src/index.ts",
8+
"prettier": "prettier . --write"
89
},
910
"dependencies": {
1011
"@types/set-cookie-parser": "^2.4.7",
@@ -14,6 +15,7 @@
1415
"devDependencies": {
1516
"@cloudflare/workers-types": "^4.20230914.0",
1617
"@types/react": "^18.2.46",
18+
"prettier": "3.2.5",
1719
"wrangler": "^3.21.0"
1820
},
1921
"homepage": "https://tnktok.com"

0 commit comments

Comments
 (0)