Gathering detailed insights and metrics for @neoxr/wb
Gathering detailed insights and metrics for @neoxr/wb
Gathering detailed insights and metrics for @neoxr/wb
Gathering detailed insights and metrics for @neoxr/wb
npm install @neoxr/wb
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
186 Stars
680 Commits
335 Forks
9 Watching
4 Branches
5 Contributors
Updated on 27 Nov 2024
JavaScript (99.44%)
Dockerfile (0.27%)
Nix (0.14%)
Shell (0.13%)
Procfile (0.02%)
Cumulative downloads
Total Downloads
Last day
51.8%
211
Compared to previous day
Last week
50.3%
1,276
Compared to previous week
Last month
-10.3%
4,739
Compared to previous month
Last year
850.7%
79,836
Compared to previous year
39
An implementation of @neoxr/wb which has been optimized to be lightweigth.
If you use baileys from whiskeysockets npm:@whiskeysockets/baileys@6.6.0
or git+https://github.com/neoxr/whiskeys-baileys
add browser option and use version [2, 3000, 1017531287]
, for example :
1const client = new Baileys({ 2 type: '--neoxr-v1', 3 plugsdir: 'plugins', 4 sf: 'session', 5 online: true, 6 version: [2, 3000, 1017531287] 7}, { 8 browser: ['Ubuntu', 'Firefox', '20.0.00'] 9})
and if using previous baileys i.e. @neoxr/baileys
no need to add browser options just use version [2, 2413, 51]
, for example :
1const client = new Baileys({
2 type: '--neoxr-v1',
3 plugsdir: 'plugins',
4 sf: 'session',
5 online: true,
6 version: [2, 2413, 51]
7})
Untuk yang melapor masalah terkait script delay, itu memang sengaja dari sistem cooldown (anti spam) untuk meminimalisir banned dari pihak whatssapp dan jika fitur ini membuat tidak nyaman saat menggunakan bot silahkan matikan dengan command : .antispam off
🏷️ Price : Rp. 150.000 / $20.80
Special Features & Benefit :
Note : Script Premium sudah terdapat semua additional features, kecuali payment gateway.
Additional Features :
Addional Features adalah fitur tambahan yang di jual terpisah / Additional features are features that are sold separately.
🏷️ Cloud Storage (+Rp. 35.000 / +$6.80)
Cloud Storage ini berfungsi untuk menyimpan file media (sticker, foto, video, audio) ke cloud storage tanpa membebani disk space server karena file langsung di simpan kedalam database. Plugin storage.js dan storage_ev.js
🏷️ Menfess (+Rp. 15.000 / +$3.80)
Menfess untuk mengirim chat confess kepada seseorang dan penerima pesan bisa membalas chat dari pengirim confess tanpa perlu menggunakan command/perintah
🏷️ Payment Gateway (+Rp. 80.000 / +$10.80)
Payment Gateway ini berfungsi untuk melakukan pembayaran otomatis menggunakan QRIS pada fitur ini terdapat script payment gateway, plugin payment.js, sewa.js dan buyprem.js harga dan fee bisa di sesuaikan sesuai keinginan, dalam pembelian mendapat 2 script payment gateway yaitu dari saweria dan paydisini yang mendukung all payment
🏷️ Game Plugins (+Rp. 70.000 / +$9.80)
29 plugin game yang semuanya tanpa menggunakan api dan tanpa di enskripsi, dengan ini ada tambahan update schema, profile, rank, pocket, dll.
🏷️ Jadi Bot (+Rp. 50.000 / +$6.50)
Fitur jadibot ini sudah dilengkapi dengan auto connect/reconnect apabila bot utama restart bot yang menjadi klien akan terkoneksi kembali secara otomatis (mirip bot hosting).
Creator / Group : Wildan Izzudin / Chatbot
?sslmode=required
There are 2 configuration files namely .env
and config.json
, adjust them before installing.
1{ 2 "owner": "6285887776722", 3 "owner_name": "Wildan Izzudin", 4 "database": "data", 5 "limit": 15, 6 "ram_limit": "900mb", 7 "max_upload": 50, 8 "max_upload_free": 10, 9 "cooldown": 3, // anti spam hold 3 seconds 10 "timer": 180000, 11 "timeout": 1800000, 12 "permanent_threshold": 3, 13 "notify_threshold": 4, 14 "banned_threshold": 5, 15 "blocks": ["994", "91", "92"], 16 "evaluate_chars": ["=>", "~>", "<", ">", "$"], 17 "pairing": { 18 "state": true, // "true" if you want to use the pairing code 19 "number": 62xxxx // start number with country code 20 } 21}
### Neoxr API : https://api.neoxr.my.id
API_KEY = 'your_apikey'
### Database : https://www.mongodb.com/
DATABASE_URL = ''
### Timezone (Important)
TZ = 'Asia/Jakarta'
Notes :
ram_limit
: ram usage limit, for example you have a server with 1gb of ram set before the maximum capacity is 900mb.
API_KEY
: some of the features in this script use apikey, especially the downloader feature, to get an apiKey you can get it on the Neoxr Api's with prices that vary according to your needs.
DATABASE_URL
: can be filled with mongo and postgresql URLs to use localdb just leave it blank and the data will be saved to the .json file.
Localdb is only for development state, for production state you must use a cloud database (mongo / postgres)
This program is equipped with a spam detector (anti-spam) which is very sensitive.
1const { Spam } = new(require('@neoxr/wb)) 2 3const spam = new Spam({ 4 RESET_TIMER: env.cooldown, 5 HOLD_TIMER: env.timeout, 6 PERMANENT_THRESHOLD: env.permanent_threshold, 7 NOTIFY_THRESHOLD: env.notify_threshold, 8 BANNED_THRESHOLD: env.banned_threshold 9}) 10 11const isSpam = spam.detection(client, m, { 12 prefix, command, commands, users, cooldown, 13 show: 'all', // for logger in the terminal, choose 'all' or 'command-only' 14 banned_times: users.ban_times 15}) 16 17console.log(isSpam.state)
Look, i tries to spam commands against the bot, and will only respond to 1 command.
and the message gets a red label [ SPM ] as spam message in the terminal.
To run this bot on Heroku you only need to add 2 buildpacks and choose region EU (EUROPE) for your app :
delete the package.json
, and rename package-for-heroku.json
to package.json
Clovyr is a free cloud compute with vscode based for running bot with specifications of 2 CPU and 4GB RAM (idk storage size)
with vscode it will be very easy to do recode and debugging scripts
Notes :
CLOVYR_APPNAME
: application name on your clovyrSpecifically for the 2 configurations below, you must carry out an inspect element using a computer to get cookies and keep-alive links
CLOVYR_URL
: keep-alive link
CLOVYR_COOKIE
: cookie from clovyr
Connecting account without qr scan but using pairing code.
1{ 2 "pairing": { 3 "state": true, // "true" if you want to use the pairing code 4 "number": 62xxxx // start number with country code 5 } 6}
Make sure the configuration and server meet the requirements so that there are no problems during installation or when this bot is running, type this on your console (linux) :
$ bash install.sh
to run in it, type this :
$ pm2 start index.js && pm2 save && pm2 logs
I don't know how to use Windows bacause I'm Linux user, so I didn't create files for installation on Windows :v
Command Plugin is a plugin that will run using the command.
1exports.run = { 2 usage: ['mediafire'], 3 hidden: ['mf'], 4 use: 'link', 5 category: 'downloader', 6 async: async (m, { 7 client, 8 args, 9 text, 10 isPrefix, 11 command, 12 env, 13 Scraper, 14 Func 15 }) => { 16 try { 17 // do something 18 } catch (e) { 19 console.log(e) 20 client.reply(m.chat, Func.jsonFormat(e), m) 21 } 22 }, 23 error: false, 24 limit: true, 25 restrict: true, 26 cache: true, 27 location: __filename 28}
usage
: main command that will automatically appear in the menu list, use of usage can be in the form of arrays and strings.
hidden
: commands that are hidden from the menu list, suitable for command aliases or hidden features.
use
: this parameter is optionally used when the plugin / feature requires input such as link, query, amount, etc.
category
: categories for each plugin that the command will be arranged by category when the menu is displayed.
m
: parameters that contain chat object.
client
: parameter which contains several messaging functions from @neoxr/wb and default functions from Baileys.
args
: nput given after command in the form of an array is usually found in downloader feature which uses links such as ig, youtube, fb, etc. Parsing based on index. (Example: args[1], args[2], args[3], ....)
text
: input that is given after command in the form of a string is usually found in search features that use queries/keywords such as lyrics, chords, yts, etc.
isPrefix
: prefix used, if noprefix mode is active this parameter will be blank (it's no problem).
command
: commands used can be used in an if else or switch case conditional when creating 1 plugin with several commands in it.
env
: parameters that contain the configuration from the config.json file.
Scraper
: parameter containing some of the scraper functions of @neoxr/wb module.
Func
: parameter containing some of the utilites functions of @neoxr/wb module.
error
: not very useful :v
limit
: limit the use of features with limits, to set the number of limits give integer data and for default is boolean true for 1.
premium
: to create special features for premium users.
restrict
: limit input, restricted input is in the form of badwords in db.setting.toxic.
cache
: option to auto update when done recode.
__filename
: file path for auto update
Other :
1cmd.async(m, { client, args, text, isPrefix: prefix, prefixes, command, groupMetadata, participants, users, chats, groupSet, setting, isOwner, isAdmin, isBotAdmin, plugins, blockList, env, ctx, Func, Scraper })
Event Plugin is a plugin that runs automatically without using the command.
1exports.run = { 2 async: async (m, { 3 client, 4 body, 5 prefixes 6 }) => { 7 try { 8 // do something 9 } catch (e) { 10 return client.reply(m.chat, Func.jsonFormat(e), m) 11 } 12 }, 13 error: false, 14 cache: true, 15 location: __filename 16}
body
: chat in the form of text or emoticons, this plugin is usually used for auto response or group protectors such as anti-links, anti-toxic etc.
prefixes
: parameter which contains all prefixes in the form of an array, to use them parse based on index. (Example: prefixes[0]).
Other :
1event.async(m, { client, body, prefixes, groupMetadata, participants, users, chats, groupSet, setting, isOwner, isAdmin, isBotAdmin, plugins, blockList, env, ctx, Func, Scraper })
Others please learn by yourself from other plugins.
Check this repository regularly to get updates because the progress base is not 100% yet (this is just a base or beta test), if you find an error please make an issue. Thanks.
No vulnerabilities found.
No security vulnerabilities found.