Skip to content

nazedev/hitori

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Information

This script is created by Nazedev using Node.js and the WhiskeySocket/Baileys library. The script is currently in the development phase (BETA), so there may still be some errors that can be ignored. If errors persist even after debugging, please contact the owner for assistance. ~ By Naze

Join Group

Grup WhatsApp


πŸ“¦ Requirements

Minimum requirements:

  • Node.js v20 or higher
  • Git

System dependencies (handled automatically by install.sh):

  • ffmpeg
  • imagemagick
  • yarn / npm

πŸš€ Installation

1️⃣ Clone Repository

git clone https://github.com/nazedev/hitori
cd hitori

2️⃣ Automatic Installation (Recommended)

bash install.sh

This script will:

  • Detect your package manager (pkg, apt, dnf, etc.)
  • Install required system dependencies
  • Install Node.js packages
  • Start the bot automatically

πŸ“± Termux (Android)

pkg update && pkg upgrade
pkg install git
pkg install nodejs
pkg install ffmpeg
pkg install imagemagick
git clone https://github.com/nazedev/hitori
cd hitori
npm install

[ RECOMMENDED INSTALL ON TERMUX ]

pkg install yarn
yarn

Use yarn:

yarn install
yarn start

Make sure nodejs and yarn are installed. The install.sh script already handles this.


πŸ’» Laptop / Ubuntu / VPS / SSH

  • Download And Install Git Click Here
  • Download And Install NodeJS Click Here
  • Download And Install FFmpeg Click Here (Don't Forget Add FFmpeg to PATH enviroment variables)
  • Download And Install ImageMagick Click Here

Use npm:

npm install
npm start

▢️ Running the Bot

npm start
# or
yarn start

Scan the QR Code or use Pairing Code, and the bot is ready to use.


🌐 API Integration

This bot is fully integrated with the Naze API Service:

πŸ”— https://naze.biz.id

Many features (such as downloader, AI tools, utilities, and media processing) rely on this external API.

API Key Requirement

To use all features properly, you must provide your own API key.

The API key is configured in:

πŸ“ settings.js

Example configuration:

global.APIKeys = {
  'https://api.naze.biz.id': 'YOUR_API_KEY_HERE'
}

⚠️ If the API key is invalid or not set:

  • Some commands will not work
  • API-based features may return errors

Make sure you register and obtain a valid API key from the official website before using the bot.


βš™οΈ Bot Configuration

All main configurations are located in:

πŸ“ settings.js

Editable Settings

Owner Number

global.owner = ['628xxxxxxxxxx']

Bot Identity

global.botname = 'Hitori Bot'
global.author = 'Nazedev'

Command Prefix

global.listprefix = ['!', '.', '+']

User Limits & Balance

global.limit.free = 20
global.money.free = 10000

Pairing Code / Bot Number

global.pairing_code = true
global.number_bot = '628xxxxxxxxxx'

Any change in settings.js will be auto-reloaded without restarting the bot.


🧩 Editing & Adding Features

All bot features are implemented in:

πŸ“ naze.js

Look for the switch (command) section.

Where to Add New Features

Add or edit commands inside the switch (command) block.

Example: Adding a New Command

case 'ping': {
  m.reply('pong πŸ“')
}
break

Guidelines:

  • Always add new commands using case
  • Do not remove the main switch structure
  • Place feature logic inside each case

πŸ”Œ Connector & Core Handler

To understand the WhatsApp connection flow and event handling, see:

πŸ“ index.js This file is responsible for:

  • Initializing Baileys connection
  • Handling WhatsApp events
  • Loading settings.js
  • Dispatching messages to naze.js

⚠️ Editing index.js is not recommended unless you fully understand the bot flow.


πŸ—‚ Structure Project

β”œβ”€β”€ Dockerfile
β”œβ”€β”€ LICENSE
β”œβ”€β”€ Procfile
β”œβ”€β”€ README.md
β”œβ”€β”€ app.json
β”œβ”€β”€ database
β”‚Β Β  β”œβ”€β”€ jadibot
β”‚Β Β  β”‚Β Β  └── Naze
β”‚Β Β  └── temp
β”‚Β Β      └── A
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ heroku.yml
β”œβ”€β”€ index.js
β”œβ”€β”€ install.sh
β”œβ”€β”€ lib
β”‚Β Β  β”œβ”€β”€ converter.js
β”‚Β Β  β”œβ”€β”€ exif.js
β”‚Β Β  β”œβ”€β”€ function.js
β”‚Β Β  β”œβ”€β”€ game.js
β”‚Β Β  β”œβ”€β”€ math.js
β”‚Β Β  β”œβ”€β”€ template_menu.js
β”‚Β Β  β”œβ”€β”€ tictactoe.js
β”‚Β Β  └── uploader.js
β”œβ”€β”€ naze.js
β”œβ”€β”€ nodemon.json
β”œβ”€β”€ package.json
β”œβ”€β”€ railway.json
β”œβ”€β”€ replit.nix
β”œβ”€β”€ settings.js
β”œβ”€β”€ speed.py
β”œβ”€β”€ src
β”‚Β Β  β”œβ”€β”€ antispam.js
β”‚Β Β  β”œβ”€β”€ database.js
β”‚Β Β  β”œβ”€β”€ jadibot.js
β”‚Β Β  β”œβ”€β”€ media
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ fake.pdf
β”‚Β Β  β”‚Β Β  └── naze.png
β”‚Β Β  β”œβ”€β”€ message.js
β”‚Β Β  └── server.js
└── start.js

Deploy to Heroku

Deploy

Heroku Buildpack

Build Pack LINK
NODEJS heroku/nodejs
FFMPEG here
IMAGEMAGICK here

Features

Menu Bot Group Search Download Tools Ai Game Fun Owner
Work βœ… βœ… βœ… βœ… βœ… βœ… βœ… βœ… βœ…

License: MIT

Support Me

Contributor

Thanks to

Nazedev Zaynn Dani WhiskeySockets

| NazeDev | Zaynn | Dani | WhiskeySockets |

About

New Base Bot WhatsApp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published