@discord-flow/multibots 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +52 -0
  2. package/package.json +2 -1
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # @discord-flow/multibots
2
+
3
+ Multi-bot server support for discord-flow. Run multiple Discord bots on a single HTTP server.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @discord-flow/multibots
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import { createMultiBotServer } from '@discord-flow/multibots';
15
+
16
+ // Create individual bot instances
17
+ const bot1 = createBot({ publicKey: '...', token: '...' });
18
+ const bot2 = createBot({ publicKey: '...', token: '...' });
19
+ const bot3 = createBot({ publicKey: '...', token: '...' });
20
+
21
+ // Run all bots on a single server
22
+ createMultiBotServer({
23
+ bots: [bot1, bot2, bot3],
24
+ port: 3000
25
+ }).start();
26
+ ```
27
+
28
+ ## Features
29
+
30
+ - 🚀 **Single Server** - Run multiple bots on one HTTP server
31
+ - 📦 **Resource Efficient** - Share resources between bots
32
+ - 🔀 **Auto Routing** - Routes interactions to correct bot by `application_id`
33
+ - ⚡ **Scalable** - Perfect for bot hosting platforms
34
+
35
+ ## API
36
+
37
+ ### `createMultiBotServer(options)`
38
+ Creates a multi-bot HTTP server.
39
+
40
+ #### Options
41
+ - `bots` - Array of bot instances
42
+ - `port` - Server port (default: 3000)
43
+
44
+ ### `server.start()`
45
+ Starts the multi-bot server.
46
+
47
+ ### `server.stop()`
48
+ Stops the server.
49
+
50
+ ## License
51
+
52
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@discord-flow/multibots",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Multi-bot server for discord-flow - run multiple bots on a single HTTP server",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -33,6 +33,7 @@
33
33
  "server"
34
34
  ],
35
35
  "license": "MIT",
36
+ "homepage": "https://flow.loopbot.app",
36
37
  "repository": {
37
38
  "type": "git",
38
39
  "url": "https://github.com/discord-flow/discord-flow.git",