
nyx
A Discord bot framework that stays out of your way.
nyx handles the Discord part, leaving your process, build step and architecture to you. Use discord.js or @discordjs/core, through the gateway or over HTTP.
If you want a single file, no persistence, runtime-generated commands, or anything else, it won't interfere, and you can change anything of it.
npm i @nyx-discord/djs discord.jsimport { AbstractStandaloneCommand } from '@nyx-discord/djs';
import { SlashCommandBuilder, ChatInputCommandInteraction } from 'discord.js';
class PingCommand extends AbstractStandaloneCommand {
protected readonly data = new SlashCommandBuilder()
.setName('ping')
.setDescription('Pong!')
.toJSON();
public async execute(interaction: ChatInputCommandInteraction) {
await interaction.reply('Pong!');
}
}
await bot.getCommandManager().addCommands(new PingCommand());