Update index.ts

This commit is contained in:
Axel Olausson Holtenäs 2022-05-17 11:52:45 +02:00 committed by GitHub
parent bc9ccfa516
commit 9780e8c32c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,43 +22,44 @@ const main = async () => {
await logger.silly("Database process started"); await logger.silly("Database process started");
}) })
.catch(async (err) => { .catch(async (err) => {
logger.error(err); await logger.error(err);
}); });
// Start schedule manager // Start schedule manager
await schedules(client) await schedules(client)
.then(async () => { .then(async () => {
logger.silly("Schedules process started"); await logger.silly("Schedules process started");
}) })
.catch(async (err) => { .catch(async (err) => {
logger.error(err); await logger.error(err);
}); });
// Start command handler // Start command handler
await commands(client) await commands(client)
.then(async () => { .then(async () => {
logger.silly("Commands process started"); await logger.silly("Commands process started");
}) })
.catch(async (err) => { .catch(async (err) => {
logger.error(err); await logger.error(err);
}); });
// Start event handler // Start event handler
await events(client) await events(client)
.then(async () => { .then(async () => {
logger.silly("Events process started"); await logger.silly("Events process started");
}) })
.catch(async (err) => { .catch(async (err) => {
logger.error(err); await logger.error(err);
}); });
// Authorize with Discord's API // Authorize with Discord's API
await client.login(token); await client.login(token);
}; };
main()
await main()
.then(async () => { .then(async () => {
logger.silly("Main process started"); await logger.silly("Main process started");
}) })
.catch(async (err) => { .catch(async (err) => {
logger.error(err); await logger.error(err);
}); });