Giter Site home page Giter Site 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.

wbot's People

Contributors

dutakey avatar faizbastomi avatar github-actions[bot] avatar lxndr-rl avatar rizky878 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

Watchers

 avatar  avatar  avatar

wbot's Issues

.ytv ERROR

IMG_20220517_102049

Error: Request failed with status code 404
at createError (/root/wbot/node_modules/@adiwajshing/baileys/node_modules/axios/lib/core/createError.js:16:15)
at settle (/root/wbot/node_modules/@adiwajshing/baileys/node_modules/axios/lib/core/settle.js:17:12) at RedirectableRequest.handleResponse (/root/wbot/node_modules/@adiwajshing/baileys/node_modules/axios/lib/adapters/http.js:262:9) at RedirectableRequest.emit (node:events:527:28) at RedirectableRequest._processResponse (/root/wbot/node_modules/follow-redirects/index.js:346:10) at ClientRequest.RedirectableRequest._onNativeResponse (/root/wbot/node_modules/follow-redirects/index.js:57:10) at Object.onceWrapper (node:events:642:26) at ClientRequest.emit (node:events:527:28) at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:631:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) at TLSSocket.socketOnData (node:_http_client:494:22) at TLSSocket.emit (node:events:527:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at TLSSocket.Readable.push (node:internal/streams/readable:228:10) at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23) { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [Function: httpAdapter], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, /',
'User-Agent': 'axios/0.24.0'
}, responseType: 'stream', method: 'get',
url: 'https://i.ytimg.com/vi/undefined/0.jpg',
data: undefined
}, request: <ref *1> ClientRequest { _events: [Object: null prototype] {
abort: [Function (anonymous)], aborted: [Function (anonymous)],
connect: [Function (anonymous)], error: [Function (anonymous)], socket: [Function (anonymous)],
timeout: [Function (anonymous)], prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7, _maxListeners: undefined,
outputData: [],
outputSize: 0, writable: true, destroyed: false,
_last: true, chunkedEncoding: false,
shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 0, _hasBody: true, _trailer: '',
finished: true, _headerSent: true, _closed: false, socket: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'i.ytimg.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 11, connecting: false, _hadError: false, _parent: null, _host: 'i.ytimg.com', _readableState: [ReadableState], _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null,
_pendingData: null,
_pendingEncoding: '', server: undefined, _server: null, ssl: [TLSWrap],
_requestCert: true, _rejectUnauthorized: true,
parser: [HTTPParser],
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null, [Symbol(async_id_symbol)]: 262,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: false, [Symbol(kSetKeepAlive)]: false, [Symbol(kSetKeepAliveInitialDelay)]: 0, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(connect-options)]: [Object], [Symbol(RequestTimeout)]: undefined }, _header: 'GET /vi/undefined/0.jpg HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'User-Agent: axios/0.24.0\r\n' +
'Host: i.ytimg.com\r\n' + 'Connection: close\r\n' +
'\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop],
agent: Agent { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object: null prototype], requests: [Object: null prototype] {},
sockets: [Object: null prototype], freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity,
maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: [Object], [Symbol(kCapture)]: false }, socketPath: undefined, method: 'GET', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/vi/undefined/0.jpg', _ended: false, res: IncomingMessage { _readableState: [ReadableState], _events: [Object: null prototype],
_eventsCount: 1, _maxListeners: undefined, socket: [TLSSocket], httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: false, rawHeaders: [Array], rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 404,
statusMessage: 'Not Found', client: [TLSSocket],
_consuming: false, _dumped: false,
req: [Circular *1], responseUrl: 'https://i.ytimg.com/vi/undefined/0.jpg',
redirects: [], [Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object], [Symbol(kHeadersCount)]: 26,
[Symbol(kTrailers)]: null, [Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined },
aborted: false, timeoutCb: null,
upgradeOrConnect: false,
parser: HTTPParser {
'0': null, '1': [Function: parserOnHeaders],
'2': [Function: parserOnHeadersComplete],
'3': [Function: parserOnBody], '4': [Function: parserOnMessageComplete],
'5': null,
'6': null, _headers: [],
_url: '', socket: [TLSSocket],
incoming: [IncomingMessage], outgoing: [Circular *1], maxHeaderPairs: 2000,
_consumed: false,
onIncoming: [Function: parserOnIncomingClient], [Symbol(resource_symbol)]: [HTTPClientAsyncResource] }, maxHeadersCount: null, reusedSocket: false, host: 'i.ytimg.com', protocol: 'https:', _redirectable: Writable { _writableState: [WritableState], _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, _options: [Object], _ended: true, _ending: true, _redirectCount: 0, _redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)], _currentRequest: [Circular 1], _currentUrl: 'https://i.ytimg.com/vi/undefined/0.jpg',
[Symbol(kCapture)]: false }, [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] { accept: [Array], 'user-agent': [Array],
host: [Array] }
}, response: {
status: 404, statusText: 'Not Found',
headers: {
vary: 'Origin',
'timing-allow-origin': '
',
'cross-origin-resource-policy': 'cross-origin',
'content-type': 'image/jpeg',
date: 'Tue, 17 May 2022 03:15:28 GMT',
expires: 'Tue, 17 May 2022 03:15:58 GMT',
'cache-control': 'public, max-age=30',
'x-content-type-options': 'nosniff',
server: 'sffe',
'content-length': '1097',
'x-xss-protection': '0',
'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"',
connection: 'close'
},
config: {
transitional: [Object], adapter: [Function: httpAdapter], transformRequest: [Array], transformResponse: [Array], timeout: 0, xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1,
maxBodyLength: -1, validateStatus: [Function: validateStatus],
headers: [Object], responseType: 'stream',
method: 'get', url: 'https://i.ytimg.com/vi/undefined/0.jpg',
data: undefined },
request: <ref *1> ClientRequest { _events: [Object: null prototype], _eventsCount: 7,
_maxListeners: undefined,
outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true,
_headerSent: true, _closed: false, socket: [TLSSocket],
_header: 'GET /vi/undefined/0.jpg HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' + 'User-Agent: axios/0.24.0\r\n' + 'Host: i.ytimg.com\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined, method: 'GET', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/vi/undefined/0.jpg', _ended: false, res: [IncomingMessage], aborted: false, timeoutCb: null, upgradeOrConnect: false,
parser: [HTTPParser], maxHeadersCount: null,
reusedSocket: false, host: 'i.ytimg.com', protocol: 'https:',
_redirectable: [Writable], [Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype]
}, data: IncomingMessage { _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 1,
_maxListeners: undefined, socket: [TLSSocket], httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: false, rawHeaders: [Array], rawTrailers: [], aborted: false,
upgrade: false, url: '', method: null,
statusCode: 404, statusMessage: 'Not Found', client: [TLSSocket], _consuming: false, _dumped: false, req: [ClientRequest],
responseUrl: 'https://i.ytimg.com/vi/undefined/0.jpg', redirects: [],
[Symbol(kCapture)]: false, [Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 26, [Symbol(kTrailers)]: null, [Symbol(kTrailersCount)]: 0, [Symbol(RequestTimeout)]: undefined } }, isAxiosError: true, toJSON: [Function: toJSON] }

