Skip to content

balxz/events-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

You can download via git clone:

apt install git

download this repo:

git clone https://github.com/balxz/events-base.git

join the directory folder:

cd events-base

starts / run

bash run.sh

How To Update?

git pull

Settings Your Owner

*/src/configs/config.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

this base wabot plugins type event created by bálxzzy!.

Topics

Resources

Stars

Watchers

Forks

Contributors