Coder Social home page Coder Social logo

wbot's Introduction

Warning

This repository is no longer maintained and will be archived.

PFP

Kaguya PublicBot - MD

Use at your own risk!

JavaScript NodeJS

Legacy branch
Untuk instalasi bahasa Indonesia lihat disini



Content

Highlights

  • Support Multi-Device Conneciton
  • Features rich
  • Easy to maintenance

TODO

For a to do list, see here #1

Instalation

Config

Rename config.json.example to config.json or create new file called config.json.
Fill in everything needed in the config.json file (follow config.json.example).

{
    "botName": "SMH BOT",			// Your Bot Name
    "owner": [					// Your phone number or friend
        "[email protected]",
        "[email protected]"
    ],
    "openWeather": "OpenWeather_APIkey",	// OpenWeather API
    "igCookie": "Instagram_Cookie",		// Instagram Cookie
    "session": "session",			// Session folder
    "user_db": "users-db.json",			// User DB filename
    "chat_store": "baileys-store.json",		// Chat Store
    "timezone": "Asia/Jakarta",			// Your timezone (for cron and moment-timezone)
    "footer": "Kaguya PublicBot • FaizBastomi",	// Footer for some message
    "tier": {					// Premium Tier
        "drakath": 200,
        "nulgath": 500,
        "artix": 999
    }
}
  • Phone Number
    Use international phone number format and always add @s.whatsapp.net (e.g. [email protected])

OpenWeather API get from openweathermap.org.

Plugin/Command config

  • config set
{
	"name": string,
	"desc": string,
	"use": string,
	"alias": string[],
	"cooldown": number,
	"limit": boolean,
	"consume": number,
	"premium": boolean,
	"premiumType": string[],
	"owner": boolean,
	async exec({ msg, sock, args, arg, isOwner }) { }
}
  • example
{
	"name": "igdl",
	"desc": "Instagram Downloader",
	"use": "<link>",
	"alias": ["instagramdl"],
	"cooldown": 3,
	"limit": true,
	"consume": 2,
	"premium": true,
	"premiumType": ["drakath", "nulgath", "artix"],
	"owner": false,
	async exec({ msg, sock, args, arg, isOwner }) { }
}

Require

  1. nodejs 16x/17x
  2. ffmpeg
  3. libwebp

Ffmpeg Instalation

  • For Windows User, you can see this website, WikiHow.
  • For Linux User, you can use your own package manager, below are for example
# apt
apt install ffmpeg -y

# pacman
pacman -S ffmpeg

libWebP Instalation

  • For Windows User,
  1. Download libWebP for Windows. download.
  2. Extract to C:\
  3. Rename extracted folder to libwebp
  4. See below
Image Tutorial
  • Press Windows Key + S and find Edit the system environment and variabels
  • Select Environment Variabels...
  • On User variabels, select Path and click Edit...
  • Then click New
  • input this, C:\libwebp\bin
  • For Linux User, you can use your own package manager, below for example
# apt
apt install libwebp-dev -y

# pacman
pacman -S libwebp

Cloning this repo

# clone begin
git clone https://github.com/FaizBastomi/wbot.git

# change dir
cd wbot

# install npm dependencies
npm install

Start Bot

Start and Scan QR

  1. MD Connection
npm run start
# or
node ./lib/connect.js

Contributing

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

Contributors

Made with contrib.rocks.

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.