Skip to content

Commit e378c43

Browse files
committed
fix: resolve method not allowed error (#27)
- add --ignore-scripts to npm install - update whatsapp client version in config - document pairing version field in guides
1 parent f8af036 commit e378c43

5 files changed

Lines changed: 8 additions & 5 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN apt-get update && \
1212

1313
COPY package.json package-lock.json* ./
1414

15-
RUN npm install --production
15+
RUN npm install --ignore-scripts --production
1616

1717
COPY . .
1818

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Unofficial WhatsApp bot with modular plugins, built on top of Baileys and `@znan
3333
```bash
3434
git clone https://github.com/znanx/moon-bot.git
3535
cd moon-bot
36-
npm install
36+
npm install --ignore-scripts
3737
```
3838

3939
Create `.env` in the project root:
@@ -49,6 +49,7 @@ Update [`config.json`](./config.json):
4949
- `owner` and `owner_name`
5050
- `pairing.number` (your WhatsApp number)
5151
- `pairing.state` (`true` to use pairing mode)
52+
- `pairing.version`: Example WhatsApp client version array (e.g. `[2, 3000, 1041168064]`). See [wppconnect WhatsApp versions](https://wppconnect.io/whatsapp-versions) for compatible values.
5253

5354
Run the bot:
5455

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"number": 6283175395970,
2727
"code": "MOONXBOT",
2828
"browser": ["Ubuntu", "Firefox", "20.0.00"],
29-
"version": [2, 3000, 1032750324]
29+
"version": [2, 3000, 1041168064]
3030
}
3131
}

docs/EN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This document covers setup, configuration, and plugin development for Moon Bot.
2222
```bash
2323
git clone https://github.com/znanx/moon-bot.git
2424
cd moon-bot
25-
npm install
25+
npm install --ignore-scripts
2626
```
2727

2828
Create `.env` in the project root:
@@ -72,6 +72,7 @@ Important fields:
7272
- `database`: local database filename.
7373
- `pairing.state`: enable/disable pairing mode.
7474
- `pairing.number`: WhatsApp number used for login.
75+
- `pairing.version`: Example WhatsApp client version array (e.g. `[2, 3000, 1041168064]`). See [wppconnect WhatsApp versions](https://wppconnect.io/whatsapp-versions) for compatible values.
7576
- `spam.*`: anti-spam configuration.
7677

7778
### 2) `lib/system/config.js`

docs/ID.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Dokumen ini menjelaskan setup, konfigurasi, dan pengembangan plugin untuk Moon B
2222
```bash
2323
git clone https://github.com/znanx/moon-bot.git
2424
cd moon-bot
25-
npm install
25+
npm install --ignore-scripts
2626
```
2727

2828
Buat file `.env` di root project:
@@ -72,6 +72,7 @@ Field penting:
7272
- `database`: nama file database lokal.
7373
- `pairing.state`: aktif/nonaktif pairing mode.
7474
- `pairing.number`: nomor WhatsApp untuk login.
75+
- `pairing.version`: contoh array versi client WhatsApp (misal `[2, 3000, 1041168064]`). Lihat [wppconnect WhatsApp versions](https://wppconnect.io/whatsapp-versions) untuk nilai yang kompatibel.
7576
- `spam.*`: aturan anti-spam.
7677

7778
### 2) `lib/system/config.js`

0 commit comments

Comments
 (0)