### Install discord-hono and dependencies Source: https://github.com/luisfun/discord-hono/blob/main/README.md Install the discord-hono package for your project. For TypeScript projects, also install discord-api-types. Additional types like @types/node may be needed. ```shell npm i discord-hono npm i -D discord-api-types # When using TypeScript # npm i -D @types/node # As needed ``` -------------------------------- ### Create a basic Discord bot command Source: https://github.com/luisfun/discord-hono/blob/main/README.md Initialize a DiscordHono app and define a simple 'hello' command that responds with 'Hello, World!'. This is the main entry point for your bot. ```typescript import { DiscordHono } from 'discord-hono' const app = new DiscordHono() .command('hello', c => c.res('Hello, World!')) export default app ``` -------------------------------- ### Register Discord bot commands Source: https://github.com/luisfun/discord-hono/blob/main/README.md Define your bot's commands using the Command class and then register them using the register function. Ensure DISCORD_APPLICATION_ID and DISCORD_TOKEN environment variables are set. ```typescript import { Command, register } from 'discord-hono' const commands = [ new Command('hello', 'Hello, World!'), ] register( commands, process.env.DISCORD_APPLICATION_ID, process.env.DISCORD_TOKEN, //process.env.DISCORD_TEST_GUILD_ID, ) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.