thaldrin/index.ts

18 lines
479 B
TypeScript
Raw Permalink Normal View History

2021-04-04 15:17:46 +00:00
//@ts-ignore
import config from "./config";
2021-09-11 11:40:53 +00:00
import { Discord } from "@thaldrin/eu"
import { Intents } from "discord.js";
import { join } from 'path'
let Bot = new Discord.Client({
// @ts-ignore
token: config.discord?.token,
commands: join(__dirname, "src", "discord", 'commands'),
events: join(__dirname, "src", "discord", 'events'),
options: {
commandCategories: true,
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES]
}
})