A simple whatsapp bot using command handler to manage the commands easily and have some useful features
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
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
This bot has several useful features
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 |
Command | Status |
---|---|
sticker | π’ |
stickerwm | π’ |
toimage | π’ |
pixiv | π’ |
waifu | π’ |
neko | π’ |
husbu | π’ |
loli | π’ |
π’ | |
tiktokdl | π’ |
tiktokmp3 | π’ |
ytvideo | π’ |
ytaudio | π’ |
facebookdl | π’ |
instagramdl | π’ |
ai | π’ |
and so on... | ... |
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
}
}
- God
- Pedro S Lopez - Library
- Dika Ardianta - Base
- ZTRdiamond - Continued development
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
Zanixon Wabot by ZTRdiamond is licensed under CC BY-NC 4.0