Quick Start
A quick guide to getting started with Honocord.
This guide will help you create your first Discord bot with Honocord in a few minutes.
Step 1: Create Your Bot File
src/index.ts
Step 2: Register Commands with Discord
src/register.ts
Run the registration script:
Step 3: Run Your Bot Locally
For local development with Bun:
For Node.js:
Step 4: Configure Discord Interactions Endpoint
Use a tunneling service like ngrok:
Copy the HTTPS URL (e.g.,
https://abc123.ngrok.io)Go to your Discord Application
Navigate to “General Information”
Set “Interactions Endpoint URL” to:
https://abc123.ngrok.io/Discord will verify the endpoint - it should show a green checkmark
Step 5: Test Your Bot
Invite your bot to a server using this URL format:
In Discord, type
/pingYour bot should respond with ”🏓 Pong!”
Adding More Features
Typings
Learn about typings
Handlers
Learn how to use handlers
Cloudflare Workers
How to build and deploy on Cloudflare Workers