Code Monkey home page Code Monkey logo

fakepep121 / ud-md-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from umar719/ud-md

0.0 0.0 0.0 4.04 MB

π‘Ίπ’Šπ’Žπ’‘π’π’† 𝑾𝒉𝒂𝒕𝒔𝒂𝒑𝒑 𝑩𝒐𝒕 π‘΄π’–π’π’•π’Š-π’…π’†π’—π’Šπ’„π’† 𝑫𝒐𝒏'𝒕 π’‡π’π’“π’ˆπ’π’• 𝒕𝒐 π’ˆπ’Šπ’—π’† 𝒔𝒕𝒂𝒓 π’Šπ’‡ π’šπ’π’– π’„π’π’‘π’š 𝒂𝒏 π’‡π’–π’π’„π’•π’Šπ’π’ 𝒐𝒇 𝒂𝒏 π’‡π’Šπ’π’†. π‘»π’‰π’‚π’π’Œπ’” 𝑻𝒐 𝑴𝒆 😬

License: GNU General Public License v3.0

JavaScript 86.78% Ruby 0.01% Python 0.01% C 0.04% PHP 0.02% D 0.03% Verilog 0.01% Go 0.01% Haxe 12.62% C# 0.06% Dart 0.02% CSS 0.01% Nix 0.10% Hack 0.01% HTML 0.23% Dockerfile 0.06% EJS 0.01% Procfile 0.01%

ud-md-1's Introduction

Ud_Md By Umar Rehman

Typing SVG

HOW TO DEPLOY Watch Bot Tutorial

WATCH THE TUTORIAL VIDEO CAREFULLY TO DEPLOY THE BOT OTHERWISE CHANCES TO GET ERROR

Click Here For Tutorial Wait Video Soon InshaAllah



Setup

Deploy on Replit Simple Method

  1. Click To 🍫🀍 FORK

  2. Click 🍫🀍 Replit And Create A Replit Account

  3. Click 🍫🀍 Generate Qr 2nd Generate Qr Code Then Scan Qr Through Whatsapp Linked Devices Option in Your WhatsApp.

  4. Inter Command For Qr Generating node . npm update node .

  5. If You don't have a account in Up-Timmer Bot Click, Create A Account For This will make the bot work all the time.

    WhatsApp

You can also recode this bot, it's easy for newbie in code/whatsapp bot, If you have problem chat me in Click Here or this one NOTE! if you chat to me impolitely, then I won't answer it, get used to greeting first :)

γ€ŒπŸ§§γ€ Ζ‘α΄ΚŸΚŸα΄α΄‘ Mᴇ Ζ Ι΄

SIMPLE MD & NOWA BOT

Thanks To:

All member of WhatsAppCode team

Special Thanks to

UMAR

For help me create/fix this bot

Open member for discussion group Come here WhatsApp Group

READ README FIRST BEFORE USE THIS BOT!


πŸ“‘ List Of This Readme

Name LINK
TITTLE here
ESM BOT here
PRIVIEW here
NOTE here
TERMUX INSTALATION here
TERMUX W/ UBUNTU here
WINDOWS INSTALATION here
ARGUMENTS OF RUNNING BOT here
FAQ here
CONTRIBUTE!! here
THATS TO here

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 :)

BASE BY UMAR


γ€Œ ENGLISH 」

You can also recode this bot, it's easy for newbie in code/whatsapp bot, If you have problem chat me in Click Here or this one NOTE! if you chat to me impolitely, then I won't answer it, get used to greeting first :)

Deploy to Heroku

Deploy

Heroku Buildpack

BuildPack LINK
FFMPEG here
IMAGEMAGICK here

FOR TERMUX USER

  1. Type mentioned below given commands one by one in Termux.
$ pkg upgrade && pkg update
$ pkg install git -y
$ pkg install nodejs -y
$ pkg install ffmpeg -y
$ pkg install imagemagick -y
$ git clone https://github.com/umar404/ud-md
$ cd ud-md
$ npm i 

