2021-10-21 19:19:14 +00:00
|
|
|
import "./src/utils/patch"
|
|
|
|
|
2021-10-17 16:38:19 +00:00
|
|
|
// @ts-ignore
|
2021-10-21 19:19:14 +00:00
|
|
|
import { Discord } from "@modules/eu/src/index"
|
|
|
|
import path from "path"
|
|
|
|
import config from "@utils/config"
|
|
|
|
import { Intents } from "@modules/eu/src/misc/imports"
|
2021-10-17 16:38:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
const Bot = new Discord.Client({
|
|
|
|
// @ts-ignore
|
|
|
|
token: config.tokens.discord,
|
|
|
|
commands: path.join(__dirname, "src", "discord", "commands"),
|
|
|
|
events: path.join(__dirname, "src", "discord", "events"),
|
|
|
|
options: {
|
2021-10-21 19:19:14 +00:00
|
|
|
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.DIRECT_MESSAGES],
|
|
|
|
commandCategories: true,
|
|
|
|
debug: true
|
|
|
|
},
|
|
|
|
|
2021-10-17 16:38:19 +00:00
|
|
|
})
|