You can download via git clone:
apt install git
download this repo:
git clone https://github.com/balxz/wabot-base.git
join the directory folder:
cd wabot-base
starts / run
npm i
node .
bash run.sh
How To Update?
git pull
*/cnfigs.js
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
}
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)
}
},
}
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.