GithubHelp home page GithubHelp logo

tobyg74 / chisatobot Goto Github PK

View Code? Open in Web Editor NEW
136.0 15.0 258.0 327 KB

Chisato BOT is a WhatsApp BOT that uses a library from Baileys

License: GNU General Public License v3.0

TypeScript 100.00%
baileys baileys-bot wa-bot whatsapp whatsapp-api whatsapp-bot whatsapp-md

chisatobot's Introduction

logo

ChisatoBOT

This bot uses a library from Baileys

Give this repository a ⭐ if you like it

Contributors Forks Stargazers Issues GPL3 License

JOIN WITH OUT COMMUNITY

Description

logo

  • Chisato is a WhatsApp bot with various functions
  • There are various features available on Chisato BOT
  • ChisatoBOT has a beautiful terminal logger
  • Full Installation Tutorial Click Here

Table of Contents

Getting Started

What is needed to run this project :

If you have problems, you can open an issue or join the community to ask questions about it

Setup Your Mongodb

  • Login to the MongoDB website
  • Create your Database
  • Next, select the Database that you created again or click (Database > Connect > Drivers > Copy Your Application Code)
  • Paste the mongodb code that you copied into the .env file and don't forget to change <password> to your database password

Setup Your .env File

  • Edit your .env file
  • Rename .env.example to .env

Built With

TypeScript Prisma MongoDB

Installation

Clone this Project

git clone https://github.com/TobyG74/ChisatoBOT
cd ChisatoBOT

Install Dependencies

npm install

Setup Prisma

npx prisma db push

Build Project

npm run build

Run Project

  • Run with PM2
npm run pm2:start
  • Without PM2
npm start

Documentation

Configuration File config.json

  • ownerNotifyOnline to send a message to the Owner whenever the Bot is Online
  • useLimit for limit configuration, if true then every time the command will use the limit
  • useCooldown for cooldown configuration, if true then every time the command will use the cooldown
{
    "ownerNumber": ["YOUR_NUMBER"],
    "teamNumber": [],
    "timeZone": "Asia/Jakarta",
    "prefix": ".",
    "maintenance": [], // List Maintenance Command
    "stickers": {
        "author": "Instagram : ini.tobz",
        "packname": "Made by ChisatoBOT"
    },
    "settings": {
        "ownerNotifyOnline": false,
        "selfbot": false,
        "useLimit": false,
        "useCooldown": true,
        "autoReadMessage": true,
        "autoReadStatus": true
    },
    "call": {
        "status": "reject" // reject, block, off
    },
    "limit": {
        "command": 30
    },
    "cfonts": {
        "font": "block",
        "align": "center",
        "colors": ["green", "yellow"],
        "background": "transparent",
        "letterSpacing": 0,
        "lineHeight": 0,
        "space": true,
        "maxLength": "0",
        "gradient": false,
        "independentGradient": false,
        "transitionGradient": false,
        "env": "node"
    }
}

Config Commands

  • Command configuration that you can use
type ConfigCommands = {
    name: string;
    alias: string[];
    usage: string;
    category: string;
    description: string;
    cooldown?: number; // in seconds
    limit?: number;
    example?: string;
    isOwner?: boolean;
    isTeam?: boolean;
    isPrivate?: boolean;
    isPremium?: boolean;
    isGroup?: boolean;
    isGroupAdmin?: boolean;
    isGroupOwner?: boolean;
    isBotAdmin?: boolean;
    isProcess?: boolean;
    run: (args: CommandsObject) => unknown;
};

Maintenance Command

  • To change the command to maintenance status, just type : .commandname -m
  • To change it again, type the same command

Log Messages for those affected by Banned or Blocked

logo

Log Messages for Groups that are Muted

logo

Log Messages for Commands in Group Chat

logo

Log Messages for Commands in Private Chat

logo

Log Messages for Regular Messages

logo

Log Messages for Eval & Exec Message

logo


Community

  • Special thanks to the bot community below who helped develop ChisatoBOT

TobyG74

Arugaz

Nugraizy

Zennn08 (Aqul)

MRHRTZ

Mhankbarbar

ItzNgga

xbnfz01

Faiz Bastomi

Alphanum404

DutaKey
  • Special Thanks for My Teams

Hidden-Finder

BOTWEA

chisatobot's People

Contributors

dutakey avatar tobyg74 avatar xbnfz01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chisatobot's Issues

Minta tolong lagi :V

[ERROR] ReferenceError: badword is not defined
at tobz (C:\ElainaBOT-main\tobz.js:187:27)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)

[ERROR]

[ERROR] TypeError: Cannot read property 'match' of undefined
at tobz (C:\ElainaBOT\tobz.js:358:31)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)

EXEC] 01/12/20 10:24:47 #randomhentai [1] from DEEP WEB [shadows] in Uji Coba Bot Whatsapp
[ERROR] TypeError: Cannot read property 'url' of undefined
at tobz (C:\ElainaBOT\tobz.js:938:23)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)

