ishumdz-bail 1.0.19 → 1.0.21

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 +48 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1155,6 +1155,54 @@ Made with ❤️ by **Lovely**
1155
1155
 
1156
1156
  ---
1157
1157
 
1158
+ ## 🚀 Hosting / Troubleshooting (OptikLink, Pterodactyl, etc.)
1159
+
1160
+ Bot hosting panels la `npm install` fail aana, idhu dhaan common reasons:
1161
+
1162
+ ### ❌ `npm error code EALLOWGIT`
1163
+
1164
+ ```
1165
+ npm error Fetching packages of type "git" have been disabled
1166
+ npm error Refusing to fetch "libsignal@git+ssh://git@github.com/..."
1167
+ ```
1168
+
1169
+ **Reason:** npm v12+ (and most bot hosts) disable `git:`-type package fetches by default.
1170
+ Older ishumdz-bail versions (< 1.0.20) used `"libsignal": "github:tenka-san/libsignal-node"`
1171
+ as a dependency — hosts that block git fetches refuse to install it.
1172
+
1173
+ **Fix:** use **ishumdz-bail v1.0.20 or later** — libsignal is now pulled from the
1174
+ npm registry (`libsignal-node`), no git fetch needed:
1175
+
1176
+ ```bash
1177
+ npm install ishumdz-bail@latest
1178
+ ```
1179
+
1180
+ If you must stay on an older version and your host allows it, enable git fetching:
1181
+
1182
+ ```bash
1183
+ npm config set allow-git=all
1184
+ ```
1185
+
1186
+ ### ❌ `Error: Cannot find module 'dotenv'`
1187
+
1188
+ This error comes from **your bot's `index.js`**, not from the library — your bot code
1189
+ does `require('dotenv')` but `dotenv` is not in the bot's `package.json` dependencies.
1190
+
1191
+ **Fix:** add it and reinstall:
1192
+
1193
+ ```bash
1194
+ npm install dotenv
1195
+ ```
1196
+
1197
+ ### ✅ Deploy checklist for restricted hosts
1198
+
1199
+ 1. `ishumdz-bail` **v1.0.20+** in `package.json` (no git deps inside)
1200
+ 2. `dotenv` (and every other module your bot requires) listed in your **bot's** `package.json`
1201
+ 3. Run `npm install` from the bot folder (not global), then `npm start`
1202
+ 4. If the host still blocks git deps, check `npm ls` output for any `github:` entries
1203
+
1204
+ ---
1205
+
1158
1206
  ## 📄 License
1159
1207
 
1160
1208
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ishumdz-bail",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "WhatsApp API Modification By Lovely",
5
5
  "keywords": [
6
6
  "whatsapp",
@@ -49,7 +49,7 @@
49
49
  "@cacheable/node-cache": "^1.4.0",
50
50
  "@hapi/boom": "^9.1.3",
51
51
  "async-mutex": "^0.5.0",
52
- "libsignal": "github:tenka-san/libsignal-node",
52
+ "libsignal": "npm:libsignal-node@^2.0.1",
53
53
  "lru-cache": "^11.1.0",
54
54
  "music-metadata": "^11.12.3",
55
55
  "p-queue": "^9.0.0",