easydjs-framework
v1.0.0
Published
The easiest way to make a Discord Bot! Designed for beginners and kids.
Downloads
9
Maintainers
Readme
EasyDJS Framework 🚀
The most English-like way to build Discord bots. A hyper-simplified wrapper for discord.js that turns complex code into simple logic.
📦 Installation
npm install easydjs-framework🛠️ "English" Syntax
Making a command is now just like speaking English.
const { Client, replyWith } = require('easydjs-framework');
const bot = new Client({ token: 'TOKEN', prefix: '!' });
// Register a Slash Command
bot.registerCommand({
name: 'hi',
description: 'Greets you',
whenRun: replyWith('Hello there!')
});
// Register a Prefix Command
bot.onMessage('ping', replyWith('Pong!'));
bot.start();✨ Features
- Hyper-Simplified: Use
whenRunandreplyWithfor instant commands. - Dual Support: Use Slash Commands and Prefix commands simultaneously.
- Full Power: Access
Discordlibrary directly for advanced features. - Compact UI: Create buttons, modals, and embeds in one line.
- Built-in API: Run an Express server alongside your bot.
⚙️ Options & Logic
bot.registerCommand({
name: 'greet',
description: 'Greets a user',
options: [{ name: 'user', description: 'User to greet', type: 6, required: true }],
whenRun: (interaction) => {
const user = interaction.options.getUser('user');
interaction.reply(`Hello ${user.username}!`);
}
});📜 License
MIT
