This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters