https://github.com/balxz/wabot-base
base bot wa case × plugins dan sebagian menggunakan dari apii.ambalzz.biz.id
https://github.com/balxz/wabot-base
balxz basebot botwa iqstore78 shiinaapi
Last synced: 9 months ago
JSON representation
base bot wa case × plugins dan sebagian menggunakan dari apii.ambalzz.biz.id
- Host: GitHub
- URL: https://github.com/balxz/wabot-base
- Owner: balxz
- Created: 2025-01-31T04:04:03.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-02-12T02:47:26.000Z (11 months ago)
- Last Synced: 2025-04-12T02:13:18.554Z (9 months ago)
- Topics: balxz, basebot, botwa, iqstore78, shiinaapi
- Language: JavaScript
- Homepage: https://apii.ambalzz.biz.id
- Size: 40 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation
You can download via git clone:
```bash
apt install git
```
download this repo:
```bash
git clone https://github.com/balxz/wabot-base.git
```
join the directory folder:
```bash
cd wabot-base
```
starts / run
```bash
npm i
node .
```
```bash
bash run.sh
```
How To Update?
```bash
git pull
```
## Settings Your Owner
*/cnfigs.js
```Javascript
module.exports = {
owner: ["62", "62"], // own 1 own 2
pairingNumber: "62", // pair
TeleIDBot: "", // opsional
TeleIDOwn: "", // opsional
self: true, // true? false?
autoReadStory: true, // true? false?
autoReadStoryEmoji: true, // true? false?
autoOnline: true, // true? false?
storyReadInterval: 1000, // default
autoRestart: "350 MB", // default
autoReadMessage: false, // true? false?
writeStore: true, // true? false?
session: "session", // folder sessions
}
```
## Plugins Events Example
```Javascript
module.exports = {
cmd: ["command"], // string in array
name: "name.", // string
category: " category.", // string
description: "desc", // desc
async execute(m, { client }) {
try {
/* CODE */
} catch (error) {
console.error("Error sending message:", error)
}
},
}
```
## Ex
```javascript
module.exports = {
cmd: ["ping"],
name: "ping",
category: "main",
description: "Balas dengan pong",
async execute(m, { client }) {
try {
await client.sendMessage(m.from, { text: "Pong!" });
} catch (error) {
console.error("Error sending pong message:", error);
}
},
}
```
Sekian Yth bálzz.