UPDATE WA

Update wa yg baru di PS malah urlButtonnya ga ke kirim pak
Kalo di command ada url buttonyan

Kyk menu aja ga ke kirim
Tpi di WA lawas masih bisa

Feature Request/Permintaan fitur baru

Silahkan bagi kalian yang punya ide mau ditambah fitur apa, biar makin banyak,
tentu kalian juga bisa membuat Pull Request nanti akan saya review :D
Kalian juga bisa buat issue baru dan beri label feature request agar cepat di notice.

Please, for those of you who have an idea what features to add, so that there are more features in this bot,
Of course you can also make a Pull Request I will review it later :D
You can also create a new issue and label it feature request so that it gets noticed quickly.


To do

  • Limit & Premium Only (BETA)
  • broadcast
  • Weebs Related Features

Terkait nomor terkena ban atau di blokir oleh WhatsApp karena sering melakukan "kick/menendang" anggota dari grup, ini bukanlah kesalahan dari source code di repository ini, melainkan memang sistem deteksi WhatsApp yang sangat sensitif dengan ha ini. Mohon untuk tidak melakukan spam di tab issue repo ini. Terima kasih.

Regarding the number being banned or blocked by WhatsApp because often kicks members out of the group, this is not the fault of the source code in this repository, but the WhatsApp detection system which is very sensitive to this. Please don't spam the issue tab of this repo. Thank you.

/lib/connect.js line 98

error found, in /lib/connect.js line 98

if (command?.premium) {
SyntaxError: Unexpected token '.'

[ERROR] cannot login

I am getting this error while trying to login.
image

i guess the issue is due to config.json file,can you help me how to fix this.

Stickermeme not working on PM2

when using Pm2, Feature Smeme / Stickermeme error ("Error While creating sticker"), when using node . / npm start, the feature can and does not error

Support platform Heroku & Okteto.com (NEED HELP)

Saya butuh bantuan untuk membuat projek ini mendukung beberapa platform berikut:

  1. Heroku
  2. Okteto.com

Jika ada yang ingin membantu silahkan balas komen ini, nanti akan saya undang untuk menjadi kontributor repo ini.
Note: Silahkan membuat branch baru jika ingin push commit kalian


I need help making this project support the following platforms:

  1. Heroku
  2. Okteto.com

If anyone wants to help please reply to this comment, I'll invite you to become a contributor to this repo.
Note: Please create a new branch if you want to push your commits

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.