mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2be4dbea7a | ||
|
|
b951c81bf5 | ||
|
|
8c221a1295 | ||
|
|
c41f721a96 | ||
|
|
1a92cbd951 | ||
|
|
54c5faf929 | ||
|
|
d1d9e9e4d1 | ||
|
|
5ca64f839e |
No files matched your search
Vendored
+1
@@ -47,6 +47,7 @@
|
|||||||
"Unregistering",
|
"Unregistering",
|
||||||
"vickers",
|
"vickers",
|
||||||
"vitepress",
|
"vitepress",
|
||||||
|
"Vovko",
|
||||||
"wargaming",
|
"wargaming",
|
||||||
"webp",
|
"webp",
|
||||||
"winrate",
|
"winrate",
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Blitzkrieg 1.15.5
|
||||||
|
|
||||||
|
Oops, this should've been in the last patch.
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
|
||||||
|
- User and channel cache is now guild cache exhaustive
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# Blitzkrieg 1.15.6
|
||||||
|
|
||||||
|
This should have also been in the last update lol.
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- Changed the format of `/about creators` and added one more person
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
|
||||||
|
- Archived ratings leaderboards are now fetched from the correct URL path
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
# Creators
|
# Creators
|
||||||
|
|
||||||
- TrèsAbhi `@tresabhi`
|
- **TrèsAbhi** `@tresabhi`: Creator and main programmer
|
||||||
- Creator & main programmer; _I do it all!_
|
- **Prince_NA** `@prince_na`: Game advisor & tester
|
||||||
- Prince_NA `@prince_na`
|
- **Vovko**: Technical advisor
|
||||||
- Advisor & tester
|
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "blitzkrieg",
|
"name": "blitzkrieg",
|
||||||
"version": "1.15.3",
|
"version": "1.15.6",
|
||||||
"description": "🎉 Tools for everything World of Tanks Blitz",
|
"description": "🎉 Tools for everything World of Tanks Blitz",
|
||||||
"main": "src/server.ts",
|
"main": "src/server.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export async function getArchivedLatestSeasonNumber() {
|
|||||||
if (ratingsInfo.detail) {
|
if (ratingsInfo.detail) {
|
||||||
const comURL = (
|
const comURL = (
|
||||||
(await fetch(
|
(await fetch(
|
||||||
'https://api.github.com/repos/tresabhi/blitzkrieg-assets/git/trees/main',
|
'https://api.github.com/repos/tresabhi/blitzkrieg-assets/git/trees/main/regions',
|
||||||
).then((response) => response.json())) as {
|
).then((response) => response.json())) as {
|
||||||
tree: { path: string; url: string }[];
|
tree: { path: string; url: string }[];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export default async function getArchivedRatingsInfo(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`https://raw.githubusercontent.com/tresabhi/blitzkrieg-assets/main/${region}/ratings/${season}/info.json`,
|
`https://raw.githubusercontent.com/tresabhi/blitzkrieg-assets/main/regions/${region}/ratings/${season}/info.json`,
|
||||||
);
|
);
|
||||||
const jsonContent = (await response.json()) as RatingsInfo & {
|
const jsonContent = (await response.json()) as RatingsInfo & {
|
||||||
detail: undefined;
|
detail: undefined;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export async function getArchivedRatingsLeaderboard(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`https://raw.githubusercontent.com/tresabhi/blitzkrieg-assets/main/${region}/ratings/${season}/latest.json`,
|
`https://raw.githubusercontent.com/tresabhi/blitzkrieg-assets/main/regions/${region}/ratings/${season}/latest.json`,
|
||||||
);
|
);
|
||||||
const json = (await response.json()) as BlitzkriegRatingsLeaderboard;
|
const json = (await response.json()) as BlitzkriegRatingsLeaderboard;
|
||||||
LEADERBOARD_CACHE[region][season] = json;
|
LEADERBOARD_CACHE[region][season] = json;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default async function getArchivedRatingsMidnightLeaderboard(
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`https://raw.githubusercontent.com/tresabhi/blitzkrieg-assets/main/${region}/ratings/${season}/midnight.json`,
|
`https://raw.githubusercontent.com/tresabhi/blitzkrieg-assets/main/regions/${region}/ratings/${season}/midnight.json`,
|
||||||
);
|
);
|
||||||
const json = (await response.json()) as BlitzkriegRatingsLeaderboard;
|
const json = (await response.json()) as BlitzkriegRatingsLeaderboard;
|
||||||
MIDNIGHT_LEADERBOARD_CACHE[region][season] = json;
|
MIDNIGHT_LEADERBOARD_CACHE[region][season] = json;
|
||||||
|
|||||||
+11
-2
@@ -5,8 +5,17 @@ export default function ready(client: Client<true>) {
|
|||||||
|
|
||||||
const activities: (() => string)[] = [
|
const activities: (() => string)[] = [
|
||||||
() => `Living in ${client.guilds.cache.size.toLocaleString()} servers`,
|
() => `Living in ${client.guilds.cache.size.toLocaleString()} servers`,
|
||||||
() => `Serving ${client.users.cache.size.toLocaleString()} users`,
|
() =>
|
||||||
() => `Observing ${client.channels.cache.size.toLocaleString()} channels`,
|
`Serving ${client.guilds.cache
|
||||||
|
.reduce((accumulator, guild) => accumulator + guild.memberCount, 0)
|
||||||
|
.toLocaleString()} users`,
|
||||||
|
() =>
|
||||||
|
`Observing ${client.guilds.cache
|
||||||
|
.reduce(
|
||||||
|
(accumulator, guild) => accumulator + guild.channels.cache.size,
|
||||||
|
0,
|
||||||
|
)
|
||||||
|
.toLocaleString()} channels`,
|
||||||
];
|
];
|
||||||
|
|
||||||
client.user.setPresence({
|
client.user.setPresence({
|
||||||
|
|||||||
Reference in new issue
Block a user