1 |
|
import 'reflect-metadata'; |
2 |
import { registerCommands, registerEvents } from './utils/registry'; |
import { registerCommands, registerEvents } from './utils/registry'; |
3 |
import DiscordClient from './client/Client'; |
import DiscordClient from './client/Client'; |
4 |
import { Intents } from 'discord.js'; |
import { Intents } from 'discord.js'; |
25 |
process.env.ENV = 'dev'; |
process.env.ENV = 'dev'; |
26 |
} |
} |
27 |
|
|
28 |
|
console.log(`ENV: ${process.env.SUDO_PREFIX}`); |
29 |
|
|
30 |
const client = new DiscordClient({ |
const client = new DiscordClient({ |
31 |
partials: ["CHANNEL"], |
partials: ["CHANNEL"], |
32 |
intents: [ |
intents: [ |
53 |
|
|
54 |
await client.login(process.env.TOKEN); |
await client.login(process.env.TOKEN); |
55 |
await console.log('test'); |
await console.log('test'); |
|
})(); |
|
56 |
|
})(); |