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
Copy file name to clipboardExpand all lines: README.md
+68-5Lines changed: 68 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ A Python bot that connects to MeshCore mesh networks via serial port, BLE, or TC
7
7
-**Connection Methods**: Serial port, BLE (Bluetooth Low Energy), or TCP/IP
8
8
-**Keyword Responses**: Configurable keyword-response pairs with template variables
9
9
-**Command System**: Plugin-based command architecture with built-in commands
10
-
-**Rate Limiting**: Configurable rate limiting to prevent network spam
10
+
-**Rate Limiting**: Global, per-user (by pubkey or name), and bot transmission rate limits to prevent spam
11
11
-**User Management**: Ban/unban users with persistent storage
12
12
-**Scheduled Messages**: Send messages at configured times
13
13
-**Direct Message Support**: Respond to private messages
@@ -84,6 +84,43 @@ sudo systemctl status meshcore-bot
84
84
85
85
See [SERVICE-INSTALLATION.md](SERVICE-INSTALLATION.md) for detailed service installation instructions.
86
86
87
+
### Docker Deployment
88
+
For containerized deployment using Docker:
89
+
90
+
1.**Create data directories and configuration**:
91
+
```bash
92
+
mkdir -p data/{config,databases,logs,backups}
93
+
cp config.ini.example data/config/config.ini
94
+
# Edit data/config/config.ini with your settings
95
+
```
96
+
97
+
2.**Update paths in config.ini** to use `/data/` directories:
98
+
```ini
99
+
[Bot]
100
+
db_path = /data/databases/meshcore_bot.db
101
+
102
+
[Logging]
103
+
log_file = /data/logs/meshcore_bot.log
104
+
```
105
+
106
+
3.**Build and start with Docker Compose**:
107
+
```bash
108
+
docker compose build
109
+
docker compose up -d
110
+
```
111
+
112
+
Or build and start in one command:
113
+
```bash
114
+
docker compose up -d --build
115
+
```
116
+
117
+
4.**View logs**:
118
+
```bash
119
+
docker-compose logs -f
120
+
```
121
+
122
+
See [DOCKER.md](docs/DOCKER.md) for detailed Docker deployment instructions, including serial port access, web viewer configuration, and troubleshooting.
- Check meshcore library documentation for protocol details
276
337
277
338
5.**Rate Limiting**:
278
-
- Adjust `rate_limit_seconds` in config
339
+
-**Global**: `rate_limit_seconds` — minimum time between any two bot replies
340
+
-**Per-user**: `per_user_rate_limit_seconds` and `per_user_rate_limit_enabled` — minimum time between replies to the same user (user identified by public key when available, else sender name; channel senders often matched by name)
341
+
-**Bot TX**: `bot_tx_rate_limit_seconds` — minimum time between bot transmissions on the mesh
0 commit comments