Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8be916c18 | ||
|
|
24d0313fd3 | ||
|
|
c3d2a81327 | ||
|
|
dfeb117663 | ||
|
|
495a830506 | ||
|
|
a730f67ca5 | ||
|
|
9a3867770d | ||
|
|
f8a66bb5e7 | ||
|
|
4b00e1342e | ||
|
|
f9e0584f00 | ||
|
|
900c290e75 | ||
|
|
69e1577d18 | ||
|
|
a6d9044c3a | ||
|
|
9e23d60ef1 | ||
|
|
f12449119c | ||
|
|
533bfc4458 | ||
|
|
1317c2879c | ||
|
|
f9e51f894a | ||
|
|
6fdd4ba833 | ||
|
|
9495ae2336 | ||
|
|
43f634e198 | ||
|
|
ad51be7afc | ||
|
|
15b8bfdf8f | ||
|
|
cb8ae47be6 | ||
|
|
db846c0680 | ||
|
|
630a37025e | ||
|
|
d3bbc7f2b0 | ||
|
|
4e0321ca5f | ||
|
|
ec00bdf9de | ||
|
|
01dd7ad9c6 | ||
|
|
d726005c38 | ||
|
|
4f3e868367 | ||
|
|
ed8bab7df8 | ||
|
|
9bdb14e13a | ||
|
|
b827f7f730 | ||
|
|
07e3660388 | ||
|
|
970ab9004e | ||
|
|
862445259e | ||
|
|
e96538bae0 | ||
|
|
7447ccc487 | ||
|
|
bcd3a00f91 | ||
|
|
8c3675546f | ||
|
|
ec64dab720 | ||
|
|
db976c4ae9 | ||
|
|
0db96795b3 | ||
|
|
59bae96c1b | ||
|
|
d062a0da1b | ||
|
|
d2668974f7 | ||
|
|
78e4c82f20 | ||
|
|
f965452c5d | ||
|
|
be644bb3d9 | ||
|
|
97cc9509c0 | ||
|
|
6dc7a10c2e | ||
|
|
19298b9ad6 | ||
|
|
97d427a6a8 | ||
|
|
bff6eb0503 | ||
|
|
dc9ab2067d | ||
|
|
e8e1f7bafb | ||
|
|
e50a456025 | ||
|
|
d442bbca1a | ||
|
|
92e35bd0ac | ||
|
|
cb9d283f62 | ||
|
|
8aba19e05b | ||
|
|
b7b4035492 | ||
|
|
3667fd82b7 | ||
|
|
691d5cde27 | ||
|
|
7f431b07e1 | ||
|
|
8264f19ad4 | ||
|
|
e947cfba45 | ||
|
|
e69590c035 | ||
|
|
8b19393d7c | ||
|
|
9480603572 | ||
|
|
90c6535a4c | ||
|
|
258588921a | ||
|
|
525b309037 | ||
|
|
2f941b9224 | ||
|
|
259c4240b5 | ||
|
|
9eb7157fce | ||
|
|
1138e1a826 | ||
|
|
e5057b8c1d | ||
|
|
7c04243b3d | ||
|
|
c6b54454be | ||
|
|
876fb0fc5e | ||
|
|
38f912dc0a | ||
|
|
eb24f49766 | ||
|
|
168ab1e1a1 | ||
|
|
49f601d200 | ||
|
|
15f32a0044 | ||
|
|
7bb3c60a61 | ||
|
|
4d1dfc1ae5 | ||
|
|
ec5dfd7727 | ||
|
|
8e5a588e87 | ||
|
|
b9c3cfaee4 | ||
|
|
01bd3f8d68 | ||
|
|
b39f545669 | ||
|
|
e7f517e157 | ||
|
|
1d7de715e7 | ||
|
|
76501c1aa0 | ||
|
|
a535a07810 | ||
|
|
6add54e86d | ||
|
|
a74eba9e97 | ||
|
|
34f782e747 | ||
|
|
1990322d6d | ||
|
|
0339979f9f | ||
|
|
823465fde9 | ||
|
|
1feae49490 | ||
|
|
1a1e2169a8 | ||
|
|
f1b1e25d9a | ||
|
|
ce6472be8d | ||
|
|
79232cecb9 | ||
|
|
1a802da0ce | ||
|
|
b33a845c08 | ||
|
|
6643b51a9b | ||
|
|
1cce00a09a | ||
|
|
1ef9a0289f | ||
|
|
498a359f01 | ||
|
|
ebbcdc2089 | ||
|
|
cced57b22e | ||
|
|
96d47a82bc | ||
|
|
b4cab18ecd | ||
|
|
d801447e5d | ||
|
|
8c041d4eef | ||
|
|
6ff2a23ff7 | ||
|
|
925ac96264 | ||
|
|
9e89198cd5 | ||
|
|
a1e6643dc0 | ||
|
|
63257a13f5 | ||
|
|
e37e0ccf9f | ||
|
|
018783bb47 | ||
|
|
f883670cbc | ||
|
|
57f6e928b7 | ||
|
|
cbeb83d8d0 | ||
|
|
33b4ea04b4 | ||
|
|
350434cc5a | ||
|
|
c0eca0c851 | ||
|
|
cdac43fa5f | ||
|
|
30aeabba88 | ||
|
|
02a07f3a8a | ||
|
|
986a32b3ce | ||
|
|
8c4afa73f8 | ||
|
|
6db3ccdb40 | ||
|
|
cf0fe5cbba | ||
|
|
621398f95b | ||
|
|
186a972db7 | ||
|
|
7473a17a5e | ||
|
|
66e08afb0d | ||
|
|
851da1d020 | ||
|
|
c44840978c | ||
|
|
90e012319a | ||
|
|
18de9cbaab | ||
|
|
42a76cbd38 | ||
|
|
eb95634801 | ||
|
|
de8bfff47f | ||
|
|
07c18911df | ||
|
|
cc769cc330 | ||
|
|
9794f58936 | ||
|
|
a44fcff3b1 | ||
|
|
7e4a3e88b9 | ||
|
|
8fd45e2205 | ||
|
|
7d235057e8 | ||
|
|
63a8a67771 | ||
|
|
bac39ca176 | ||
|
|
1979047bbc | ||
|
|
8860c1b0f8 | ||
|
|
626b1e8601 | ||
|
|
04086f31b9 | ||
|
|
7037aa9c3b | ||
|
|
f5bab8a698 | ||
|
|
ee44b1b1d8 | ||
|
|
d0f91df95b | ||
|
|
dc1c49da6a | ||
|
|
331040bbdf | ||
|
|
70e1d4b30d | ||
|
|
03dbd797fb | ||
|
|
eb4cb1fbfe | ||
|
|
28172f7f8f | ||
|
|
cb5347cbb8 | ||
|
|
1ce0781d2d | ||
|
|
1257aa76d7 | ||
|
|
6ec3835896 | ||
|
|
506fe7d9bd | ||
|
|
14ef9f6295 | ||
|
|
0d76e1a29e | ||
|
|
9e42d7e8f5 | ||
|
|
364f97332b | ||
|
|
caa7bb8a65 | ||
|
|
3e956b34c1 | ||
|
|
038374e5aa | ||
|
|
dafd54f830 | ||
|
|
cb65e6b0af | ||
|
|
4ca8590c83 | ||
|
|
c5ef02d7e6 | ||
|
|
8175aa8715 | ||
|
|
b426634659 | ||
|
|
e92da1b700 | ||
|
|
7e0a2e88ee | ||
|
|
16afa8c2d4 | ||
|
|
907288455a | ||
|
|
64689e4e3b | ||
|
|
294377846a | ||
|
|
70e4cbaba2 | ||
|
|
9e2f9526fb | ||
|
|
84bec20fa5 | ||
|
|
e9a492fde6 | ||
|
|
76a69f08b4 | ||
|
|
893110d3ef | ||
|
|
70575fa9cf | ||
|
|
bb2450eb3c | ||
|
|
ab56689326 | ||
|
|
a9cf07480a | ||
|
|
c81de2d758 | ||
|
|
aa1c7639f2 | ||
|
|
d448101b32 | ||
|
|
e806f0ede2 | ||
|
|
8253c27333 | ||
|
|
254392370f | ||
|
|
d2319688a5 | ||
|
|
ffebe6c696 | ||
|
|
9e4094f3a9 | ||
|
|
f7eadb08a9 | ||
|
|
d511cfa4cc | ||
|
|
270a3051b7 | ||
|
|
81bc9f9ba6 | ||
|
|
338cec4f18 | ||
|
|
b455e3380f | ||
|
|
92761f2c55 | ||
|
|
7823b8ad2e | ||
|
|
cac82f3124 | ||
|
|
4b892d06e4 | ||
|
|
92149b0f00 | ||
|
|
399aa4c03c | ||
|
|
d5de715032 | ||
|
|
e6fb179184 | ||
|
|
af54f12ec3 | ||
|
|
909cabd517 | ||
|
|
a734a71d2f | ||
|
|
91dc45c880 | ||
|
|
91f364b76a | ||
|
|
23dd088466 | ||
|
|
2cabcc57f4 | ||
|
|
dd6092a5e7 | ||
|
|
3c2861f956 | ||
|
|
894b841769 | ||
|
|
62627c96a3 | ||
|
|
c173ece882 | ||
|
|
eca7cbbbeb | ||
|
|
c72bfa9f71 | ||
|
|
b4ae39a509 | ||
|
|
631c051895 | ||
|
|
9a2e11a2a4 | ||
|
|
aa6011b18d | ||
|
|
9419aec116 | ||
|
|
638402589f | ||
|
|
6d6a6bf738 | ||
|
|
31f6123a55 | ||
|
|
18a3e3092c | ||
|
|
5ded0f8744 | ||
|
|
4e0f0536fa | ||
|
|
3f081a5577 | ||
|
|
2447d663fa | ||
|
|
8a0afee97a | ||
|
|
3cca68a8f0 | ||
|
|
622cd92a13 | ||
|
|
6d9e6973d5 | ||
|
|
098e6c09b9 | ||
|
|
186d45e3d9 | ||
|
|
0fdc87a88c | ||
|
|
1d4ac2f133 | ||
|
|
21158e9081 | ||
|
|
fedad8df3e | ||
|
|
6c8f5ca478 | ||
|
|
463af106be | ||
|
|
feeb850ca9 | ||
|
|
80ffff322c | ||
|
|
0833375562 | ||
|
|
297f2f6580 | ||
|
|
438feefa83 | ||
|
|
8f6388b42b | ||
|
|
405f544774 | ||
|
|
dd0644e09f | ||
|
|
d8ac0b2ef6 | ||
|
|
87955214e3 | ||
|
|
f985cbf70b | ||
|
|
f64e72c312 | ||
|
|
ce6715cf2c | ||
|
|
18e5405c54 | ||
|
|
a0f15fc1c4 | ||
|
|
cf20ae38d4 | ||
|
|
2bf5eb78be | ||
|
|
57271e3c23 | ||
|
|
2258b0f936 | ||
|
|
aa8115d260 | ||
|
|
f8dfa386a0 | ||
|
|
00771e130f | ||
|
|
bd612bf777 | ||
|
|
ca208e44a1 | ||
|
|
72c4cd664b | ||
|
|
f907c79d68 | ||
|
|
ae3d0a08cd | ||
|
|
fb66027de0 | ||
|
|
423ad4e433 | ||
|
|
cf291c89a2 | ||
|
|
604e356736 | ||
|
|
00b721f34f | ||
|
|
95b105cb65 | ||
|
|
433ffba1e3 | ||
|
|
423a8b8088 | ||
|
|
d2d575bd72 | ||
|
|
2958124499 | ||
|
|
5addc55dd0 | ||
|
|
c78e58106a | ||
|
|
798f063712 | ||
|
|
ff99487b13 | ||
|
|
0c58515fd0 | ||
|
|
c39a59d321 | ||
|
|
3167e311c2 | ||
|
|
7b17d3f96e | ||
|
|
ac87a9d919 | ||
|
|
25ea608d81 | ||
|
|
ebe1fb891b | ||
|
|
931257d18d | ||
|
|
ae66fc92ef | ||
|
|
fc4390d22f | ||
|
|
4c2b0253de | ||
|
|
e34a6c6e4b | ||
|
|
90d4b76b31 | ||
|
|
3fd90588a3 | ||
|
|
e81c0cbc1e | ||
|
|
4c9715988d | ||
|
|
c2d2d076f0 | ||
|
|
d1d8aad6c7 | ||
|
|
dd39563d6d | ||
|
|
64fd15c0a5 | ||
|
|
5fb36352d2 | ||
|
|
8bf8030157 | ||
|
|
da950ad42f | ||
|
|
f8f95af215 | ||
|
|
a0ba60a3fb | ||
|
|
ab5061ba99 | ||
|
|
01ed20941d | ||
|
|
169588a211 | ||
|
|
c7821d03d2 | ||
|
|
9dc48c9125 | ||
|
|
a67d1700fc | ||
|
|
c221c06511 | ||
|
|
abcb75f06e | ||
|
|
7dd3913ae8 | ||
|
|
f2ae698438 | ||
|
|
0f46f333b5 | ||
|
|
79343438f0 | ||
|
|
8dd0ca9d10 | ||
|
|
aa0069a0a3 | ||
|
|
8882c28267 | ||
|
|
24cf2c2cd9 | ||
|
|
8570559588 | ||
|
|
d8f53bff9f | ||
|
|
58f5b894f9 |
No files matched your search
@@ -0,0 +1,34 @@
|
||||
name: CD Asia Ratings Latest
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
jobs:
|
||||
host:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: "npm"
|
||||
|
||||
- name: Install Yarn
|
||||
run: npm install --location=global yarn
|
||||
|
||||
- name: Use node_modules cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: "**/node_modules"
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
|
||||
- name: Generate leaderboard
|
||||
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=asia --latest
|
||||
@@ -0,0 +1,34 @@
|
||||
name: CD Asia Ratings Leaderboards
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 17 * * *"
|
||||
|
||||
jobs:
|
||||
host:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: "npm"
|
||||
|
||||
- name: Install Yarn
|
||||
run: npm install --location=global yarn
|
||||
|
||||
- name: Use node_modules cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: "**/node_modules"
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
|
||||
- name: Generate leaderboard
|
||||
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=asia
|
||||
@@ -0,0 +1,60 @@
|
||||
name: CD Docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install Yarn
|
||||
run: npm install --location=global yarn
|
||||
|
||||
- name: Use node_modules cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
|
||||
- name: Build docs
|
||||
run: yarn build:docs
|
||||
|
||||
- name: Configure pages
|
||||
uses: actions/configure-pages@v2
|
||||
|
||||
- name: Upload pages artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: dist/docs
|
||||
|
||||
- name: Deploy
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
||||
|
||||
- name: Archive build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: dist
|
||||
path: docs/.vitepress/dist
|
||||
@@ -0,0 +1,34 @@
|
||||
name: CD Europe Ratings Latest
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
jobs:
|
||||
host:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: "npm"
|
||||
|
||||
- name: Install Yarn
|
||||
run: npm install --location=global yarn
|
||||
|
||||
- name: Use node_modules cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: "**/node_modules"
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
|
||||
- name: Generate leaderboard
|
||||
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=eu --latest
|
||||
@@ -0,0 +1,34 @@
|
||||
name: CD Europe Ratings Leaderboards
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 23 * * *"
|
||||
|
||||
jobs:
|
||||
host:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: "npm"
|
||||
|
||||
- name: Install Yarn
|
||||
run: npm install --location=global yarn
|
||||
|
||||
- name: Use node_modules cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: "**/node_modules"
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
|
||||
- name: Generate leaderboard
|
||||
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=eu
|
||||
@@ -0,0 +1,32 @@
|
||||
name: CD Host
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 */6 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
host:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Download release assets
|
||||
run: |
|
||||
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/tresabhi/blitzkrieg/releases/latest \
|
||||
| grep "browser_download_url.*bot.zip" \
|
||||
| cut -d : -f 2,3 \
|
||||
| tr -d \")
|
||||
curl -L -o bot.zip $DOWNLOAD_URL
|
||||
unzip bot.zip
|
||||
|
||||
- name: Run bot
|
||||
run: NODE_ENV=production GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DISCORD_BLITZ_DB=${{ secrets.DISCORD_BLITZ_DB }} node --enable-source-maps index.cjs
|
||||
@@ -0,0 +1,34 @@
|
||||
name: CD North America Ratings Latest
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
host:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install Yarn
|
||||
run: npm install --location=global yarn
|
||||
|
||||
- name: Use node_modules cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
|
||||
- name: Generate leaderboard
|
||||
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=na --latest
|
||||
@@ -0,0 +1,34 @@
|
||||
name: CD North America Ratings Leaderboards
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 5 * * *'
|
||||
|
||||
jobs:
|
||||
host:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install Yarn
|
||||
run: npm install --location=global yarn
|
||||
|
||||
- name: Use node_modules cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
|
||||
- name: Generate leaderboard
|
||||
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=na
|
||||
@@ -1,4 +1,4 @@
|
||||
name: CI Build
|
||||
name: CI Build Bot
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
@@ -11,18 +11,14 @@ jobs:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
|
||||
steps:
|
||||
- name: Get code
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install Yarn
|
||||
@@ -38,10 +34,10 @@ jobs:
|
||||
run: yarn
|
||||
|
||||
- name: Build
|
||||
run: yarn build
|
||||
run: yarn build:bot
|
||||
|
||||
- name: Archive build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: dist
|
||||
path: dist
|
||||
name: bot
|
||||
path: dist/bot
|
||||
@@ -0,0 +1,43 @@
|
||||
name: CI Build Docs
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install Yarn
|
||||
run: npm install --location=global yarn
|
||||
|
||||
- name: Use node_modules cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
|
||||
- name: Build
|
||||
run: yarn build:docs
|
||||
|
||||
- name: Archive build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: docs
|
||||
path: dist/docs
|
||||
@@ -0,0 +1,43 @@
|
||||
name: CI Build Website
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install Yarn
|
||||
run: npm install --location=global yarn
|
||||
|
||||
- name: Use node_modules cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
|
||||
- name: Build
|
||||
run: yarn build:website
|
||||
|
||||
- name: Archive build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: website
|
||||
path: dist/website
|
||||
@@ -1,38 +0,0 @@
|
||||
name: Host
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 */5 * * *'
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
host:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
|
||||
steps:
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Download release assets
|
||||
run: |
|
||||
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/tresabhi/blitzkrieg/releases/latest \
|
||||
| grep "browser_download_url.*dist.zip" \
|
||||
| cut -d : -f 2,3 \
|
||||
| tr -d \")
|
||||
curl -L -o dist.zip $DOWNLOAD_URL
|
||||
unzip dist.zip
|
||||
|
||||
- name: Run index.cjs
|
||||
run: NODE_ENV=production DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} WARGAMING_APPLICATION_ID=${{ secrets.WARGAMING_APPLICATION_ID }} node --enable-source-maps --trace-warnings index.cjs
|
||||
@@ -5,7 +5,12 @@ package-lock.json
|
||||
/playwright-report/
|
||||
/playwright/.cache/
|
||||
dist/
|
||||
dist.*
|
||||
yarn-error.log
|
||||
dist.zip
|
||||
commands.txt
|
||||
/test.*
|
||||
/test.*
|
||||
test.*
|
||||
/docs/.vitepress/dist
|
||||
/docs/.vitepress/cache
|
||||
servers.csv
|
||||
.next/
|
||||
tsconfig.tsbuildinfo
|
||||
@@ -1,3 +0,0 @@
|
||||
tasks:
|
||||
- init: yarn
|
||||
- command: yarn run pw
|
||||
@@ -5,28 +5,48 @@
|
||||
"bepaint",
|
||||
"blitzstars",
|
||||
"cleandist",
|
||||
"cockroackdb",
|
||||
"customperiod",
|
||||
"deburr",
|
||||
"diacriticless",
|
||||
"Everytime",
|
||||
"fullstats",
|
||||
"fuzzysort",
|
||||
"kranvagn",
|
||||
"Leaderboard",
|
||||
"leaderboards",
|
||||
"Oopsy",
|
||||
"outdir",
|
||||
"outfile",
|
||||
"ownedtanks",
|
||||
"playerachievements",
|
||||
"playerinfo",
|
||||
"ratingsleaderboard",
|
||||
"Resvg",
|
||||
"roboto",
|
||||
"searchclans",
|
||||
"searchplayers",
|
||||
"searchtanks",
|
||||
"SKLLD",
|
||||
"Smri",
|
||||
"startcase",
|
||||
"statsfull",
|
||||
"Stringifying",
|
||||
"strvk",
|
||||
"subnation",
|
||||
"tankaverages",
|
||||
"tankopedia",
|
||||
"tankstats",
|
||||
"tresabhi",
|
||||
"Unicum",
|
||||
"Unregistering",
|
||||
"vickers",
|
||||
"vitepress",
|
||||
"wargaming",
|
||||
"winrate"
|
||||
"webp",
|
||||
"winrate",
|
||||
"wotblitz",
|
||||
"zustand"
|
||||
],
|
||||
"deno.enable": false,
|
||||
"deno.unstable": false
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
and orientation.
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
- Demonstrating empathy and kindness toward other people
|
||||
- Being respectful of differing opinions, viewpoints, and experiences
|
||||
- Giving and gracefully accepting constructive feedback
|
||||
- Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
- Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
- The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
- Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
- Public or private harassment
|
||||
- Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
- Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
the [Official Discord Server](https://discord.gg/nDt7AjGJQH).
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
**Community Impact**: A violation through a single incident or series
|
||||
of actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
like social media. Violating these terms may lead to a temporary or
|
||||
permanent ban.
|
||||
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
communication with the community for a specified period of time. No public or
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.0, available at
|
||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||
|
||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||
enforcement ladder](https://github.com/mozilla/diversity).
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see the FAQ at
|
||||
https://www.contributor-covenant.org/faq. Translations are available at
|
||||
https://www.contributor-covenant.org/translations.
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023 TrèsAbhi
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -1,21 +1,44 @@
|
||||
# blitzkrieg
|
||||
# Blitzkrieg
|
||||
|
||||
A Discord bot for anything and everything related to World of Tanks Blitz.
|
||||
[](https://codeium.com)
|
||||
|
||||
## Invite the Bot
|
||||
Tools for everything World of Tanks Blitz
|
||||
|
||||
Join the [Discord server](https://discord.gg/nDt7AjGJQH), click on the bot's profile, and click "Add to Server".
|
||||
## Invite the bot
|
||||
|
||||
## Using
|
||||
Go to [application directory for Blitzkrieg](https://discord.com/application-directory/1097673957865443370) and click "Add to Server." Voila! You're ready to go.
|
||||
|
||||
### Installing dependencies
|
||||

|
||||
|
||||
## Visit the website
|
||||
|
||||
### https://blitz-krieg.vercel.app/
|
||||
|
||||

|
||||
|
||||
## Visit the documentation website
|
||||
|
||||
### https://tresabhi.github.io/blitzkrieg/
|
||||
|
||||

|
||||
|
||||
## Run the bot
|
||||
|
||||
### Install dependencies
|
||||
|
||||
```bash
|
||||
yarn
|
||||
```
|
||||
|
||||
### Running
|
||||
### Create `.env`
|
||||
|
||||
```env
|
||||
GH_TOKEN={YOUR_GITHUB_TOKEN_HERE}
|
||||
DISCORD_TOKEN={YOUR_DISCORD_TOKE_HERE}
|
||||
```
|
||||
|
||||
### Run the command
|
||||
|
||||
```bash
|
||||
yarn start discord-token=<token> wargaming-application-id=<id>
|
||||
yarn dev:bot
|
||||
```
|
||||
@@ -8,5 +8,7 @@
|
||||
"sklld_peasant_role": "896878529512370228",
|
||||
|
||||
"tres_guild_id": "734786591205359697",
|
||||
"tres_log_channel": "1109262265850544148"
|
||||
"tres_log_channel": "1109262265850544148",
|
||||
|
||||
"test_guild_id": "1124729294829142116"
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import { compareVersions } from 'compare-versions';
|
||||
import { readdirSync } from 'fs';
|
||||
import { parse } from 'path';
|
||||
import { defineConfig } from 'vitepress';
|
||||
import { getSidebar } from 'vitepress-plugin-auto-sidebar';
|
||||
|
||||
export default defineConfig({
|
||||
title: 'blitzkrieg',
|
||||
description: '🎉 All-in-one Discord bot for everything World of Tanks Blitz',
|
||||
base: '/blitzkrieg/',
|
||||
outDir: '../dist/docs',
|
||||
|
||||
themeConfig: {
|
||||
nav: [
|
||||
{ text: 'Home', link: '/' },
|
||||
{ text: 'Guide', link: '/guide/about' },
|
||||
],
|
||||
|
||||
sidebar: [
|
||||
...getSidebar({
|
||||
collapsed: false,
|
||||
contentDirs: ['guide', 'legal'],
|
||||
contentRoot: '/docs/',
|
||||
}),
|
||||
|
||||
{
|
||||
text: 'Changelogs',
|
||||
items: readdirSync('./docs/changelogs')
|
||||
.map((file) => parse(file).name)
|
||||
.sort(compareVersions)
|
||||
.map((name) => ({ text: name, link: `/changelogs/${name}.html` })),
|
||||
},
|
||||
],
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/tresabhi/blitzkrieg' },
|
||||
],
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,16 @@
|
||||
// https://vitepress.dev/guide/custom-theme
|
||||
import { h } from 'vue';
|
||||
import Theme from 'vitepress/theme';
|
||||
import './style.css';
|
||||
|
||||
export default {
|
||||
extends: Theme,
|
||||
Layout: () => {
|
||||
return h(Theme.Layout, null, {
|
||||
// https://vitepress.dev/guide/extending-default-theme#layout-slots
|
||||
});
|
||||
},
|
||||
enhanceApp({ app, router, siteData }) {
|
||||
// ...
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,90 @@
|
||||
/**
|
||||
* Customize default theme styling by overriding CSS variables:
|
||||
* https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
|
||||
*/
|
||||
|
||||
/**
|
||||
* Colors
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-c-brand: #646cff;
|
||||
--vp-c-brand-light: #747bff;
|
||||
--vp-c-brand-lighter: #9499ff;
|
||||
--vp-c-brand-lightest: #bcc0ff;
|
||||
--vp-c-brand-dark: #535bf2;
|
||||
--vp-c-brand-darker: #454ce1;
|
||||
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
|
||||
}
|
||||
|
||||
/**
|
||||
* Component: Button
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-button-brand-border: var(--vp-c-brand-light);
|
||||
--vp-button-brand-text: var(--vp-c-white);
|
||||
--vp-button-brand-bg: var(--vp-c-brand);
|
||||
--vp-button-brand-hover-border: var(--vp-c-brand-light);
|
||||
--vp-button-brand-hover-text: var(--vp-c-white);
|
||||
--vp-button-brand-hover-bg: var(--vp-c-brand-light);
|
||||
--vp-button-brand-active-border: var(--vp-c-brand-light);
|
||||
--vp-button-brand-active-text: var(--vp-c-white);
|
||||
--vp-button-brand-active-bg: var(--vp-button-brand-bg);
|
||||
}
|
||||
|
||||
/**
|
||||
* Component: Home
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-home-hero-name-color: transparent;
|
||||
--vp-home-hero-name-background: -webkit-linear-gradient(
|
||||
120deg,
|
||||
#bd34fe 30%,
|
||||
#41d1ff
|
||||
);
|
||||
|
||||
--vp-home-hero-image-background-image: linear-gradient(
|
||||
-45deg,
|
||||
#bd34fe 50%,
|
||||
#47caff 50%
|
||||
);
|
||||
--vp-home-hero-image-filter: blur(40px);
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(56px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 960px) {
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(72px);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Component: Custom Block
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-custom-block-tip-border: var(--vp-c-brand);
|
||||
--vp-custom-block-tip-text: var(--vp-c-brand-darker);
|
||||
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
|
||||
}
|
||||
|
||||
.dark {
|
||||
--vp-custom-block-tip-border: var(--vp-c-brand);
|
||||
--vp-custom-block-tip-text: var(--vp-c-brand-lightest);
|
||||
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
|
||||
}
|
||||
|
||||
/**
|
||||
* Component: Algolia
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
.DocSearch {
|
||||
--docsearch-primary-color: var(--vp-c-brand) !important;
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
# Blitzkrieg 1.10.0
|
||||
|
||||
This update addresses many readability issues that users have reported over time.
|
||||
|
||||
## Changes
|
||||
|
||||
- `/ownedtanks`
|
||||
- Tanks are now displayed in two columns
|
||||
- Collector and premium tanks now have their own colors
|
||||
- Tank types are also displayed
|
||||
- A stylistic image of the tank is also displayed for each tank to the right
|
||||
- `/fullstats`
|
||||
- Was previously called `/statsfull`; this was changed to avoid the clutter that would show up when searching for `/stats`
|
||||
- Added four catagories in which all the stats are sorted into
|
||||
- Catagories now have backgrounds to compartmentalize them
|
||||
- `/evolution`
|
||||
- Gave the axis markings a high contrast color
|
||||
- Added a label for the x axis affirming that it is plotted over the number of battles
|
||||
- `/today`
|
||||
- Added a border to all the rows to compartmentalize them
|
||||
- This command can now generate embeds too
|
||||
- Removed survivability
|
||||
- Added a limit option to cut off after a certain number of tanks played (this is mainly intended to be used by streamers to limit the content of the embeds)
|
||||
- Tanks are now displayed in order of the most recent battle
|
||||
- `/help`
|
||||
- A significant amount of subcommands were added
|
||||
- These new subcommands now return normal Discord messages instead of embeds in favor of readability
|
||||
- The contents of the replies are directly fetched from the Blitzkrieg documentation
|
||||
- Time zones
|
||||
- What is considered a "day's worth of battles" has been adjusted as the "reset time" was the same for all Blitz servers
|
||||
- The reset time is now dependent on the server of the player
|
||||
- Use `/help timezones` to learn more
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- All themes have been merged to leverage Bepaint's suffixes
|
||||
- Switched to Node module resolution
|
||||
@@ -0,0 +1,7 @@
|
||||
# Blitzkrieg 1.10.1
|
||||
|
||||
This is a bit of an experiment.
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Every midnight in the Central North American Time, a permanent record of the entire ratings leaderboard will be stored for North America
|
||||
@@ -0,0 +1,10 @@
|
||||
# Blitzkrieg 1.10.2
|
||||
|
||||
The experiment in Blitzkrieg `1.10.1` was a bit of a failure so here are a few changes.
|
||||
|
||||
## Fixes
|
||||
|
||||
- North American leaderboards are now saved in the `na` directory instead of `asia`
|
||||
- Dependencies are now installed before the script is ran
|
||||
- Added leaderboards for all regions
|
||||
- All regions now have their own separate cron timings
|
||||
@@ -0,0 +1,22 @@
|
||||
# Blitzkrieg 1.11.0
|
||||
|
||||
I am going on vacation so I thought I'd publish this a bit prematurely without all the planned features.
|
||||
|
||||
## Changes
|
||||
|
||||
- Added `/ratings`
|
||||
- This command currently only has the `leagues` subcommand group
|
||||
- Displays the top players in a league
|
||||
- Also shows the changes in their positions and scores since last region midnight
|
||||
- Use `/help timezones` to know when Blitzkrieg records the leaderboard
|
||||
- Blitzkrieg now internally generates and keeps a permanent record of all leaderboards updated every `UTC+0` midnight
|
||||
- This approach will allow us to capture the absolute latest state of the leaderboard before it is wiped for the next season
|
||||
|
||||
## Fixes
|
||||
|
||||
- Removed region "Europe" in `/verify` example
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Add scripts were upgraded to TypeScript
|
||||
- Secrets now only throw errors if they're used when not provided
|
||||
@@ -0,0 +1,54 @@
|
||||
# Blitzkrieg 1.12.0
|
||||
|
||||
_Houston, permission to return to Earth? A new update dropped._
|
||||
|
||||
## Features
|
||||
|
||||
- Added `multi-tank` filters to `/stats` and `/full-stats`
|
||||
- This lets you pull up the stats by combining filters of `nation`, `tank-type`, `tier`, and `tree-type`
|
||||
- Added `/ratings neighbours`
|
||||
- Lets you see your rank and the neighbours around you
|
||||
- Added a bunch more `/today` parameters (thank you for the suggestions, HisRoyalFatness!)
|
||||
- `cutoff`: the max number of rows to show (excluding the total row)
|
||||
- `maximized`: the max number of rows that show the full non-collapsed stats (default: `4`)
|
||||
- `show-total`: show the total row or not (default: `true`)
|
||||
- Tank search is now accent-tolerant
|
||||
|
||||
## Changes
|
||||
|
||||
- `/ratings` has been moved out of preview and is now accessible to all
|
||||
- `/today` now has a more appealing look with more efficient space management
|
||||
- `/stats`, `/full-stats`, and `/evolution` now have less convoluted commands
|
||||
- All periods now fall under `period` and `custom`
|
||||
- `period` has preset periods like `today`, `career`, `30`, `60`, `90`
|
||||
- `custom` lets you set a start and end day
|
||||
- Added dashes to command names, subcommands, options, etc. to make them more readable
|
||||
- Titlebar
|
||||
- Removed the Blitzkrieg logo
|
||||
- Removed region
|
||||
- Center aligned items
|
||||
- Footers are now center alinged when they do no have footer text on the left
|
||||
- Moved several title discriminators into the description
|
||||
- `/ratings` is now data-driven
|
||||
- Embeds now auto refresh every `30` seconds instead of `60`
|
||||
- Added numbers besides roman numerals in tier choice
|
||||
- I forgot to implement this in places other than `/owned-tanks`... oh well!
|
||||
- Increased precision of winrate in `/evolution` to `2` decimals
|
||||
|
||||
## Fixes
|
||||
|
||||
- Removed duplicate "Efficiency" cards in `/full-stats`
|
||||
- Titlebar gap is now `4px` just like Figma
|
||||
- Renamed `/statsfull` to `/full-stats` in the `/stats` footer
|
||||
- Rewards in `/ratings` are now properly aligned
|
||||
- `/ratings` now uses the correct source of information per region instead of getting it from a cached North American source
|
||||
- Search parameters are now passed onto the URL parser correctly
|
||||
- Custom date ranges now work correctly once again as the start is now the maximum days ago from today and the end is the minimum
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- All generated images are now `480px` wide instead of `640px` to combat the unnecessary amounts of negative space
|
||||
- Changed all relevant typings to be sourced from `stats` instead of `full-stats`
|
||||
- Added minimum character limit to clan search
|
||||
- Username auto-completing now only takes in regex-accepted parts of the input
|
||||
- Search parameters are now longer automatically generated by inferring command interactions
|
||||
@@ -0,0 +1,8 @@
|
||||
# Blitzkrieg 1.12.1
|
||||
|
||||
A duo of nasty bugs fixed.
|
||||
|
||||
## Fixes
|
||||
|
||||
- Fixed a tank index and id mismatch
|
||||
- Reverted username pattern infrence in command username inputs
|
||||
@@ -0,0 +1,29 @@
|
||||
# Blitzkrieg 1.12.2
|
||||
|
||||
A much needed room service is here!
|
||||
|
||||
## Changes
|
||||
|
||||
- Tier selection is now easier
|
||||
- Tier options across all commands have been unified to a single style
|
||||
- Tiers are now sorted from `10` to `1`
|
||||
- Tiers now show up in the format `Tier {tier_number} - {tier_roman_numeral}` (example: `Tier 8 - VIII`)
|
||||
- Removed powered by footer as links are provided regardless
|
||||
- Changed invite instructions to instead use application directory
|
||||
|
||||
## Fixes
|
||||
|
||||
- Guide link on the website is now fixed
|
||||
- Versions now show up in the correct order in the navigation bar
|
||||
- Added Blitzkrieg's GitHub link instead of the default Vitepress
|
||||
- Changed examples to guide in the navigation bar
|
||||
- Clan name and icon now show up with multi-tank filters
|
||||
- Removed a random `console.log`
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Added `knip`
|
||||
- Removed a lot of unused files and dependencies
|
||||
- Updated all dependencies to their latest
|
||||
- Code split `bot.ts`
|
||||
- `client` and `octokit` now reside separately
|
||||
@@ -0,0 +1,13 @@
|
||||
# Blitzkrieg 1.12.3
|
||||
|
||||
3-day downtime fixed!
|
||||
|
||||
## Changes
|
||||
|
||||
- Split `/ratings` into `/ratings current` and `/ratings archive`
|
||||
- `current` now properly handles when there is no ongoing ratings season
|
||||
- `archive` displays older archived seasons
|
||||
|
||||
## Fixes
|
||||
|
||||
- The bot is now no ratings seasons tolerant
|
||||
@@ -0,0 +1,7 @@
|
||||
# Blitzkrieg 1.12.4
|
||||
|
||||
Added very badly-coded temporary `/clan-event` command (without linting)
|
||||
|
||||
## Changes
|
||||
|
||||
- Added `/clan-event` command
|
||||
@@ -0,0 +1,12 @@
|
||||
# Blitzkrieg 1.12.5
|
||||
|
||||
Some patch up work
|
||||
|
||||
## Changes
|
||||
|
||||
- `/clan-event` now is more legible and comes with an approximation warning
|
||||
|
||||
## Fixes
|
||||
|
||||
- `/clan-event` now uses a more optimized way of fetching large data
|
||||
- This should fix the issue where too many people using the command broke it
|
||||
@@ -0,0 +1,12 @@
|
||||
# Blitzkrieg 1.12.6
|
||||
|
||||
Stops making the bot lie!
|
||||
|
||||
## Changes
|
||||
|
||||
- The approximation warning for `/clan-event` has been made more concise
|
||||
- Players with `0` wins are now omitted
|
||||
|
||||
## Fixes
|
||||
|
||||
- Players who haven't player within the current day are now omitted
|
||||
@@ -0,0 +1,13 @@
|
||||
# Blitzkrieg 1.12.7
|
||||
|
||||
A few fixes and clarifications
|
||||
|
||||
## Changes
|
||||
|
||||
- `/clan-event`
|
||||
- Made statement about the limited publicly available data
|
||||
- Added a statement about reset times
|
||||
|
||||
## Fixes
|
||||
|
||||
- Commands with images now once again work
|
||||
@@ -0,0 +1,7 @@
|
||||
# Blitzkrieg 1.12.8
|
||||
|
||||
Blitzkrieg is a completely free service and I earn no revenue from it. To keep it sustainable, I have to rely on free services. Unfortunately for embeds, seems like I have exceeded my limits. Before this service starts charging me, I have shut down embeds. They'll hopefully be back in 1.13 alongside the website! Only the future will tell...
|
||||
|
||||
## Changes
|
||||
|
||||
- Removed all embed buttons
|
||||
@@ -0,0 +1,7 @@
|
||||
# Blitzkrieg 1.12.9
|
||||
|
||||
Now that the clan event is over, we don't need `/clan-event`. This command may be reintroduced in the future as a part of a different command/feature and will definitely be re-enabled during the next clan event.
|
||||
|
||||
## Changes
|
||||
|
||||
- Disabled the `/clan-event` command
|
||||
@@ -0,0 +1,32 @@
|
||||
# Blitzkrieg 1.13.0
|
||||
|
||||
One of the biggest updates ever! This changelog's size does not truly represent the work (and brain cells) spent.
|
||||
|
||||
## Changes
|
||||
|
||||
- Added Blitzkrieg homepage
|
||||
- Added session tracker
|
||||
- Search players up and select one
|
||||
- This starts tracking your games from that point
|
||||
- This is displayed in a similar fashion to the `/today` command
|
||||
- Updated the permissions doc
|
||||
- This now includes all 3 of the needed permissions for full operation
|
||||
- Also renamed the permissions to better match Discord
|
||||
- Renamed `/help` to `/about`
|
||||
- Renamed `/help about` to `/about bot`
|
||||
|
||||
## Fixes
|
||||
|
||||
- Added `/ratings` error handling for `null` clans, players, and rewards
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Removed all server assets
|
||||
- Simplified build script to only compile the bot
|
||||
- Upgraded the build script to TypeScript
|
||||
- Moved docs build to `dist/docs`
|
||||
- Split `tsconfig.json` for Next.js and esbuild
|
||||
- Removed Gitpod config
|
||||
- Switched to `.env`
|
||||
- Made Wargaming application ID public
|
||||
- Started migration to Radix UI
|
||||
@@ -0,0 +1,17 @@
|
||||
# Blitzkrieg 1.13.1
|
||||
|
||||
The quickest minor update in town 🤠
|
||||
|
||||
## Changes
|
||||
|
||||
- Added a title, description, and icon to the website
|
||||
- Added display options to the session tracker
|
||||
|
||||
## Fixes
|
||||
|
||||
- Center aligned stats in breakdown to work better on low width devices
|
||||
- Center aligned the Blitzkrieg logo in the navbar
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Added up-to-date information to `README.md` and embed docs
|
||||
@@ -0,0 +1,7 @@
|
||||
# Blitzkrieg 1.13.2
|
||||
|
||||
One lonely albeit important fix.
|
||||
|
||||
## Fixes
|
||||
|
||||
- Gradients for `/stats` now use Radix's new hex values
|
||||
@@ -0,0 +1,7 @@
|
||||
# Blitzkrieg 1.13.3
|
||||
|
||||
Streamer's delight!
|
||||
|
||||
## Features
|
||||
|
||||
- Added config context menu for the session tracker embed
|
||||
@@ -0,0 +1,45 @@
|
||||
# Blitzkrieg 1.14.0
|
||||
|
||||
Elegance has never been met like this before
|
||||
|
||||
## Features
|
||||
|
||||
- Added `/link`
|
||||
- Unlike `/verify`, `/link` links you Discord and Blitz accounts across all servers
|
||||
- This command does not change your nickname
|
||||
- `/link` now simply displays a deprecation message
|
||||
- Usernames can still be inputted per-command to override your linked account
|
||||
- `/stats` and `/full-stats` are now way simpler
|
||||
- `/stats <type> <period>` has been replaced with `/stats <30|60|90|...>` (likewise, `/full-stats`)
|
||||
- These commands now have filters without having to opt into `multi-tank`
|
||||
- Added `/breakdown`
|
||||
- Unlike `/today`, `/breakdown` lets you select any period of time
|
||||
- `/breakdown` now simply displays a deprecation message
|
||||
- `/about commands` are now sorted alphabetically
|
||||
- Added a `/reset` button to the options dropdown and embed context-menu
|
||||
|
||||
## Changes
|
||||
|
||||
- Simplified no ongoing ratings season edge case
|
||||
- Updated welcome message for Skilled server to use `/link` and other up-to-date information
|
||||
- Tier weights are now reported in Arabic numerals instead of Roman
|
||||
- Removed tank images from `/owned-tanks`
|
||||
- Wargaming messed up their API and almost no tanks have any images anymore
|
||||
|
||||
## Fixes
|
||||
|
||||
- Banners now use a more economical `.webp` format just like the home page
|
||||
- Removed unused color palettes
|
||||
|
||||
## Technical changes
|
||||
|
||||
- Guild commands are now handled more efficiently
|
||||
- Removed nickname-based Blitz username inference
|
||||
- Code split a lot of common functionalities
|
||||
- Re-arranged `core` folder
|
||||
- Added midnight and latest ratings leaderboard caches
|
||||
- Merged renderers into their primary user files
|
||||
- Added sharding
|
||||
- Disabled for now but good for future proofing
|
||||
- Switched to a way cleaner logging schema
|
||||
- Hosting is now done in 6 hour periods instead of 5
|
||||
@@ -0,0 +1,17 @@
|
||||
# Blitzkrieg 1.14.1
|
||||
|
||||
Oopsy daisy, a memory leak!
|
||||
|
||||
## Changes
|
||||
|
||||
- Simplified message for users to use `/link`
|
||||
|
||||
## Fixes
|
||||
|
||||
- Fixed a memory leak in the render thread manager
|
||||
|
||||
## Technical changes
|
||||
|
||||
- Added `UserError` extending `Error`
|
||||
- This lets the bot avoid spamming the debug console for mistakes users make
|
||||
- Reduced render threads to 2
|
||||
@@ -0,0 +1,8 @@
|
||||
# Blitzkrieg 1.14.1
|
||||
|
||||
A late night hot fix for my homies
|
||||
|
||||
## Fixes
|
||||
|
||||
- Clan info is now fetched using `clan_id` instead of `account_id`
|
||||
- Generic stats row names are now bounded by a max width
|
||||
@@ -0,0 +1,9 @@
|
||||
# Blitzkrieg 1.3.0
|
||||
|
||||
This release of Blitzkrieg focuses mainly on **performance**. Blitzkrieg now uses **Satori** and **resvg** under the hood to render images resulting in a solid **2x to 8x performance boost** depending on the situation.
|
||||
|
||||
This only applies to `/today` and /stats` as they're the only commands that render an image currently.
|
||||
|
||||
We're working further on **performance optimizations**. Our goal is to deliver a message within **3 seconds or less**. We're close and we'll get there!
|
||||
|
||||
**Thank you to ba·ka**, the creator of aftermath, for telling me about Satori!
|
||||
@@ -0,0 +1,8 @@
|
||||
# Blitzkrieg 1.3.1
|
||||
|
||||
In this **minor update**, Blitzkrieg received several little **safety features** and **bug fixes**!
|
||||
|
||||
- The bot is now more verbose
|
||||
- Every time you use a command, the bot will now store data on what parameters you provided and if any errors were caused
|
||||
- This update also eliminates the redundant usage of truthy type checking after API calls
|
||||
- _Hopefully_ the bot let you know why it won't respond to you
|
||||
@@ -0,0 +1,5 @@
|
||||
# Blitzkrieg 1.3.2
|
||||
|
||||
From now on, I **won't be pinging** the Blitzkrieg role for minor updates. Anyway, this **minor update** includes an optimization for `/today`. The tank icons on the left were fetched every time someone used the command. The bot now caches those images allowing for an instantaneous load.
|
||||
|
||||
I noticed rendering times up to `3000ms` for rendering stats of about 10 tanks. Cached images should now be indifferent to this.
|
||||
@@ -0,0 +1,8 @@
|
||||
# Blitzkrieg 1.3.3
|
||||
|
||||
This **minor update** fixes a few things :partying_face:
|
||||
|
||||
- Rating battles now no longer count in `/today`
|
||||
- This resolves the issue where some tanks had `NaN` stats
|
||||
- Stats with the value of `-Infinity` are now ommited
|
||||
- Images are not longer cached in `dev` `env`
|
||||
@@ -0,0 +1,28 @@
|
||||
# Blitzkrieg 1.4.0
|
||||
|
||||
A **few features** :star: and a **few much needed fixes** :wrench:!
|
||||
|
||||
## Changes
|
||||
|
||||
- Added an "today" row to `/today` which displays your overall statistics
|
||||
- Gave `/tankstats` the new blitzkrieg look
|
||||
- Also added "today", "60 days", and "career" stats
|
||||
- Added a beta warning to generated images
|
||||
- Updated the logo for match the new slate theme
|
||||
- Canary versions now use the canary logo variant
|
||||
- Added subtle polka dots to the background
|
||||
|
||||
## Fixes
|
||||
|
||||
- Rewrote `/stats` to precisely calculate stats on a per-tank basis
|
||||
- This should stop the bot from hallucinating about stats
|
||||
- This should also stop the bot from giving stats from like a week ago
|
||||
- Also added "60 day" stats
|
||||
- Tank autocomplete is now more human-tolerant just like username autocomplete
|
||||
- Titlebar discriminators are now truncated on overflow
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- The bot now uses `bepaint`, a library that I made that standardizes the color palette
|
||||
- Also updated the logo to follow this
|
||||
- Optimized how fonts are imported by fetching them all asynchronously
|
||||
@@ -0,0 +1,3 @@
|
||||
# Blitzkrieg 1.4.1
|
||||
|
||||
A quick fix for the `/help` command not accepting the new theme colors.
|
||||
@@ -0,0 +1,23 @@
|
||||
# Blitzkrieg 1.5.0
|
||||
|
||||
So so many **quality-of-life** changes and nasty **bug squashes**!
|
||||
|
||||
## Changes
|
||||
|
||||
- Added WN8 to `/today`, `/stats`, and `/tankstats`
|
||||
- Added average tier to `/stats` and `/tankstats`
|
||||
- Average tier in `/tankstats` is simply the tier of the tank that you are looking up
|
||||
- Added an indicator of WN8 ranging from "very bad" (gray) to "super unicum" (purple)
|
||||
- Replaced ellipses with simple clipping
|
||||
- Added a "large image" warning to `/today` if displaying `6` or more tanks
|
||||
|
||||
## Fixes
|
||||
|
||||
- Removed random 0 that'd show up in `/today` where there was no difference between career and today's stats
|
||||
- Added stricter checks for username autocomplete via a new REGEX pattern
|
||||
- Fixed wonky ellipses that'd cut off usernames, tank names, and clan names unnecessarily
|
||||
- Fixed the delta indicator showing up in battle counts
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Optimized and cleaned up tankopedia cache
|
||||
@@ -0,0 +1,3 @@
|
||||
# Blitzkrieg 1.5.1
|
||||
|
||||
An emergency patch that fixes failed image caching.
|
||||
@@ -0,0 +1,14 @@
|
||||
# Blitzkrieg 1.5.2
|
||||
|
||||
Quite a few **bug fixes** with a **bunch more** on their way next update!
|
||||
|
||||
## Fixes
|
||||
|
||||
- Disabled image encoding as it seems to have broken in `1.5.0` and simply spams the console now
|
||||
- `/stats` now ignores tanks that don't have any averages
|
||||
- Tanks may not have averages registered in Blitz Stars because they are new or are in testing
|
||||
- Take a look at \_34's testing tanks in the image below
|
||||
- Fixed the "large image" prompt by simply removing the whole prompt
|
||||
- _Kaboom? Yes Rico, kaboom._
|
||||
- `/today` now displays `--` when there is no WN8 to display
|
||||
- This is unlike `/stats` which just shows 0 (this will be fixed soon)
|
||||
@@ -0,0 +1,10 @@
|
||||
# Blitzkrieg 1.5.3
|
||||
|
||||
Just a few more fixes that weren't that important so were deffered to this update.
|
||||
|
||||
## Fixes
|
||||
|
||||
- `/stats` now uses `--` just like `/today` when WN8 is not available
|
||||
- Removed an unnecessary try/catch during the execution of a command
|
||||
- Added error handling for an edge case where accounts with 0 battles were looked up
|
||||
- This only applies to when `api/tanks/stats` is fetched; most other commands still need this fix
|
||||
@@ -0,0 +1,8 @@
|
||||
# Blitzkrieg 1.5.4
|
||||
|
||||
A last batch of fixes before the next update!
|
||||
|
||||
## Fixes
|
||||
|
||||
- Career WN8 in the `/today` command now accumulates the WN8 for all tanks instead of just the ones shown
|
||||
- WN8 and average tiers are now displayed in `/stats` in the `career` period
|
||||
@@ -0,0 +1,25 @@
|
||||
# Blitzkrieg 1.6.0
|
||||
|
||||
Spread the beauty! Spread the ease!
|
||||
|
||||
## Features
|
||||
|
||||
- Commands no longer require you to provide an username
|
||||
- They are automatically inferred from your Discord nickname
|
||||
- Re-implemented the `/eligible` command
|
||||
- This command checks a player's eligibility for any of the Skilled clans
|
||||
- This command is only available in the [Skilled](https://discord.gg/ZPvcEG7DS8) and [TresAbhi Discord](https://discord.gg/nDt7AjGJQH) servers
|
||||
- Gave `/ownedtanks` and `/inactive` the new Blitzkrieg look
|
||||
- Added "Powered by Wargaming" to commands where Blitz Stars is not utilized
|
||||
|
||||
## Fixes
|
||||
|
||||
- Removed image encoding all together
|
||||
- As it turns out, encoding them in `base64` made rendering slower!
|
||||
- Tank images in `/today` now don't make parent rows incorrectly taller
|
||||
- Added a "No tanks found" when a player does not own tanks in a tier
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Added a mature error handling system
|
||||
- Commands can now just `throw errorWithCause(...)` without caring about the error reporting to the user
|
||||
@@ -0,0 +1,20 @@
|
||||
# Blitzkrieg 1.7.0
|
||||
|
||||
This is mostly a technical update to make migrating to cyclic.sh easier.
|
||||
|
||||
## Changes
|
||||
|
||||
- The bot's new deferred caching approach allows the bot to start up almost `4x` as fast
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Made numerous caches non-blocking
|
||||
- Removed an unnecessary root-blocking await where fonts are imported
|
||||
- Further improved performance by deferring font imports until after the declaration
|
||||
- Tank averages and tankopedia are now declared fully empty only to be populated after a deferred fetch
|
||||
- Reordered error handler, client login, and client event listener registration orders
|
||||
- Removed `vite` all together
|
||||
- This reduces bundle sizes
|
||||
- To do this, a more primitive way of importing commands is used
|
||||
- Removed the redundant usage of `args` to get the Discord token and Wargaming Application ID on each use
|
||||
- Added a build script using `esbuild`
|
||||
@@ -0,0 +1,3 @@
|
||||
# Blitzkrieg 1.7.1
|
||||
|
||||
A hot fix to bring the bot back online with `vite-node`.
|
||||
@@ -0,0 +1,7 @@
|
||||
# Blitzkrieg 1.7.2
|
||||
|
||||
A quick, tiny, cute bug fix
|
||||
|
||||
## Fixes
|
||||
|
||||
- Tanks now once again show up in `/tankstats`
|
||||
@@ -0,0 +1,3 @@
|
||||
# Blitzkrieg 1.7.3 & 1.7.4
|
||||
|
||||
These minor updates fix compatibility issues with cyclic.
|
||||
@@ -0,0 +1,11 @@
|
||||
# Blitzkrieg 1.7.5
|
||||
|
||||
This minor release aids the migration to build-based hosting.
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Removed `env` logging
|
||||
- Fixed constant IDs and token naming conventions
|
||||
- Moved `esbuild` to a `js` script
|
||||
- Updated the workflow to use the latest binaries
|
||||
- Added a `zip` command for `dist`
|
||||
@@ -0,0 +1,14 @@
|
||||
# Blitzkrieg 1.7.6
|
||||
|
||||
Public service announcements and a few developer quality-of-life changes.
|
||||
|
||||
## Changes
|
||||
|
||||
- Added a PSA system
|
||||
- Lets me create announcements without having to release a new update every single time
|
||||
- Added fixed choices for tank stats instead of typing in numbers like before
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Command executions now return a payload and the executor now fully handles the interaction replies
|
||||
- The build script now skips certain steps to speed up building time when building in dev mode
|
||||
@@ -0,0 +1,7 @@
|
||||
# Blitzkrieg 1.7.7
|
||||
|
||||
A tiny fix related to hosting.
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- `index.cjs` is now run at root instead of `dist`
|
||||
@@ -0,0 +1,26 @@
|
||||
# Blitzkrieg 1.8.0
|
||||
|
||||
A slick new command and new potentials unlocked.
|
||||
|
||||
## Changes
|
||||
|
||||
- Added `/ping`
|
||||
- Allows you to see if the bot and Blitz are alive
|
||||
- Added custom periods for `/stats`
|
||||
- To do this, `/stats` received two sub command groups: `/stats player` and `/stats tank` (hence merging the two)
|
||||
- All periods, including cusotm ones, now live as subcommands
|
||||
- Added tier weights to `/stats`
|
||||
- Added `/evolution`
|
||||
- Shows your winrate and battles over a period
|
||||
|
||||
## Fixes
|
||||
|
||||
- `Infinity` and `NaN` values now show up as `--` in `/stats`
|
||||
- WN8 shortcomings in `/eligible` now rounds to nearest integer
|
||||
- Average tiers now, once again, show up in `/stats`
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Dev command names are implemented centrally in `interactionCreated`
|
||||
- Abstracted the renderers of `/stats`, `/evolution`, and `/today`
|
||||
- The bot now logs the number of server it's in on start up
|
||||
@@ -0,0 +1,7 @@
|
||||
# Blitzkrieg 1.8.1
|
||||
|
||||
A tiny oversight fixed.
|
||||
|
||||
# Fixes
|
||||
|
||||
- The min and max dates now show up in `/evolution`
|
||||
@@ -0,0 +1,32 @@
|
||||
# Blitzkrieg 1.9.0
|
||||
|
||||
The biggest, the baddest update yet!
|
||||
|
||||
## Changes
|
||||
|
||||
- Spiced up `/stats` with a graphics update
|
||||
- This command now only shows a few of the stats as most of them were pretty pointless
|
||||
- Renamed the old `/stats` to `/statsfull`
|
||||
- Added embeds for `/stats`
|
||||
- This is a URL that can be visited to load a "naked" variant of the command that auto-refreshes with the latest data every `60` seconds meant to be used the streamers
|
||||
- Added refresh buttons to a few commands
|
||||
- This lets you reuse a command on the click of a button
|
||||
- Fixed many readibility issues with `/evolution` thanks to @heldenklage
|
||||
|
||||
## Fixes
|
||||
|
||||
- Fixed several type issues for compatibility with `express`
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Added a seperate `server.ts` from `bot.ts`
|
||||
- Split builds appropriately
|
||||
- Added the ability for routes to respond with svg counterparts of commands
|
||||
- Cached `tankopedia.json` and `tankaverages.json` at build time
|
||||
- This may be reverted in a minor release i favor of `Promise<Tankopedia>`
|
||||
- Organized files as it was important to seperate the server and the bot code
|
||||
- Split `resolvePeriod` and `resolvePlayer` for command, button, and express counterparts
|
||||
- Switched a few instances of `Number(...)` to `parseInt(...)` and `parseLong(...)`
|
||||
- Disabled canary commands for the public
|
||||
- Merged `poweredBy` footers
|
||||
- `dist` now ships with a `package.json` for Cyclic
|
||||
@@ -0,0 +1,3 @@
|
||||
# Blitzkrieg 1.9.1
|
||||
|
||||
Created a website for Blitzkrieg! Check it out: https://tresabhi.github.io/blitzkrieg/
|
||||
@@ -0,0 +1,5 @@
|
||||
# Blitzkrieg 1.9.2
|
||||
|
||||
## Fixes
|
||||
|
||||
- Implemented `/blitzkrieg/` as the base path
|
||||
@@ -0,0 +1,14 @@
|
||||
# Blitzkrieg 1.9.3
|
||||
|
||||
A few fixes before we tackle the next major release.
|
||||
|
||||
## Fixes
|
||||
|
||||
- `/stats`, `/evolution`, and `/statsfull` now properly handle unowned or unplayed tanks
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- Added a `Command` suffix after all command exports
|
||||
- Added a `Route` suffix after all route exports
|
||||
- Moved `tankopedia` and `tankaverages` into a runtime cache
|
||||
- But, this time, it's a promise so we get the best of both worlds
|
||||
@@ -0,0 +1,12 @@
|
||||
# Blitzkrieg 1.9.4
|
||||
|
||||
Haha, I lied. More fixes.
|
||||
|
||||
## Fixes
|
||||
|
||||
- Tank names once again show when searching for tank stats
|
||||
- Tier weights now ignore tanks without entries in the `tankopedia`
|
||||
|
||||
## Technical Changes
|
||||
|
||||
- All `tankopedia` derivatives are now promises
|
||||
@@ -0,0 +1,9 @@
|
||||
# Blitzkrieg 1.9.5
|
||||
|
||||
Hopefully this is the last round of fixes for Blitzkrieg `1.9`.
|
||||
|
||||
## Fixes
|
||||
|
||||
- All commands have been tweaked to work even with a lack of a tankopedia entry
|
||||
- This should fix test tanks not showing up
|
||||
- `/today` now properly preserves all WN8 entries
|
||||
@@ -0,0 +1,23 @@
|
||||
# Embeds
|
||||
|
||||
Embeds are URLs generated by commands or tools that represent the "naked" version of the respective command or tool
|
||||
|
||||
## Creating Embeds
|
||||
|
||||
1. Use a command or tool and click on "Embed" if it's available
|
||||
2. Make sure to tweak the settings of the command or tool because embeds replicate everything
|
||||
|
||||
## Using Embeds in Streaming Softwares
|
||||
|
||||
1. Click on the "Embed" button
|
||||
- If this was generated by a command, copy the URL from the browser
|
||||
- If this was generated by a tool, the URL has been copied to your clipboard already
|
||||
2. Paste this URL into your streaming service as a "Browser Source"
|
||||
- Tool embeds use local storage so data won't be transferred from you browser to your streaming software
|
||||
- Make sure to visit the tool's page in your streaming software (using the "Interact" feature) and then open the embed
|
||||
- Set your browser source refresh rate to `1Hz` because that's how fast embeds refresh
|
||||
|
||||
## How Embeds Behave
|
||||
|
||||
- They load like any normal website
|
||||
- They auto refresh every `1s`
|
||||
@@ -0,0 +1,17 @@
|
||||
# Installing Blitzkrieg
|
||||
|
||||
It's easy as 1, 2, 3!
|
||||
|
||||
## Step 1
|
||||
|
||||
Join a server that already has Blitzkrieg or [join our official Discord server](https://discord.gg/nDt7AjGJQH).
|
||||
|
||||
## Step 2
|
||||
|
||||
View the bot's profile and click "Add to Server".
|
||||
|
||||
<video src="https://i.imgur.com/Zq0P3m2.mp4" autoplay loop muted width=320 title="how to install"></video>
|
||||
|
||||
## Step 3
|
||||
|
||||
Review the permissions the bot is asking for and add it to your server!
|
||||
@@ -0,0 +1,10 @@
|
||||
# Introduction
|
||||
|
||||
Blitzkrieg is a multipurpose bot for anything and everything World of Tanks Blitz.
|
||||
|
||||
- Track statistics
|
||||
- Find inactive players in a clan
|
||||
- Lookup owned tanks
|
||||
- Create embeds for streams
|
||||
- Track a player/tanks statistical evolution
|
||||
- ...and a variety of other similar things
|
||||
@@ -0,0 +1,3 @@
|
||||
# Inviting the Bot
|
||||
|
||||
Go to [application directory for Blitzkrieg](https://discord.com/application-directory/1097673957865443370) and click "Add to Server." Voila! You're ready to go.
|
||||
@@ -0,0 +1,7 @@
|
||||
# Permissions
|
||||
|
||||
The following Discord permissions are required by the bot to ensure full functionality:
|
||||
|
||||
- Manage nicknames
|
||||
- Read messages / view channels
|
||||
- Attach files
|
||||
@@ -0,0 +1,9 @@
|
||||
# Timezones
|
||||
|
||||
What is considered a "day's worth of games" is determined by the reset time. The reset time is generally at midnight everyday after which newer games are counted towards the next day. Reset times vary from region to region:
|
||||
|
||||
- North America: `UTC-5:00` (Central North American Time midnight)
|
||||
- Europe: `UTC+1:00` (Central European Time midnight)
|
||||
- Asia: `UTC+7:00` (Central Asia Standard Time midnight)
|
||||
|
||||
**Reset times are different from Blitz Stars** (Blitz Stars resets at 5:00 am locally relative to the user opening their website). Inconsistencies with Blitz Stars only occur with sleep-deprived players and players who play in the wrong region.
|
||||
@@ -0,0 +1,30 @@
|
||||
---
|
||||
# https://vitepress.dev/reference/default-theme-home-page
|
||||
layout: home
|
||||
|
||||
hero:
|
||||
name: 'blitzkrieg'
|
||||
text: Everything Blitz, right in Discord
|
||||
tagline: All-in-one Discord bot for everything World of Tanks Blitz
|
||||
image:
|
||||
src: '/assets/images/hero.png'
|
||||
alt: 'blitzkrieg'
|
||||
actions:
|
||||
- theme: brand
|
||||
text: Add to Discord Server
|
||||
link: guide/install
|
||||
- theme: alt
|
||||
text: Guide
|
||||
link: /guide/about
|
||||
|
||||
features:
|
||||
- title: Clean and Efficient UI
|
||||
icon: 🚀
|
||||
details: Blitzkrieg is where concise meets efficient. Get the information you need in the way you want.
|
||||
- title: Endless Possibilities
|
||||
icon: 🛠
|
||||
details: With endless ways to customize the output, it's guaranteed that you'll always get the information you need.
|
||||
- title: Easy to Use
|
||||
icon: 💻
|
||||
details: Leveraging Discord's, Blitz Stars', and Wargaming's powerful APIS, Blitzkrieg does all the hard work for you.
|
||||
---
|
||||
@@ -0,0 +1,23 @@
|
||||
# Blitzkrieg Privacy Policy
|
||||
|
||||
Blitzkrieg collects little to no data. Regardless, here is an exhaustive list of Blitzkrieg's data collection practices.
|
||||
|
||||
## Logs
|
||||
|
||||
All Blitzkrieg logs are available to the public as an effort for open source transparency. A history of all logs [can be found on GitHub](https://github.com/tresabhi/blitzkrieg/actions/workflows/host.yml). All logs expire automatically and are permanently deleted after 30 days. However, anyone may chose to save a local copy of the logs which is not tracked by GitHub.
|
||||
|
||||
## Commands
|
||||
|
||||
Everytime a command a command is used, the command name and parameters provided is logged. Any identifying information like manually provided in-game usernames are also recorded.
|
||||
|
||||
## Errors
|
||||
|
||||
Everytime an error occurs, a detailed stack trace, scope of the error, and the error message is logged both in the GitHub logs and in the public channel [#🔲︱blitzkrieg-logs](https://discord.com/channels/734786591205359697/880650462540476416) in [the official Discord server](https://discord.gg/nDt7AjGJQH).
|
||||
|
||||
## Databases
|
||||
|
||||
No databases are used by Blitzkrieg meaning that no data is collected outside of what has already been mentioned above. This is no permanent state.
|
||||
|
||||
## 3rd Party
|
||||
|
||||
The privacy policies of Discord, Wargaming, and Blitz Stars apply too since they are utilized by the bot.
|
||||
@@ -0,0 +1,13 @@
|
||||
# Blitzkrieg Terms of Service
|
||||
|
||||
## About
|
||||
|
||||
Blitzkrieg is a multi-function Discord bot that serves users with needs specific to the game World of Tanks Blitz.
|
||||
|
||||
## License
|
||||
|
||||
Blitzkrieg is licensed under the MIT License.
|
||||
|
||||
## 3rd Party
|
||||
|
||||
The terms of services of Discord, Wargaming, and Blitz Stars apply too since they are utilized by the bot.
|
||||
|
After Width: | Height: | Size: 8.3 KiB |
@@ -0,0 +1,5 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
||||
@@ -0,0 +1,12 @@
|
||||
import { createVanillaExtractPlugin } from '@vanilla-extract/next-plugin';
|
||||
|
||||
const withVanillaExtract = createVanillaExtractPlugin();
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
...withVanillaExtract(),
|
||||
|
||||
distDir: 'dist/website',
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"main": "server.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "node --enable-source-maps server.cjs"
|
||||
}
|
||||
|
||||
@@ -1,38 +1,69 @@
|
||||
{
|
||||
"name": "blitzkrieg",
|
||||
"version": "1.7.7",
|
||||
"description": "",
|
||||
"main": "src/index.ts",
|
||||
"version": "1.14.0",
|
||||
"description": "🎉 Tools for everything World of Tanks Blitz",
|
||||
"main": "src/server.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "yarn build:raw --dev && yarn start --dev",
|
||||
"start": "node --enable-source-maps --trace-warnings dist/index.cjs",
|
||||
"build:bot": "vite-node --script scripts/build",
|
||||
"build:website": "next build",
|
||||
"build:docs": "vitepress build docs",
|
||||
"build:ratingsleaderboard": "vite-node --script scripts/buildRatingsLeaderboard",
|
||||
"dev:bot": "yarn build:bot && yarn start:bot",
|
||||
"dev:docs": "vitepress dev docs",
|
||||
"dev:website": "next dev",
|
||||
"start:bot": "node --enable-source-maps dist/bot/index.cjs",
|
||||
"start:website": "next start",
|
||||
"host:docs": "vitepress preview docs",
|
||||
"publish:ratingsleaderboard": "vite-node --script scripts/buildRatingsLeaderboard --publish",
|
||||
"zip": "zip -r dist.zip dist",
|
||||
"build:raw": "node scripts/build",
|
||||
"build": "yarn lint && yarn build:raw",
|
||||
"lint": "tsc"
|
||||
"lint": "npx tsc",
|
||||
"lint:website": "next lint",
|
||||
"format": "prettier --write \"**/*.@(json|js|jsx|css|md|ts|tsx|html|xml|yml|gltf)\"",
|
||||
"knip": "knip",
|
||||
"update": "yarn upgrade --latest"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@radix-ui/colors": "^0.1.8",
|
||||
"@octokit/rest": "^20.0.1",
|
||||
"@prisma/client": "^5.4.1",
|
||||
"@radix-ui/colors": "^3.0.0-rc.4",
|
||||
"@radix-ui/react-icons": "^1.3.0",
|
||||
"@radix-ui/themes": "^1.1.2",
|
||||
"@resvg/resvg-js": "^2.4.1",
|
||||
"@vanilla-extract/css": "^1.13.0",
|
||||
"bepaint": "^0.1.0-beta.3",
|
||||
"discord.js": "^14.9.0",
|
||||
"escape-html": "^1.0.3",
|
||||
"discord.js": "^14.13.0",
|
||||
"dotenv": "^16.3.1",
|
||||
"esbuild": "^0.19.3",
|
||||
"express": "^4.18.2",
|
||||
"fuzzysort": "^2.0.4",
|
||||
"immer": "^10.0.2",
|
||||
"lodash": "^4.17.21",
|
||||
"markdown-escape": "^2.0.0",
|
||||
"next": "^13.5.2",
|
||||
"react": "^18.2.0",
|
||||
"satori": "^0.9.1"
|
||||
"react-dom": "^18.2.0",
|
||||
"react-fuzzysort": "^1.0.1",
|
||||
"satori": "^0.10.8",
|
||||
"vite-node": "^0.34.5",
|
||||
"vitepress": "^1.0.0-rc.20",
|
||||
"vitepress-plugin-auto-sidebar": "^1.1.0",
|
||||
"zustand": "^4.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@total-typescript/ts-reset": "^0.4.2",
|
||||
"@total-typescript/ts-reset": "^0.5.1",
|
||||
"@types/escape-html": "^1.0.2",
|
||||
"@types/lodash": "^4.14.195",
|
||||
"@types/express": "^4.17.18",
|
||||
"@types/lodash": "^4.14.199",
|
||||
"@types/markdown-escape": "^1.1.0",
|
||||
"@types/node": "^20.2.1",
|
||||
"@types/react": "^18.2.7",
|
||||
"esbuild": "^0.17.19",
|
||||
"typescript": "^5.0.4"
|
||||
"@types/node": "^20.6.5",
|
||||
"@types/react": "^18.2.22",
|
||||
"@vanilla-extract/next-plugin": "^2.3.1",
|
||||
"compare-versions": "^6.1.0",
|
||||
"knip": "^2.27.1",
|
||||
"prettier": "^3.0.3",
|
||||
"prisma": "^5.4.1",
|
||||
"typescript": "^5.2.2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "discord_blitz" (
|
||||
"discord" INT8 NOT NULL,
|
||||
"region" STRING NOT NULL,
|
||||
"blitz" INT4 NOT NULL,
|
||||
|
||||
CONSTRAINT "discord_blitz_pkey" PRIMARY KEY ("discord")
|
||||
);
|
||||
@@ -0,0 +1,3 @@
|
||||
# Please do not edit this file manually
|
||||
# It should be added in your version-control system (i.e. Git)
|
||||
provider = "cockroachdb"
|
||||
@@ -0,0 +1,14 @@
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "cockroachdb"
|
||||
url = env("DISCORD_BLITZ_DB")
|
||||
}
|
||||
|
||||
model discord_blitz {
|
||||
discord BigInt @id
|
||||
region String
|
||||
blitz Int
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.6 MiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 8.2 MiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 3.8 MiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 177 KiB |