mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: use thing
This commit is contained in:
1 parent
f1612e8fe3
commit
bb557a7dd7
2 files changed
+1
-9
No files matched your search
@@ -17,7 +17,7 @@ export const translations = SUPPORTED_LOCALES_DISCORD.reduce<
|
|||||||
(table, locale) => ({
|
(table, locale) => ({
|
||||||
...table,
|
...table,
|
||||||
[locale]: require(
|
[locale]: require(
|
||||||
`../../../../../i18n/strings/${SUPPORTED_LOCALES_DISCORD_MAP_INVERSE[locale]}.json`,
|
`@blitzkit/i18n/strings/${SUPPORTED_LOCALES_DISCORD_MAP_INVERSE[locale]}.json`,
|
||||||
),
|
),
|
||||||
}),
|
}),
|
||||||
{},
|
{},
|
||||||
|
|||||||
@@ -1,10 +1,3 @@
|
|||||||
// import { assertSecret, EventManager } from '@blitzkit/core';
|
|
||||||
// import { ActivityType, ShardingManager } from 'discord.js';
|
|
||||||
// import {
|
|
||||||
// discoveredIdsDefinitions,
|
|
||||||
// tankDefinitions,
|
|
||||||
// } from './core/blitzkit/nonBlockingPromises';
|
|
||||||
|
|
||||||
import { assertSecret } from '@blitzkit/core';
|
import { assertSecret } from '@blitzkit/core';
|
||||||
import { ActivityType, ShardingManager } from 'discord.js';
|
import { ActivityType, ShardingManager } from 'discord.js';
|
||||||
import {
|
import {
|
||||||
@@ -36,7 +29,6 @@ const interval = setInterval(async () => {
|
|||||||
let users = 0;
|
let users = 0;
|
||||||
|
|
||||||
for (const [, shard] of shards) {
|
for (const [, shard] of shards) {
|
||||||
// wtf is this typing bro???
|
|
||||||
const guilds = (await shard.fetchClientValue('guilds.cache')) as any;
|
const guilds = (await shard.fetchClientValue('guilds.cache')) as any;
|
||||||
|
|
||||||
servers += guilds.length;
|
servers += guilds.length;
|
||||||
|
|||||||
Reference in new issue
Block a user