(init): Initial files. Features not implemented.

This commit is contained in:
Nix Krystik
2026-08-26 00:02:04 +08:00
commit 8d4d99f2e8
17 changed files with 791 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
import { CommandClient, Constants, Guild, Member, Message, NullCollection, User } from 'athena-prime';
import events from './events';
// ----------
const client: CommandClient = new CommandClient({
token: `Bot ${process.env.DISCORD_TOKEN}`,
options: {
intents: [
Constants.GatewayIntentBits.Guilds,
Constants.GatewayIntentBits.GuildMembers,
Constants.GatewayIntentBits.GuildMessages,
Constants.GatewayIntentBits.MessageContent
],
largeBotOptimizations: true,
cache: {
users: () => new NullCollection(User),
members: () => new NullCollection(Member),
messages: () => new NullCollection(Message),
guilds: () => new NullCollection(Guild)
}
}
});
events.forEach(event => client.registerEvent(event));
// ----------
client.connect();