
A Discord bot framework that stays out of your way.
nyx handles application commands, components, events, schedules and plugins on top of
discord.js or @discordjs/core, through the
gateway or over HTTP with @nyx-discord/http. It's built to be the
Discord layer of your app, not your whole app.
@nyx-discord/http you can make a bot receive interactions and webhook events over
HTTP, mounted on any server or runtime (node:http, Express, Fastify, Hono, Workers, Bun, Deno, Next.js), with no
gateway connection.npm i @nyx-discord/djs discord.js
import { AbstractStandaloneCommand, Bot } from '@nyx-discord/djs';
import { Client, GatewayIntentBits, SlashCommandBuilder, type 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!');
}
}
const bot = Bot.create(() => ({
token: process.env['DISCORD_TOKEN']!,
client: new Client({ intents: [GatewayIntentBits.Guilds] }),
logger: console,
deployCommands: true,
}));
await bot.getCommandManager().addCommands(new PingCommand());
await bot.start();
npx skills add nyx-discord/nyx installs the nyx skill into Claude Code,
Cursor, Codex and others. It covers nyx's conventions and typechecked examples for both adapters.llms.txt, an index of every
guide page, or at llms-full.txt for all of it in one file..md to any guide URL, e.g.
/use/commands.md.