# @purrkit/router a meowing, typesafe interaction router for discord.js [view on npmx.dev](https://npmx.dev/package/@purrkit/router) ```sh npm install @purrkit/router ``` see [GET-STARTED.md](./GET-STARTED.md) for a quick introduction to using kitten here is a quick hello world example ```ts import { Client } from "discord.js"; import { Kitten } from "@purrkit/router"; const client = new Client({ intents: [] }); const kitten = new Kitten(client); const helloWorldCommand = kitten.command("hello-world", { description: "replies with hello world", run: (interaction) => { interaction.reply("Hello World!"); }, }); client.once("clientReady", async () => { kitten.register({ commands: [helloWorldCommand], }); await kitten.sync(); console.log("ready!!!"); }); client.login(process.env.DISCORD_TOKEN); ``` ## copying this project is licensed under the european union public license (eupl) v1.2. you can find the full license text either [here][LISC] or on the official [eupl website][EU], which also contains translations of the license in various languages. [LISC]: ./LICENSE [EU]: https://interoperable-europe.ec.europa.eu/collection/eupl/eupl-text-eupl-12