[EXEC] 01/12/20 10:25:13 #randomnsfwneko [1] from DEEP WEB [shadows] in Uji Coba Bot Whatsapp
[ERROR] TypeError: Cannot read property 'endsWith' of undefined
at tobz (C:\ElainaBOT\tobz.js:953:30)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)

[EXEC] 01/12/20 10:25:48 #randomtrapnime [1] from DEEP WEB [shadows] in Uji Coba Bot Whatsapp
[ERROR] TypeError: Cannot read property 'result' of undefined
at tobz (C:\ElainaBOT\tobz.js:923:23)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)

ASK

#bugreport error

Bagaimana mengatasinya?
Laporan tidak terkirim ke owner,
Di terminal tertulis not a contact, padahal no owner sudah ada di kontak.

Error

√ Browser Launched
Error: Command failed with exit code 1: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption
'powershell' is not recognized as an internal or external command,
operable program or batch file.
at makeError (C:\ElainaBOT-main\node_modules\execa\lib\error.js:59:11)
at Function.module.exports.sync (C:\ElainaBOT-main\node_modules\execa\index.js:188:17)
at windowsRelease (C:\ElainaBOT-main\node_modules\windows-release\index.js:39:19)
at osName (C:\ElainaBOT-main\node_modules\os-name\index.js:43:18)
at C:\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\controllers\initializer.js:171:26
at step (C:\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\controllers\initializer.js:63:23)
at Object.next (C:\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\controllers\initializer.js:44:53)
at fulfilled (C:\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\controllers\initializer.js:35:58)
at processTicksAndRejections (node:internal/process/task_queues:93:5) {
shortMessage: 'Command failed with exit code 1: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption',
command: 'powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: "'powershell' is not recognized as an internal or external command,\r\n" +
'operable program or batch file.',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}

Gmna ya cara ngatasinya?

Request!

#caklontong
#pantun
#tebakgambar

AMA REQUEST BIKIN APIKEY SENDIRI :V

help padahal udah install imagemagick 1.2.3.5.6

[EXEC] 15/12/20 12:21:37 #magernulis1 [3] from OWNERN҉O҉T҉B҉O҉T҉ in NOT BOT GRUP #1
(node:42300) UnhandledPromiseRejectionWarning: Error: Cannot find file. Make sure the file reference is relative, a valid URL or a valid DataURL
at Client. (C:\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\api\Client.js:916:35)
at step (C:\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\api\Client.js:63:23)
at Object.next (C:\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\api\Client.js:44:53)
at C:\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\api\Client.js:38:71
at new Promise ()
at __awaiter (C:\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\api\Client.js:34:12)
at Client.sendImage (C:\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\api\Client.js:900:16)
at ChildProcess. (C:\ElainaBOT-main\tobz.js:676:26)
at ChildProcess.emit (events.js:210:5)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
(node:42300) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:42300) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

ASK

Apakah fitur text to sticker work?

Help gua bang

[email protected] start C:\ElainaBOT-main
node index.js

Unable to load the sleep module (no animations available)
undefined:1

SyntaxError: Unexpected token
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Asus\AppData\Roaming\npm-cache_logs\2020-12-17T09_38_48_496Z-debug.log

NOTE : gw ga otak atik

ini kenapa bang?

C:\ElainaBOT>npm start

[email protected] start C:\ElainaBOT
node index.js

internal/modules/cjs/loader.js:883
throw err;
^

Error: Cannot find module 'dotenv'
Require stack:

  • C:\ElainaBOT\tobz.js
  • C:\ElainaBOT\index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (C:\ElainaBOT\tobz.js:1:1)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ 'C:\ElainaBOT\tobz.js', 'C:\ElainaBOT\index.js' ]
    }
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] start: node index.js
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\MR.AnoNyMo34\AppData\Roaming\npm-cache_logs\2020-12-02T23_49_17_160Z-debug.log

#quran

[EXEC] 29/11 14:50:59 #quran from undefined in BEE 𝐈 & ZEXX 𝐩 CHAL CGUB G NCY
index > [ERROR] ReferenceError: techidkey is not defined
index > at tobz (C:\ElainaBOT\tobz.js:1099:67)
index > at runMicrotasks ()
index > at processTicksAndRejections (internal/process/task_queues.js:93:5)

bantu bang..

cara ngatasinnya bagaimana bang : TypeError: Assignment to constant variable.

di bagian ini arg = body.trim().split(' ')
jika aku tambahin depannya dengan prefix kek gini zarg = body.trim().split(' ')
malah random hasilnya, ini di joox sama stalk sosmed lainnya

kokgini

(node:22368) UnhandledPromiseRejectionWarning: ReferenceError: prefix is not defined
at tobz (C:\ElainaBOT-main\tobz.js:3640:20)
at processTicksAndRejections (internal/process/task_queues.js:93:5)

BUG

masa pas udah run botnya bekerja dah?

[Error]

