Giter VIP home page Giter VIP logo

xxirfanx / zoromd Goto Github PK

View Code? Open in Web Editor NEW
58.0 4.0 166.0 34.91 MB

๐‘บ๐’Š๐’Ž๐’‘๐’๐’† ๐‘พ๐’‰๐’‚๐’•๐’”๐’‚๐’‘๐’‘ ๐‘ฉ๐’๐’• ๐‘ด๐’–๐’๐’•๐’Š-๐’…๐’†๐’—๐’Š๐’„๐’† ๐‘ซ๐’๐’'๐’• ๐’‡๐’๐’“๐’ˆ๐’๐’• ๐’•๐’ ๐’ˆ๐’Š๐’—๐’† ๐’”๐’•๐’‚๐’“ ๐’Š๐’‡ ๐’š๐’๐’– ๐’„๐’๐’‘๐’š ๐’‚๐’ ๐’‡๐’–๐’๐’„๐’•๐’Š๐’๐’ ๐’๐’‡ ๐’‚๐’ ๐’‡๐’Š๐’๐’†. ๐‘ป๐’‰๐’‚๐’๐’Œ๐’”

License: GNU General Public License v3.0

JavaScript 99.86% Nix 0.05% HTML 0.01% Dockerfile 0.07% Procfile 0.01%
whatsapp-bot baileys-lib baileys-md multi-device nodejs replit-hosting whatsapp-bot-md whatsapp-js baileys-bot

zoromd's Introduction

zoro Bot Powered By lua

  • If you facing some issue, just open Issues on github page

a little about this bot

  • โœ”๏ธ | Simple
  • โœ”๏ธ | No Button
  • โœ”๏ธ | Multi Device
  • โœ”๏ธ | Plugins

NOTE: THIS BOT IS ESM BOT

I opened discussiond for asking any problem or new feature, if i agree with that i will invite you in my repo/pull request your idea in this source code :)


Installation

Deploy to heroku

Fork the repo

Fork repo

Deploy to Replit

Run on Repl.it

Language Search/Type nix Bash Don't nodejs

add forget uptimerobot click

RUN ON REPLIT

  1. Visit the web this
  2. Login or register
  3. Press Create Repl
  4. Press import for github
  5. Search for this Repo or type in xxirfanx/zoromd
  6. Language Search/Type nix Bash Don't nodejs
  7. Press Import from Github
  8. Edit config.js replace the owner number with another number or edit
  9. Swipe Right from the post Shell then click
  10. type npm install to install modules
  11. Wait until the module install process is complete
  12. Run the Bot by typing this
  13. add forget uptimerobot click
node . --server

FOR WINDOWS/VPS/RDP USER

  • Download And Install Git Click Here
  • Download And Install NodeJS Click Here
  • Download And Install FFmpeg Click Here (Don't Forget Add FFmpeg to PATH enviroment variables)
  • Download And Install ImageMagick Click Here
git clone https://github.com/xxirfanx/zoromd
cd zoromd
npm install

Run

node .

Arguments node . [--options] [<session name>]

--self

Activate self mode (Ignores other)

--server

Used for heroku or scan through website

--db

pass mongodb url or cloud url to connect to database, by the default it will connect to database.json

--autoread

If enabled, all incoming messages will be marked as read

--test

Development Testing Mode


How To Add new Feature

let handler = async (m, {
	command,
	args,
	text,
	usedPrefix
}) => {
 // put here your code
}

handler.command = ['order'] // add here the command
handler.help = ['order'] // displays this command in the menu
handler.tags = ['main'] // displays in the menu in the tag category main
handler.group = true // Fill in true for commands that cannot be accessed in private chat
handler.admin = true // Fill in true if the command can only be accessed by group admins
handler.botAdmin = true // can be accessed if the bot is included admin group (true)
handler.limit = 1 // 1 limits will be used
handler.owner = true // only accessible owner
handler.disabled = true // can't be accessed by anyone
handler.premium = true // only accessible user premium
export default handler // or module.exports = handler

How To Customise Message Display

Send Message

conn.reply(m.chat, 'text', m)
//without reply message
conn.reply(m.chat, 'text', null) // just need to change "m" to null, can be applied in conn.sendFile

Send Message With Tag

conn.reply(m.chat, 'text @919911111111', m, {
	mentions: ['[email protected]']
})

// or

m.reply('anu @919911111111', null, {
	mentions: ['[email protected]']
})

// use thumbnail & tag

m.reply('anu @919911111111', null, {
	contextInfo: {
		mentionedJid: ['[email protected]'],
		externalAdReply: await thumb(buffer_image, ['title', 'body'], [true, true])
	}
})

conn.reply(m.chat, 'anu @919911111111', m, {
	contextInfo: {
		mentionedJid: ['[email protected]'],
		externalAdReply: await thumb(buffer_image, ['title', 'body'], [true, true])
	}
})

Simple Send Message

m.reply('text')

Send All Type File

conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption', m)

// mode document
conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption', m, null, {
	asDocument: true
})

