MCPcopy Create free account
hub / github.com/esmBot/esmBot / exit

Function exit

src/utils/misc.ts:164–169  ·  view source on GitHub ↗
(client: Client, database: DatabasePlugin | undefined)

Source from the content-addressed store, hash-verified

162}
163
164export async function exit(client: Client, database: DatabasePlugin | undefined) {
165 client.disconnect(false);
166 if (database) await database.stop();
167 disconnect();
168 process.exit();
169}
170
171export function getServers(bot: Client): Promise<number> {
172 return new Promise((resolve, reject) => {

Callers 2

finalizeMethod · 0.50
app.tsFile · 0.50

Calls 2

disconnectFunction · 0.90
stopMethod · 0.45

Tested by

no test coverage detected