feat: added sharding

This commit is contained in:
TrèsAbhi committed 2023-10-15 15:42:36 -05:00
1 parent ad51be7afc
commit 43f634e198
5 files changed
+21 -6

No files matched your search

-1
View File
@@ -21,7 +21,6 @@ export interface Tankopedia {
[id: number]: TankopediaEntry | undefined;
}
console.log('Caching tankopedia...');
export const tankopedia = fetch(
context === 'bot'
? 'https://www.blitzstars.com/bs-tankopedia.json'
+6
View File
@@ -0,0 +1,6 @@
import { ShardingManager } from 'discord.js';
import { secrets } from '../blitzkrieg/secrets';
export const manager = new ShardingManager(`${__dirname}/bot.cjs`, {
token: secrets.DISCORD_TOKEN,
});