GithubHelp home page GithubHelp logo

wan2312 / milkita Goto Github PK

View Code? Open in Web Editor NEW

This project forked from findme-19/milkita

0.0 0.0 0.0 475 KB

Bot Whatsapp Milkita POWERED BY https://xzn.wtf

Home Page: https://xzn.wtf

JavaScript 99.56% CSS 0.01% Nix 0.06% HTML 0.29% Dockerfile 0.09% Procfile 0.01%

milkita's Introduction

Milkita Bot Powered By xzn.wtf


RequirementsInstallation Official Group BotDonate


Milkita Bot whatsapp

Milkita Bot whatsapp using a Baileys library. Jika kamu menemukan semacam bug, harap untuk memberitahu saya di group whatsapp


Information

This Bot is Powered by xzn API

Get Apikey On whatsapp


Requirements

Instalasi


RUN ON REPLIT

  1. Kunjungi web ini
  2. Login atau register
  3. Tekan Create Repl
  4. Tekan import for github
  5. Cari Repo ini atau ketikkan findme-19/milkita
  6. Language Cari/Ketik nix Bash jangan nodejs
  7. Tekan Import from Github
  8. Edit config.js ganti nomer owner dengan nomermu atau edit yang lainnya
  9. Geser ke Kanan cari tulisan Shell lalu klik
  10. Ketikkan npm install untuk menginstall module
  11. Tunggu hingga proses install module selesai
  12. Jalankan Bot dengan ketikkan ini
node . --server

FOR TERMUX USER

  1. Type mentioned below given commands one by one in Termux.
$ pkg upgrade && pkg update && pkg install git nodejs ffmpeg imagemagick nano bash mc -y
$ git clone https://github.com/findme-19/milkita
$ cd milkita
$ npm install -g [email protected] && npm install
$ node .
  1. Wait for bot starting...
  2. Scan QR code from 2nd device. (Go to whatsapp > Linked Devices > Join Multi Device Beta > Click on link device)
  3. Now your bot is ready to rock n roll.

On Termux With Ubuntu

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 & milkita ]

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/findme-19/milkita
cd milkita
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/findme-19/milkita
cd milkita
npm install
npm update

Run

node .

Arguments node . [--options]

--use_phone

Activate bot using phone number (no scan qr)

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


Stop the Bot

> ctrl + c

Edit file

after running it you need to scan the qr

Donate

Official Group


How To Add new Feature

var handler = async (m, {
	command,
	args,
	text,
	usedPrefix
}) => {
 // taruh di sini kodemu
}

handler.command = ['perintah'] // add di sini command nya
handler.help = ['perintah'] // menampilkan command ini di menu
handler.tags = ['main'] // menampilkan di menu di kategori tag main
handler.group = true // isi true untuk command yang tidak bisa di akses di private chat
handler.admin = true // isi true jika command hanya bisa di akses admin group
handler.botAdmin = true // bisa di akses jika bot termasuk admin group (true)
handler.limit = 1 // 1 limit akan di pakai
handler.level = 12 // dapat di akses jika user sudah level 12
handler.owner = true // hanya dapat di akses owner
handler.disabled = true // tidak dapat di akses siapapun
handler.premium = true // hanya dapat di akses user premium
module.exports = handler //atau export default handler

How To Customise Message Display

Send Message

conn.reply(m.chat, 'text', m)
//without reply message
conn.reply(m.chat, 'text', null) // hanya perlu ubah "m" ke null, bisa di terapkan di conn.sendFile

Send Message With Tag

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

// or

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

// use thumbnail & tag

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

conn.reply(m.chat, 'anu @628111111111', 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 @628111111111', 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 @628111111111', m, null, {
mentions: ['[email protected]']
})

//use thumbnail
conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption @628111111111', 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

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

React Message

m.react('🤑')

Thanks To

Allah SWT

Nurutomo BochilGaming XZNsenpai

Contributor

XZNsenpai


milkita's People

Contributors

findme-19 avatar xznsenpai 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.