Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 1f5d8ce

Browse files
committed
commit
1 parent 9346895 commit 1f5d8ce

File tree

3 files changed

+57
-3
lines changed

3 files changed

+57
-3
lines changed

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,45 @@
11
# whatscode.js
2+
3+
**whatscode.js** is a package to create Whatsapp bots easily and quickly, even coding experience is not needed...
4+
5+
> You should know that whatscode.js is still in the testing stage and whatscode.js is a new project that was created a few days ago... So maybe there are still many bugs happening, Please report bugs or if you want to give suggestions open an issue in our Github Repository!
6+
7+
> We are also very open to those of you who want to contribute...
8+
9+
## Instalation
10+
11+
```bash
12+
npm install whatscode.js
13+
```
14+
15+
or install it from Github from more features and mybe theres some bugs too.
16+
17+
```bash
18+
npm i github:JastinXyz/whatscode.js
19+
```
20+
21+
## Quick Starts
22+
23+
```js
24+
const { Client } = require("whatscode.js");
25+
26+
const bot = new Client({
27+
name: "Your bot name",
28+
prefix: "Your bot prefix",
29+
});
30+
31+
// required callback
32+
bot.onConnectionUpdate(); // connection update
33+
bot.onCredsUpdate(); // credentials update
34+
bot.onMessage(); // message update
35+
36+
// ping command
37+
bot.command({
38+
name: "ping",
39+
code: `🏓 | $ping ms`
40+
});
41+
```
42+
43+
## Links
44+
- Documentation: https://whatscode.jstnlt.my.id
45+
- Discord Server: https://discord.gg/CzqHbx7rdU

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
{
22
"name": "whatscode.js",
33
"version": "0.0.1-beta",
4-
"description": "",
4+
"description": "whatscode.js is a package to create Whatsapp bots easily and quickly, even coding experience is not needed.",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/JastinXyz/whatscode.js.git"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/JastinXyz/whatscode.js/issues"
15+
},
16+
"homepage": "https://whatscode.jstnlt.my.id",
917
"keywords": [],
10-
"author": "",
18+
"author": "JstnLT <jastinlinggar@gmail.com> (jstnlt.my.id)",
1119
"license": "MIT",
1220
"dependencies": {
1321
"@adiwajshing/baileys": "^4.1.0",
1422
"@hapi/boom": "^10.0.0",
1523
"axios": "^0.27.2",
16-
"deep-weak-map": "^1.1.0",
1724
"fs": "^0.0.1-security",
1825
"pino": "^7.11.0",
1926
"qrcode-terminal": "^0.12.0",

src/client.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ module.exports = class Client {
8484
}
8585
}
8686
console.log("[conn logs]", update);
87+
if(update.receivedPendingNotifications) {
88+
console.log("[whatscode.js] Your bot is ready now!\n[whatscode.js] Join our Discord at: https://discord.gg/CzqHbx7rdU")
89+
}
8790
});
8891
}
8992
onCredsUpdate() {

0 commit comments

Comments
 (0)