Update index.ts

This commit is contained in:
Axel Olausson Holtenäs 2022-05-17 10:28:05 +02:00 committed by GitHub
parent 0e17d18141
commit 61a6f8c7c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@ import schedules from "@schedules";
import events from "@handlers/events";
import commands from "@handlers/commands";
const main = async () => {
const client = new Client({
intents,
});
@ -20,3 +21,6 @@ import commands from "@handlers/commands";
events(client);
client.login(token);
}
main().then(async () => {logger.silly("Main process started")}).catch(async (err) => {logger.error(err)})