Giter Site home page Giter Site logo

whatsapp-cakrabot-md's Introduction

whatsapp Cakra BOT.md

Hello everybody, hown are you all, I hope you're good. So I just make this my program first. I have been understand all for use it and you can use it well for whatsapp bot users

Don't change it if you do not understand this code, you can following in below for you, except it developer.

You can change this program

settings your whatsapp bots in file ./settings.js

Set your bot custom

  1. true = (active/right)
  2. false = (nonactive)

Settings your bot custom

  1. ownerNumber = (Enter your phone number Owner)
  2. ownerName = (Enter your owner name)
  3. author = (Enter your author)
  4. website = (Enter your website)
  5. BotName = (bot name)
  6. BotImage = (Bot profile images)
  7. not_ppuser = (if the use doen't use the profile picture)
  8. language = (you can set avaiable on 'id', and 'en'. for default 'all')
  9. qrcode_donate = (you can use picture for donate)
  10. autoReadChat = (Read messages)
  11. setBotProfileSelf = (set bot profile itself on whatsapp)
  12. autoTyping = (Typing messages)
  13. replyWithThumbnail = (reply message with thumbnail it like link)
  14. usereplyMessage = (for use reply message users with thumbnail)
  15. multi = (multiprefix without change prefix)
  16. prefix = (you can set/use prefix manually)
  17. messageHandler = (for message response)
// Selfbot whatsapp
global.selfbot = false
// Set Bot image whatsapp profile itself...
global.setBotProfileSelf = false  
// Typing message after message response...
global.autoTyping = true
// Chat read after message response...
global.autoReadChat = true
// Last seen message...
global.LastSeenMessage = false
// Multi prefix...
global.multi = false  // if you want to use a multi prefix, you can change here to "true"

// Reply message with thumbnail. (if you want to use You can change to "true")
global.replyWithThumbnail = false   // (for replace to message thumbnail)
global.usereplyMessage = true   // (for use reply message users with thumbnail)

// Set path ffmpeg from "npm i @ffmpeg-installer/ffmpeg".
global.setFfmpegPath = false



// Other
global.ownerNumber = '6285161422971'   // Owner Bot, You can change to your phone number without "+" and "-"
global.ownerName = 'Cakra Yudha Pratama'   // Owner name
global.BotName = 'CAKRA BOT'   // Bot Name
global.prefix = '/'   // Set prefix command
global.language = 'en'  //  You can change this language for all text with "all" --> ['id', 'en', 'all']
global.BotImage = fs.readFileSync('./file/img/CakraBot.png')  //  You can change this bot images  <Buffer>
global.RestApi = 'https://cakrayp.herokuapp.com/'
global.apiCakra = 'https://cakrayp.herokuapp.com'
global.apikeyCakra = 'cakrayp24Q6'
global.website = 'https://cakrajihan.wordpress.com/'
global.qrcode_donate = ''
global.not_ppuser = fs.readFileSync('./file/img/no_ppuser.jpeg')  // You can change this image <Buffer>, if it user isn't using profile picture.
global.lib_package = '@adiwajshing/baileys-md (multi-device)'  // Package name Type for library name
global.author = 'Cakrayp'  // Author name
global.messageHandler = {
    error: {
      ind: "Mohon maaf fitur ini sedang *Error*, Silahkan dicoba lagi nanti atau dicoba yang lain.",
      eng: "Sorry, this feature is in *Error*, please try again later or try another."
    },
    wait: {
      ind: "Mohon ditunggu dalam proses...",
      eng: "Waiting for Process..."
    },
    owner_bot: {
      eng: "This Command can be use Only for Owner.",
      ind: "Perintah ini hanya dapat digunakan oleh Owner."
    },
    admingroup: {
      eng: "This Command can be use Only for group admins",
      ind: "Perintah ini hanya dapat digunakan oleh admin group"
    },
    admin_owner: {
      eng: "This Command can be use Only for owner or group admins",
      ind: "Perintah ini hanya dapat digunakan oleh admin group atau owner"
    },
    Bot_admingroup: {
      eng: "This Command can be use when the bot is already a group admin",
      ind: "Perintah ini hanya dapat digunakan ketika bot ini sebagai admin"
    },
    groupOnly: {
      eng: "This Command can be use Only in the Group",
      ind: "Perintah ini hanya dapat digunakan didalam group"
    },
    privateChat: {
      eng: "This Command can be use Only in private chat",
      ind: "Perintah ini hanya dapat digunakan didalam chat (obrolan) pribadi"
    },
    mainstance: {
      ind: 'Mohon maaf, fitur ini sedang mainstance (diperbaikan)',
      eng: 'Sorry, this feature is currently under maintenance',
    },
    numberOnly: {
      ind: 'Mohon maaf ini khusus untuk angka.',
      eng: 'Sorry this is for numbers only.'
    },
    soon: "Coming Soon!",
    indoOnly: "This command can be use Only for indonesian country."
}

Usage for Windows/RDP/linux In terminals

FOR CLI (Command Line)

Ingredients for installations

Cloning and Installation Programs

Clone this repository:

> git clone <link github>
> cd <path>

Install the dependencies:

> npm install

Installation for npm package:

You can visit here.

(Install packages)
> npm install <package name>

(Uninstall packages)
> npm uninstall <package name>

Start Program in terminal:

Start program:

> npm start

Or

> node index.js

Start program with pm2:

You can see for Examples of pm2 in Here

(Installation pm2)
> npm install pm2 -g

(start program)
> pm2 start index.js

(stop program)
> pm2 stop index.js

(restart program)
> pm2 restart index.js

(monitor logs)
> pm2 monit

Contant us

if you have a problem, please Contant me Enjoyy...

Donate

thanks for

whatsapp-cakrabot-md's People

Contributors

cakrayp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.