1
0
Fork 0
This repository has been archived on 2024-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
Ellie-bot/src/index.ts

15 lines
536 B
TypeScript
Raw Normal View History

2022-01-05 16:50:41 -08:00
require('dotenv').config();
import { registerCommands, registerEvents } from './utils/registry';
import config from '../slappey.json';
import DiscordClient from './client/client';
import { Intents } from 'discord.js';
const client = new DiscordClient({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES ] });
(async () => {
client.prefix = config.prefix || client.prefix;
await registerCommands(client, '../commands');
await registerEvents(client, '../events');
await client.login(process.env.DJS_BOT_TOKEN);
})();