Update sharding_manager.ts

This commit is contained in:
Skillz4Killz
2020-03-24 19:23:59 -04:00
committed by GitHub
parent f4a2f4d8d3
commit f18c577bcd

View File

@@ -1,4 +1,6 @@
import { WebSocket } from "https://deno.land/std/ws/mod.ts"import { Client_Options } from "../types/options"
import { WebSocket } from "https://deno.land/std/ws/mod.ts"
import { Client_Options } from "../types/options.ts"
export const spawnShards = (total: number, id = 1) => {
// this.ShardingManager.spawnShard(id);
if (id < total) spawnShards(total, id + 1)