v0.1.8

Disflow

Discord bot framework that just works

$ npx create-disflow my-bot

See Hot Reload in Action

Watch your bot update instantly as you code. No restarts. No delays.

Hot Reload Demo
LIVE

Click to Expand

🔥Instant Updates
Zero Downtime
💎Real-time Preview
View Fullscreen

Less code, more building

Discord.js
~65 lines
const { Client, GatewayIntentBits, REST, Routes } = require('discord.js');
// Create client
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages
]
});
// Define commands
const commands = [
{
name: 'ping',
description: 'Pong!'
}
];
// Register commands
const rest = new REST().setToken(process.env.TOKEN);
(async () => {
try {
await rest.put(
Routes.applicationCommands(CLIENT_ID),
{ body: commands }
);
} catch (error) {
console.error(error);
}
})();
// Handle interactions
client.on('interactionCreate', async interaction => {
if (!interaction.isChatInputCommand()) return;
if (interaction.commandName === 'ping') {
await interaction.reply('Pong!');
}
});
// Ready event
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}`);
});
// Login
client.login(process.env.TOKEN);
// + Error handling
// + Command validation
// + Permission checks
// + ...
⚠️ Complex
Disflow
~5 lines
// commands/ping.js
bot.command.new('ping', 'Pong!', async function() {
await this.reply('Pong!');
});
// That's it! 🎉
// ✅ Auto-registers to Discord
// ✅ Built-in error handling
// ✅ Context included
// ✅ Zero config needed
✨ Simple
94%
Less Code
16x
Faster Setup
0
Config Files

Zero Configuration

Drop your token in .env and start coding. No config files, no setup hassle.

🔥

Hot Reload

Change code, save file, bot updates instantly. No restarts. Ever.

🎯

Simple API

One function to create commands. Context, utilities, everything included.

🔄

Auto Deploy

Commands register to Discord automatically. Just write code and run.

🎨

Built-in Tools

Random generators, time utils, emoji support. Everything ready to use.

🔘

Button Magic

Interactive buttons with clean event handlers. No complex builders.

📊

Smart Logging

Beautiful Discord embeds for all bot activity. Color-coded and automatic.

🛡️

Error Safety

Catches errors automatically and logs them. Your bot stays online.

🚀

Start building

Get Started