@nexora.ts/core
v0.1.10
Published
Discord client, commands, events, and lifecycle management
Downloads
53
Readme
@nexora.ts/core
Heart of the Nexora platform: Discord client, slash commands, events, DI container, cache, and scheduler.
The runtime foundation bots and plugins build on — commands, events, DI, and lifecycle in one place.
Usage
import { Nexora, command, event } from '@nexora.ts/core';
import config from './nexora.config.js';
const bot = new Nexora({
config,
commandsPath: './commands/**/*.ts',
eventsPath: './events/**/*.ts',
});
await bot.start();Commands & events
export default command({
name: 'ping',
description: 'Ping',
execute(ctx) {
return ctx.interaction.reply('Pong!');
},
});
export default event('ready', (client) => {
console.log(client.user.tag);
});Auto-discovered — no manual registration.
Exports
Nexora— lifecyclecommand/eventContainer/TOKENSEventBus/FrameworkEventsCache/MemoryCacheAdapterScheduler
License
MIT
