@discord-flow/multibots
v1.0.6
Published
Multi-bot server for discord-flow - run multiple bots on a single HTTP server
Downloads
48
Maintainers
Readme
@discord-flow/multibots
Multi-bot server support for discord-flow. Run multiple Discord bots on a single HTTP server.
Installation
npm install @discord-flow/multibotsUsage
import { createMultiBotServer } from '@discord-flow/multibots';
// Create individual bot instances
const bot1 = createBot({ publicKey: '...', token: '...' });
const bot2 = createBot({ publicKey: '...', token: '...' });
const bot3 = createBot({ publicKey: '...', token: '...' });
// Run all bots on a single server
createMultiBotServer({
bots: [bot1, bot2, bot3],
port: 3000
}).start();Features
- 🚀 Single Server - Run multiple bots on one HTTP server
- 📦 Resource Efficient - Share resources between bots
- 🔀 Auto Routing - Routes interactions to correct bot by
application_id - ⚡ Scalable - Perfect for bot hosting platforms
API
createMultiBotServer(options)
Creates a multi-bot HTTP server.
Options
bots- Array of bot instancesport- Server port (default: 3000)
server.start()
Starts the multi-bot server.
server.stop()
Stops the server.
License
MIT
