25 lines
640 B
TypeScript
25 lines
640 B
TypeScript
|
import { LoggerMasterOptions } from '@navy.gif/logger';
|
||
|
import { ClientOptions } from './DiscordClient.js';
|
||
|
|
||
|
export type ControllerOptions = {
|
||
|
rootDir: string,
|
||
|
logger: LoggerMasterOptions,
|
||
|
shardOptions: {
|
||
|
totalShards: 'auto' | number,
|
||
|
shardList?: 'auto' | number[]
|
||
|
respawn?: boolean,
|
||
|
},
|
||
|
discord: ClientOptions
|
||
|
}
|
||
|
|
||
|
export type ShardingOptions = {
|
||
|
shardList?: 'auto' | number[],
|
||
|
totalShards?: 'auto' | number,
|
||
|
mode?: 'worker' | 'process',
|
||
|
respawn?: boolean,
|
||
|
shardArgs?: string[],
|
||
|
execArgv?: string[],
|
||
|
token?: string,
|
||
|
path?: string,
|
||
|
clientOptions?: ClientOptions
|
||
|
}
|