You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #5 from musarrat950/debugbranch
Fixing major and critical bugs, adding more support to the plug-in system, and improving a lot of ways to introduce a much more centralized way of developing plugins
A type-safe TypeScript bridge between websites and Discord bots. Provides a REST API and WebSocket interface for full Discord bot capabilities.
3
+
A type-safe TypeScript bridge between websites and Discord bots. Provides a REST API, WebSocket interface, and plugin system for full Discord bot capabilities.
4
4
5
5
## Features
6
6
7
7
-**REST API** for all Discord operations
8
8
-**WebSocket** real-time event streaming
9
+
-**Plugin System** for extensibility
10
+
-**Granular API Scopes** for secure access control
11
+
-**Rate Limiting** for API protection
12
+
-**CLI Tool** for easy management
13
+
-**Docker Ready** for easy deployment
9
14
-**Type-safe** with Zod validation
10
-
-**Full Discord.js coverage**:
11
-
- Guilds, Channels, Roles
12
-
- Members, Bans, Timeouts
13
-
- Messages, Reactions, Pins
14
-
- Voice state tracking
15
-
- And more...
16
15
17
16
## Quick Start
18
17
19
-
### 1. Install Dependencies
18
+
### Option 1: Using the CLI
20
19
21
20
```bash
21
+
# Install globally
22
+
npm install -g holobridge
23
+
24
+
# Initialize configuration
25
+
holo init
26
+
27
+
# Check your setup
28
+
holo doctor
29
+
30
+
# Start the server
31
+
holo start
32
+
```
33
+
34
+
### Option 2: Manual Setup
35
+
36
+
```bash
37
+
# Install dependencies
22
38
npm install
39
+
40
+
# Copy environment file
41
+
cp .env.example .env
42
+
# Edit .env with your Discord token and API key
43
+
44
+
# Build and run
45
+
npm run build
46
+
npm start
47
+
```
48
+
49
+
### Option 3: Docker
50
+
51
+
```bash
52
+
# Using Docker Compose
53
+
docker-compose up -d
54
+
55
+
# Or build manually
56
+
docker build -t holobridge .
57
+
docker run -p 3000:3000 --env-file .env holobridge
23
58
```
24
59
25
-
### 2. Configure Environment
60
+
##Configuration
26
61
27
-
Copy `.env.example` to `.env` and fill in your values:
62
+
Copy `.env.example` to `.env` and configure:
28
63
29
64
```env
65
+
# Required
30
66
DISCORD_TOKEN=your_discord_bot_token
31
67
API_KEY=your_secure_api_key
68
+
69
+
# Optional
32
70
PORT=3000
71
+
DEBUG=false
72
+
PLUGINS_ENABLED=true
73
+
RATE_LIMIT_ENABLED=true
74
+
RATE_LIMIT_MAX=100
33
75
```
34
76
35
-
### 3. Run
77
+
### Multiple API Keys with Scopes
36
78
37
-
```bash
38
-
# Development
39
-
npm run dev
79
+
For granular access control, use the `API_KEYS` environment variable:
0 commit comments