If error try using yarn instead of npm, see here 2. Wait for bot starting... 3. Scan QR code from 2nd device. (Go to whatsapp > Linked Devices > Join Multi Device Beta > Click on link device) 4. Now your bot is ready to rock n roll.

If npm install failed, try using yarn instead of npm

$ pkg install yarn -y
$ yarn install

INSTALL ON TERMUX WITH UBUNTU

[ INSTALLING UBUNTU ]

apt update && apt full-upgrade
apt install wget curl git proot-distro
proot-distro install ubuntu
echo "proot-distro login ubuntu" > $PREFIX/bin/ubuntu
ubuntu

[ INSTALLING REQUIRED PACKAGES ]

ubuntu
apt update && apt full-upgrade
apt install wget curl git ffmpeg imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev dbus-x11 ffmpeg2theora ffmpegfs ffmpegthumbnailer ffmpegthumbnailer-dbg ffmpegthumbs libavcodec-dev libavcodec-extra libavcodec-extra58 libavdevice-dev libavdevice58 libavfilter-dev libavfilter-extra libavfilter-extra7 libavformat-dev libavformat58 libavifile-0.7-bin libavifile-0.7-common libavifile-0.7c2 libavresample-dev libavresample4 libavutil-dev libavutil56 libpostproc-dev libpostproc55 graphicsmagick graphicsmagick-dbg graphicsmagick-imagemagick-compat graphicsmagick-libmagick-dev-compat groff imagemagick-6.q16hdri imagemagick-common libchart-gnuplot-perl libgraphics-magick-perl libgraphicsmagick++-q16-12 libgraphicsmagick++1-dev

[ INSTALLING NODEJS ]

ubuntu
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
apt install -y nodejs gcc g++ make
git clone https://github.com/umar404/ud-md
cd ud-md
npm install
npm update

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/umar404/ud-md
cd ud-md
npm install
npm update

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

--self

Activate self mode (Ignores other)

--pconly

If that chat not from private bot, bot will ignore

--gconly

If that chat not from group, bot will ignore

--nowa

Register & Unregister Numbers Searching

--prefix <prefixes>

  • prefixes are seperated by each character Set prefix

--server

Used for heroku or scan through website

--restrict

Enables restricted plugins (which can lead your number to be banned if used too often)

  • Group Administration add, kick

--img

Enable image inspector through terminal

--autoread

If enabled, all incoming messages will be marked as read

--autocleartmp

If enabled, *tmp folder contain files will be auto delete

--nyimak

No bot, just print received messages and add users to database

--test

Development Testing Mode

--db

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


FAQ

  • How to send button image?
// Syntax
conn.sendButton(
      jid, // jid of the user to send the message to
      text, // text to send
      foooter, // footer to send
      buffer, // buffer to send (optional), if you want to send button image, location, etc
      buttons, // buttons to send, example [['text1', 'id1'], ['text2', 'id2']]
      quoted, // quoted message to send (optional)
      options // options to send, example { asLocation: true }
)

// example 
conn.sendButton(m.chat, 'Hello world!', 'Re-', null, [
      ['Hello', 'hello'], ['Bye', 'bye']
])
// example button location
conn.sendButton(m.chat, 'Hello world!', 'Ud-', 'https://github.com/umar404', 
      [['Hello', 'hello'], ['Bye', 'bye']], 
      null, { asLocation: true }
)
  • Why my plugins not working in this multi-device?

Please cek syntax error on your plugins. and maybe your script still using CJS This multi-device script use ESM and CJS (legacy code) not support yet. Learn more about ESM

  • How to delete session?

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

  • Why i can't scan qr code?

if your error like this (node:7016) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be of type string or an instance of Buffer, TypedArray, DataView, or KeyObject. Received undefined you can use multi-device branch

  • How to change owner number?

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

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

First argument on array is number like 923165123719, 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 :)

ud-md-1's People

Contributors

umar719 avatar

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.