Skip to content

WhatsApp bot example from the api.xfar.net website

License

Notifications You must be signed in to change notification settings

Ryuuken97/shinoa-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shinoa

Shinoa Bot

This project is a simple WhatsApp bot that uses the Baileys library, Node.js, and JavaScript with type cjs Event emitter.

JavaScript NodeJS

Prerequisites

Windows
Requirements:

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)

Installation

  1. Clone the repository:

    git clone https://github.com/xfar05/shinoa-bot.git
    cd shinoa-bot
  2. Install the dependencies:

    npm install
  3. Start the bot:

    npm start
    or
    node index.js
  4. Enter your pairing code into the WhatsApp linked device.

Function/Command Config

  • 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,
  quoted: Boolean,
  wait: Boolean || String,
  query: Boolean || String,
})
  • You can see the example function code here show
command.functions(String, async function(msg) {
// your code
})

Usage

  • 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.

Contributing

Pull requests are welcome. Your contribution is helping me a lot :^)

Contributors

Made with contrib.rocks.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

WhatsApp bot example from the api.xfar.net website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%