Getting Started
Setup
Install glyria.js and scaffold your first Discord bot in seconds.
Prerequisites
- Node.js 22.x or higher
- npm 10.x or higher
- TypeScript 6.x or higher
Installation
Install @glyria/bot in your project:
npm install @glyria/bot
Initialize your project
Once installed, run the init command to scaffold your bot:
npx glyria init
This will generate the following structure:
your-bot/
src/
commands/
events/
utils/
index.ts
.glyria/
imports.d.ts
.env
.gitignore
tsconfig.json
glyria.config.ts
package.json
Configure your bot
Fill in your .env file with your bot token:
TOKEN=your_bot_token_here
Go to the Discord Developer Portal, select your application, then Bot → Reset Token.
Start your bot
# development (hot reload)
npm run dev
# production
npm run build
npm run start
GlyriaClient, command, embedV2...) as globals — no imports needed in your command files.
