This project is a simple WhatsApp bot that uses the Baileys library, Node.js, and JavaScript with type cjs Event emitter.
Windows
Requirements:
- Git
Click here
- NodeJS
Click here
- FFmpeg
Click here
(opsional)
Add to PATH environment variable
Linux
1. apt update && apt upgrade
2. apt install nodejs -y
3. apt install git -y
4. apt install ffmpeg -y (opsional)
Install nvm for custom nodejs version:
1. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
2. source ~/.bashrc
3. nvm install node
Termux
1. pkg update && pkg upgrade
2. pkg install nodejs -y
3. pkg install git -y
4. pkg install ffmpeg -y (opsional)
-
Clone the repository:
git clone https://github.com/xfar05/shinoa-bot.git cd shinoa-bot
-
Install the dependencies:
npm install
-
Start the bot:
npm start or node index.js
-
Enter your pairing code into the WhatsApp linked device.
- You can see the example command code here show
command.exec({
name: String[],
command: String[],
category: String[],
param: String,
description: String,
}, async function (msg) {
// your code
}, {
owner: Boolean,
group: Boolean,
private: Boolean,
admin: Boolean,
botadmin: Boolean,
query: Boolean || String,
url: Boolean || String,
quoted: Boolean,
wait: Boolean || String,
})
- You can see the example function code here show
command.functions(String, async function(msg) {
// your code
})
- The bot will automatically respond to messages with predetermined replies with prefix symbols, emojis, or without prefixes.
- Configuration file config
- You can customize the bot's response in the command file.
Pull requests are welcome. Your contribution is helping me a lot :^)
Made with contrib.rocks.
This project is licensed under the MIT License. See the LICENSE file for details.