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

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JastinXyz committed May 10, 2022
1 parent 9346895 commit 1f5d8ce
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 3 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,45 @@
# whatscode.js

**whatscode.js** is a package to create Whatsapp bots easily and quickly, even coding experience is not needed...

> 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!
> We are also very open to those of you who want to contribute...
## Instalation

```bash
npm install whatscode.js
```

or install it from Github from more features and mybe theres some bugs too.

```bash
npm i github:JastinXyz/whatscode.js
```

## Quick Starts

```js
const { Client } = require("whatscode.js");

const bot = new Client({
name: "Your bot name",
prefix: "Your bot prefix",
});

// required callback
bot.onConnectionUpdate(); // connection update
bot.onCredsUpdate(); // credentials update
bot.onMessage(); // message update

// ping command
bot.command({
name: "ping",
code: `🏓 | $ping ms`
});
```

## Links
- Documentation: https://whatscode.jstnlt.my.id
- Discord Server: https://discord.gg/CzqHbx7rdU
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
{
"name": "whatscode.js",
"version": "0.0.1-beta",
"description": "",
"description": "whatscode.js is a package to create Whatsapp bots easily and quickly, even coding experience is not needed.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/JastinXyz/whatscode.js.git"
},
"bugs": {
"url": "https://github.com/JastinXyz/whatscode.js/issues"
},
"homepage": "https://whatscode.jstnlt.my.id",
"keywords": [],
"author": "",
"author": "JstnLT <jastinlinggar@gmail.com> (jstnlt.my.id)",
"license": "MIT",
"dependencies": {
"@adiwajshing/baileys": "^4.1.0",
"@hapi/boom": "^10.0.0",
"axios": "^0.27.2",
"deep-weak-map": "^1.1.0",
"fs": "^0.0.1-security",
"pino": "^7.11.0",
"qrcode-terminal": "^0.12.0",
Expand Down
3 changes: 3 additions & 0 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ module.exports = class Client {
}
}
console.log("[conn logs]", update);
if(update.receivedPendingNotifications) {
console.log("[whatscode.js] Your bot is ready now!\n[whatscode.js] Join our Discord at: https://discord.gg/CzqHbx7rdU")
}
});
}
onCredsUpdate() {
Expand Down

0 comments on commit 1f5d8ce

Please sign in to comment.