mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
feat: added sharding
This commit is contained in:
1 parent
ad51be7afc
commit
43f634e198
5 files changed
+21
-6
No files matched your search
@@ -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'
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
Reference in new issue
Block a user