[ERROR] ReferenceError: prefix is not defined
index > at tobz (C:\ElainaBOT\tobz.js:1253:14)
index > at runMicrotasks ()
index > at processTicksAndRejections (internal/process/task_queues.js:93:5)

anjay eror lagi

C:\ElainaBOT-main\tobz.js:1540
const { potensi, koordinat, lokasi, kedalaman, magnitude, waktu, map } = bmkg.data
^

SyntaxError: Identifier 'waktu' has already been declared

C:\ElainaBOT-main\tobz.js:869 case '#group': ^^^^ SyntaxError: Unexpected token 'case' at Module._compile (internal/modules/cjs/loader.js:892:18) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Module.require (internal/modules/cjs/loader.js:849:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (C:\ElainaBOT-main\index.js:14:1) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) npm ERR! code ELIFECYCLE

nih kenapa dah

Eror

Terjadi eror pada command
#randomAnime
#randomhentai
#artinama
#ytmp3
#ytmp4
#quran

eror #promote

[EXEC] 30/11 09:21:55 #promote from ~Liy in ☠️T o x i c S q u a d☠️
[ERROR] Error: Evaluation failed: n
at ExecutionContext._evaluateInternal (C:\ElainaBOT\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:217:19)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async ExecutionContext.evaluate (C:\ElainaBOT\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:106:16)

tanya

C:\ElainaBOT\tobz.js:375
})
^

SyntaxError: missing ) after argument list
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (C:\ElainaBOT\index.js:14:1)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\MR.AnoNyMo34\AppData\Roaming\npm-cache_logs\2020-11-30T10_29_55_700Z-debug.log

ini kenapa bang?
sama sekalian nanya premium command harganya berapa ya?

req fitur

#astik (auto sticker)
jadi kalo kita tulis astik on
jika kita ngirim gambar otomatis jadi sticker
#afk
oh ya lupa ama #logo #freefire

Deploy ke Heroku

Permisi mas
Apakah bisa di deploy dan run di heroku?
Kalau bisa, apakah ada tambahan file lainnya selain troubleshooting di puppeteer?

Excuse me, Sir
Is possible to deploy and run through heroku?

kenapa includes

[ERROR] TypeError: Cannot read property 'includes' of undefined
at tobz (C:\ElainaBOT-main\tobz.js:188:35)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)

Help Min

Error: Command failed with exit code 1: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption
'powershell' is not recognized as an internal or external command,
operable program or batch file.
at makeError (C:\ElainaBOT-mainCpy\ElainaBOT-main\node_modules\execa\lib\error.js:59:11)
at Function.module.exports.sync (C:\ElainaBOT-mainCpy\ElainaBOT-main\node_modules\execa\index.js:188:17)
at windowsRelease (C:\ElainaBOT-mainCpy\ElainaBOT-main\node_modules\windows-release\index.js:39:19)
at osName (C:\ElainaBOT-mainCpy\ElainaBOT-main\node_modules\os-name\index.js:43:18)
at C:\ElainaBOT-mainCpy\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\controllers\initializer.js:171:26
at step (C:\ElainaBOT-mainCpy\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\controllers\initializer.js:63:23)
at Object.next (C:\ElainaBOT-mainCpy\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\controllers\initializer.js:44:53)
at fulfilled (C:\ElainaBOT-mainCpy\ElainaBOT-main\node_modules@open-wa\wa-automate\dist\controllers\initializer.js:35:58)
at processTicksAndRejections (node:internal/process/task_queues:93:5) {
shortMessage: 'Command failed with exit code 1: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption',
command: 'powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: "'powershell' is not recognized as an internal or external command,\r\n" +
'operable program or batch file.',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}

Mau nanya itu knp ya min? mohon bantuannya dong min

help

Knapa change prefix
pas di help prefix ga ke change

set -> e Error: Evaluation failed: TypeError: Cannot read property 'default' of undefined at window.<computed>.window.<computed> (C:\ElainaBOT-main\node_modules\@open-wa\wa-automate\dist\lib\launch.js:1:31435) at __puppeteer_evaluation_script__:3:89 at ExecutionContext._evaluateInternal (C:\ElainaBOT-main\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:217:19) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async ExecutionContext.evaluate (C:\ElainaBOT-main\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:106:16)

help

Erorr

Bang tolong di fix yg fitur text to picture :)

meme khusus

tambahkan opsi meme khusus / teks atas dan bawah

Baru clone dah gini?!?

Unable to load the sleep module (no animations available)
c:\ElainaBOT-main\lib\help.js:265
const downloadcmd = (prefix) => {
^^^^^

Badword and AntiLink personal edition

Good night, I have two doubts.
1- Where can I be configuring BadWord? I would like to put add some words.
2- Where can I be configuring the antilink links? I would like to add some links.
Thanks in advance.

woy Elaina bantu napa :(

(node:34404) UnhandledPromiseRejectionWarning: ReferenceError: prefix is not defined
at tobz (C:\ElainaBOT-main\tobz.js:3658:20)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:34404) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 16)

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.