Merge branch 'dev' into deepsource-transform-e99eff90
This commit is contained in:
commit
e812bad51c
1 changed files with 44 additions and 8 deletions
52
src/index.ts
52
src/index.ts
|
@ -9,14 +9,50 @@ import schedules from "@schedules";
|
||||||
import events from "@handlers/events";
|
import events from "@handlers/events";
|
||||||
import commands from "@handlers/commands";
|
import commands from "@handlers/commands";
|
||||||
|
|
||||||
const client = new Client({
|
const main = async () => {
|
||||||
intents,
|
const client = new Client({
|
||||||
});
|
intents,
|
||||||
|
});
|
||||||
|
|
||||||
database();
|
database()
|
||||||
schedules(client);
|
.then(async () => {
|
||||||
|
logger.silly("Database process started");
|
||||||
|
})
|
||||||
|
.catch(async (err) => {
|
||||||
|
logger.error(err);
|
||||||
|
});
|
||||||
|
schedules(client)
|
||||||
|
.then(async () => {
|
||||||
|
logger.silly("Schedules process started");
|
||||||
|
})
|
||||||
|
.catch(async (err) => {
|
||||||
|
logger.error(err);
|
||||||
|
});
|
||||||
|
|
||||||
commands(client);
|
commands(client)
|
||||||
events(client);
|
.then(async () => {
|
||||||
|
logger.silly("Commands process started");
|
||||||
|
})
|
||||||
|
.catch(async (err) => {
|
||||||
|
logger.error(err);
|
||||||
|
});
|
||||||
|
|
||||||
|
events(client)
|
||||||
|
.then(async () => {
|
||||||
|
logger.silly("Events process started");
|
||||||
|
})
|
||||||
|
.catch(async (err) => {
|
||||||
|
logger.error(err);
|
||||||
|
});
|
||||||
|
|
||||||
|
client.login(token);
|
||||||
|
};
|
||||||
|
|
||||||
|
main()
|
||||||
|
.then(async () => {
|
||||||
|
logger.silly("Main process started");
|
||||||
|
})
|
||||||
|
.catch(async (err) => {
|
||||||
|
logger.error(err);
|
||||||
|
});
|
||||||
|
|
||||||
client.login(token);
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue