ZTRdiamond / zanixon-wabot

A simple wwebjs whatsapp bot using command handler to manage the commands easily and have some useful features

Home Page:https://ztrdiamond.github.io/znbotweb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zanixon Wabot

ZanixonMD - Whatsapp Bot (Archived)

A simple whatsapp bot using command handler to manage the commands easily and have some useful features

License: CC BY-NC 4.0 GitHub commit activity (branch) GitHub last commit (by committer) GitHub repo size GitHub package.json version (branch)

Information

This is a recoded bot from bot hisoka-waweb.js, the parts that I recode are quite a lot, especially the command handler which I changed so that it can read files in subfolder and change the command categorization from folder to command.type from the command option, this bot code is still quite stable running on wwebjs so I recode it.

Note:

This bot source will no longer update because i have so much errors from the modules and i cant debug the bot from my phone, then i rework the bot and make a new using baileys

Installation

How to install the bot

git clone https://github.com/ZTRdiamond/zanixon-wabot
cd zanixon-wabot
npm install or yarn
npm start or PORT=3000 node index.js

Features

This bot has several useful features

API

route query param description
/exit key this route using to force shutdown the bot
/up urls this route using for reupload image or video file from image url to pomf.lain.la, a free unlimited file hosting

Commands

Command Status
sticker 🟒
stickerwm 🟒
toimage 🟒
pixiv 🟒
waifu 🟒
neko 🟒
husbu 🟒
loli 🟒
pinterest 🟒
tiktokdl 🟒
tiktokmp3 🟒
ytvideo 🟒
ytaudio 🟒
facebookdl 🟒
instagramdl 🟒
ai 🟒
and so on... ...

Create new command

You can put the file everywhere inside ./commands/ folder, with this system the command becomes more organized and neat. the type option specifies the category of the command so that commands are merged and more organized!

module.exports = {
    name: "command",
    aliases: ["cmd"],
    type: "main",
    isOwner: boolean,
    isAdmin: boolean,
    isPremium: boolean,
    isLimit: boolean,
    isGroup: boolean,
    isPrivate: boolean,
    isQuery: boolean,
    isMedia: boolean,
    isBotAdmin: boolean,
    isBot: boolean,
    isRegistered: boolean,
    cooldown: { duration: 10, msg: `Please wait, You can call this cmd in {hour}h {min}m {sec}s again!`, emoji: "wait" },
    disable: { active: false /* default: false */, msg: "This command is on disable mode!", emoji: "alert" },
    details: { desc: "bla bla bla", usage: "%prefix%command" },
    code: async(zanixon, m, { commandOptions }) => {
        // ur code here
    }
}

Thanks for

Special Thanks

A big thank you to our sponsor Bang Jeri who has sponsored the ZanixonMD bot all this time, Thanks to him this bot can continue to grow and also encourages me as a developer who develops this bot further. Thank you so much for all your support

Support Us

Trakteer Saya


Zanixon Wabot by ZTRdiamond is licensed under CC BY-NC 4.0

About

A simple wwebjs whatsapp bot using command handler to manage the commands easily and have some useful features

https://ztrdiamond.github.io/znbotweb

License:Other


Languages

Language:JavaScript 100.0%