thaldrin/index.ts

14 lines
446 B
TypeScript
Raw Normal View History

2021-04-04 15:17:46 +00:00
//@ts-ignore
import config from "./config";
import client from "./src/handler/client/Client"
import { Util } from "discord.js";
2021-04-05 00:18:27 +00:00
import Logger from "./src/utils/logger";
2021-04-04 15:17:46 +00:00
Util.fetchRecommendedShards(config.token).then((count) => {
2021-04-05 00:18:27 +00:00
// console.log(`Starting ${config.variables.name}`)
Logger.info({
2021-04-10 21:26:07 +00:00
message: `Starting ${config.variables.name} with ${count} Shards`,
2021-04-05 00:18:27 +00:00
type: "event:start"
})
2021-04-04 15:17:46 +00:00
new client(config, count)
2021-04-05 00:18:27 +00:00
})