Skip to content

base bot wa case × plugins dan sebagian menggunakan dari apii.ambalzz.biz.id

Notifications You must be signed in to change notification settings

balxz/wabot-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

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

Settings Your Owner

*/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
}

Plugins Events Example

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

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.

About

base bot wa case × plugins dan sebagian menggunakan dari apii.ambalzz.biz.id

Topics

Resources

Stars

Watchers

Forks