mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +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",
|
||||
"vickers",
|
||||
"vitepress",
|
||||
"Vovko",
|
||||
"wargaming",
|
||||
"webp",
|
||||
"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
|
||||
|
||||
- TrèsAbhi `@tresabhi`
|
||||
- Creator & main programmer; _I do it all!_
|
||||
- Prince_NA `@prince_na`
|
||||
- Advisor & tester
|
||||
- **TrèsAbhi** `@tresabhi`: Creator and main programmer
|
||||
- **Prince_NA** `@prince_na`: Game advisor & tester
|
||||
- **Vovko**: Technical advisor
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "blitzkrieg",
|
||||
"version": "1.15.3",
|
||||
"version": "1.15.6",
|
||||
"description": "🎉 Tools for everything World of Tanks Blitz",
|
||||
"main": "src/server.ts",
|
||||
"type": "module",
|
||||
|
||||
@@ -8,7 +8,7 @@ export async function getArchivedLatestSeasonNumber() {
|
||||
if (ratingsInfo.detail) {
|
||||
const comURL = (
|
||||
(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 {
|
||||
tree: { path: string; url: string }[];
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export default async function getArchivedRatingsInfo(
|
||||
}
|
||||
|
||||
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 & {
|
||||
detail: undefined;
|
||||
|
||||
@@ -19,7 +19,7 @@ export async function getArchivedRatingsLeaderboard(
|
||||
}
|
||||
|
||||
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;
|
||||
LEADERBOARD_CACHE[region][season] = json;
|
||||
|
||||
@@ -22,7 +22,7 @@ export default async function getArchivedRatingsMidnightLeaderboard(
|
||||
|
||||
try {
|
||||
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;
|
||||
MIDNIGHT_LEADERBOARD_CACHE[region][season] = json;
|
||||
|
||||
+11
-2
@@ -5,8 +5,17 @@ export default function ready(client: Client<true>) {
|
||||
|
||||
const activities: (() => string)[] = [
|
||||
() => `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({
|
||||
|
||||
Reference in new issue
Block a user