src/index.ts (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 |
import { Events } from "discord.js";
import { client, kitten } from "@/discord";
import * as commands from "@/commands";
import config from "@/config";
client.on(Events.ClientReady, async () => {
kitten.register({ commands: [commands.banCommand] });
await kitten.sync();
});
client.login(config.discord.token);
|