// mode document and thumbnail
conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption', m, null, {
	asDocument: true,
	contextInfo: {
		externalAdReply: await thumb(buffer_image, ['title', 'body'], [true, true])
	}
})

// mode document and thumbnail and tag
conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption @919911111111', m, null, {
	asDocument: true,
	contextInfo: {
		mentionedJid: ['[email protected]'],
		externalAdReply: await thumb(buffer_image, ['title', 'body'], [true, true])
	}
})

Send All Type File With Caption Tag

conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption @919911111111', m, null, {
mentions: ['[email protected]']
})

//use thumbnail
conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption @919911111111', m, null, {
	contextInfo: {
		mentionedJid: ['[email protected]'],
		externalAdReply: await thumb(buffer_image, ['title', 'body'], [true, true])
	}
})

Edit Message

var a = await m.reply('text')
conn.editMessage(m.chat, a.key, 'text', m)

// or

let a = await conn.reply(m.chat, 'text', m)
conn.editMessage(m.chat, a.key, 'text', m)

React Message

m.react('๐Ÿค‘')

๐Ÿ“ฎ S&K

  1. Not For Sale
  2. Don't forget give star this repo
  3. Follow Github
  4. Don't use this repository wrong!
  5. If you have problem chat me in owner number

  • How to delete session?

You can delete folder sessions or run command rm -rf sessions

  • How to change owner number?

You can change in config.js, on global.owner. make sure you use correct syntax.

global.owner = [
  ['919911111111', 'Name', true]
]

and

global.nomorown = '919911111111'

First argument on array is number like 919911111111, second argument is name like Name (if this argument pass, if using owner command, this number will send as owner), third argument is developer like true (if this argument pass, if there have plugins error (not syntax error) the error will send to developer)


want to contribute?

  1. fork this repository
  2. Change/edit/create what you want. for example you can add features, fix bug, etc
  3. test before making a pull req!!
  4. make a pull req!
  5. if your pull req is already in acc/merge, you can delete your branch or you can create pull req again :)

๐€๐ฎ๐ญ๐ก๐จ๐ซ : lua ser ofc
๐–๐š : +91 6235 050 956
๐›๐š๐ฌ๐ž : Narutomo and BochilGaming and Rlxfly
๐Œ๐ฒ ๐๐ซ๐จ๐ฃ๐ž๐œ๐ญ : 7 may 2023

zoromd's People

Contributors

dependabot[bot] avatar xxirfanx 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

Watchers

 avatar  avatar  avatar  avatar

zoromd's Issues

Open Request [REQ]

EN:
Feature request is now open, you can only request once per-user. I won't accept the request if it's against WhatsApp privacy either directly or indirectly. I will work on it when I have a time, because I'm still a student. Thanks for your understanding~

108131935-a2bbc080-70e4-11eb-877e-80db0a7520e3
Thanks you

Scanner

I'm unable to scan due 5o qr not working

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.