create-mezon-bot
v2.1.0
Published
Create a new Mezon bot project with Nezon
Downloads
1,329
Maintainers
Readme
create-mezon-bot
Create a new Mezon bot project with Nezon framework.
Usage
npx create-mezon-bot my-botThis will create a new directory my-bot with a complete Mezon bot project setup.
What's included
- NestJS project structure
- Nezon module configured
- Example handlers demonstrating:
- Commands (
@Command) - Components (
@Component) - Event listeners (
@On) with DM support - Direct Messages (DM) with
DMHelperandsendDM() - ButtonBuilder with onClick handlers
- SmartMessage usage
- Voice and Token events with DM notifications
- Commands (
- TypeScript configuration
- All necessary dependencies
Next steps
After creating the project:
Navigate to the project directory:
cd my-botCopy the environment file:
cp .env.example .envEdit
.envand add your Mezon credentials:MEZON_TOKEN=your_mezon_token_here MEZON_BOT_ID=your_bot_id_hereGet your bot token and bot ID: Create a new bot at https://mezon.ai/developers/applications
Start the development server:
yarn start:dev
Documentation
Visit https://nezon-docs.vercel.app/ for full documentation.
