Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #7

Open
wants to merge 35 commits into
base: whatsapp
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
bb87c44
Update README.md
rasssya76 Jan 9, 2022
77ef9f8
Add files via upload
rasssya76 Jan 9, 2022
49a7d77
Add files via upload
rasssya76 Jan 9, 2022
3473a7c
Add files via upload
rasssya76 Jan 9, 2022
6dde556
Update botInfo.json
rasssya76 Jan 27, 2022
777abf6
Update botInfo.json
rasssya76 Jan 27, 2022
29d1ce0
Add files via upload
rasssya76 Jan 27, 2022
8ba8fcf
Add files via upload
rasssya76 Jan 27, 2022
9ac4f95
Add files via upload
rasssya76 Jan 27, 2022
b9da0ee
Add files via upload
rasssya76 Jan 27, 2022
d24cfe9
Add files via upload
rasssya76 Jan 27, 2022
42d0814
Add files via upload
rasssya76 Jan 27, 2022
507570a
Add files via upload
rasssya76 Jan 27, 2022
441f879
Update maker.js
rasssya76 Jan 27, 2022
50110c7
Add files via upload
rasssya76 Jan 27, 2022
75dee88
Add files via upload
rasssya76 Jan 27, 2022
9068e08
Add files via upload
rasssya76 Jan 27, 2022
ca25416
Add files via upload
rasssya76 Jan 27, 2022
6fc8cb3
Add files via upload
rasssya76 Jan 27, 2022
8fef0f5
Add files via upload
rasssya76 Jan 27, 2022
46e1d9b
Add files via upload
rasssya76 Jan 27, 2022
a00d1c3
Add files via upload
rasssya76 Jan 27, 2022
8f3c88e
Add files via upload
rasssya76 Jan 27, 2022
db8a10e
Add files via upload
rasssya76 Jan 27, 2022
e11c17f
Add files via upload
rasssya76 Jan 27, 2022
5c84e7d
Add files via upload
rasssya76 Jan 27, 2022
1ad8e19
Add files via upload
rasssya76 Jan 27, 2022
095998f
Add files via upload
rasssya76 Jan 27, 2022
6d630a8
Add files via upload
rasssya76 Jan 28, 2022
7faa194
Add files via upload
rasssya76 Jan 28, 2022
62898d2
Add files via upload
rasssya76 Jan 28, 2022
fa1a13c
Add files via upload
rasssya76 Jan 28, 2022
1c8b051
Add files via upload
rasssya76 Jan 28, 2022
6298865
Add files via upload
rasssya76 Jan 28, 2022
9bc08c5
Add files via upload
rasssya76 Jan 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ Jika ada pertanyaan atau request sesuatu, kamu bisa masukkan issue
```rb
Added Feature
- SShp
- Botstats
- Bot
```

## Installation
* [`Download ffmpeg`](https://ffmpeg.org/download.html#build-windows) and set path
* [`Download wget`](https://eternallybored.org/misc/wget/releases/) and set path
* [`Download Node JS`](https://nodejs.org/en/download/)
* [`Download Git`](https://git-scm.com/downloads)
```cmd
```cmdnama
> git clone https://github.com/Zacros-Team/ZacrosBot
> cd Zacros
> npm i -g
Expand Down
Binary file added bot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions lib/command/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ let type = command.endsWith('3') || command.endsWith('audio') || command.endsWit
let data = command.endsWith('3') || command.endsWith('audio') || command.endsWith('aud') ? {type:'document',mimetype:'audio/mpeg',filename:type.output,quoted:msg} : {type:'video',mimetype:'video/mp4',filename:type.output,quoted:msg}
let thumbnail = (await client.getBuffer(type.thumb)).buffer
client.sendMessage(msg.from,thumbnail,'imageMessage',{quoted:msg,caption:functions.parseResult(type,'Youtube Download')})
client.sendMessage(msg.from,(await client.getBuffer(type.link)).buffer,data.type+'Message',{...data,contextInfo:{externalAdReply:{title:type.judul,description:`Zacros`,mediaType:"VIDEO",thumbnail,mediaUrl:isUrl[0],thumbnailUrl:type.thumb}}})
},{query: `Masukan Link Youtube`,param:functions.needed('Link Youtube/Video')})
client.sendMessage(msg.from,(await client.getBuffer(type.link)).buffer,data.type+'Message',{...data,contextInfo:{externalAdReply:{title:type.judul,description:`BOT`,mediaType:"VIDEO",thumbnail,mediaUrl:isUrl[0],thumbnailUrl:type.thumb}}})
},{wait:true,query: `Masukan Link Youtube`,param:functions.needed('Link Youtube/Video')})

cmd.on('play',['play','playvid','playaud'],['downloader'],async(msg,{query,client,prefix}) => {
let res = await functions.ytSearch(query)
Expand All @@ -16,31 +16,31 @@ let buffer_thumb = (await client.getBuffer(data.thumbnail)).buffer
let imageMessage = (await client.prepareMessageMedia(buffer_thumb,'imageMessage',{thumbnail: Buffer.alloc(0)})).imageMessage
let buttonsMessage = {footerText:`Jika Tidak Bisa Menekan Tombol, Ketik ${prefix[0]}ytmp3/4 `+data.url,contentText:functions.parseResult(data,{title:'Youtube Play'}),buttons,imageMessage,headerType:"IMAGE"}
return client.sendMessageFromContent(msg.from,{buttonsMessage},{quoted:msg})
},{query:'Masukan Link Atau Judul Lagu \nContoh : /play https://www.youtube.com/watch?v=eVTXPUF4Oz4 \n/play Linkin Park - In The End',param: functions.needed('query')})
},{wait:true,query:'Masukan Link Atau Judul Lagu \nContoh : /play https://www.youtube.com/watch?v=eVTXPUF4Oz4 \n/play Linkin Park - In The End',param: functions.needed('query')})

cmd.on('tiktok',['tiktok'],['downloader'],async(msg,{query,client})=> {
return client.sendVideo(msg.from, botinfo.linkApi.zacros+"/downloader/tiktoknowm?link="+query)
},{query:'Masukan Link TIKTOK \nContoh : /tiktok https://www.tiktok.com/@yourrkayesss/video/7040534981671701786',param:functions.needed('link video')});
},{wait:true,query:'Masukan Link TIKTOK \nContoh : /tiktok https://www.tiktok.com/@yourrkayesss/video/7040534981671701786',param:functions.needed('link video')});

cmd.on('fbdl',['facebookdl', 'fb','facebook'],['downloader'],async(msg,{query,client})=> {
let res = await functions.axios.get(botinfo.linkApi.zacros+"/downloader/fbdl?link="+query)
let video = res.data.medias[0]
return client.sendVideo(msg.from, video.url)
},{query: 'Masukan Link FB \nContoh : /fb https://www.facebook.com/onickayessfansbase/posts/227884412849835',param:functions.needed('link')});
},{wait:true,query: 'Masukan Link FB \nContoh : /fb https://www.facebook.com/onickayessfansbase/posts/227884412849835',param:functions.needed('link')});

cmd.on('ig',['igvideo','instagram','ig'],['downloader'],async(msg,{query,client})=> {
let result = (await functions.axios.get(botinfo.linkApi.zacros+"/downloader/igdl?link="+query)).data
for (let i = 0; i < result.length; i++) {
client.sendVideo(msg.from, result)
}
},{query: 'Masukan Link IG \nContoh : /instagram https://www.instagram.com/p/CXvv2lVpaju',param:functions.needed('link video')});
},{wait:true,query: 'Masukan Link IG \nContoh : /instagram https://www.instagram.com/p/CXvv2lVpaju',param:functions.needed('link video')});

cmd.on('yts',['ytsearch'],['search','downloader'],async(msg,{query,client})=> {
let a = (await functions.ytSearch(query)).all;
let b = ``
for (let c of a) b+= functions.parseResult(c,{title:'Youtube Search',ignoreKey:['duration']})+'\n'
return client.sendText(msg.from, b.trim())
},{query:'Isi Dengan Kata Kunci \nContoh : /ytsearch Linkin Park',param:functions.needed('query')});
},{wait:true,query:'Isi Dengan Kata Kunci \nContoh : /ytsearch Linkin Park',param:functions.needed('query')});

cmd.on('soundcloud',['soundcloud'],['downloader'],async(msg,{query,client}) => {
let res = (await functions.axios.get (botinfo.linkApi.zacros+"/downloader/scdl?link="+ query)).data
Expand Down
90 changes: 46 additions & 44 deletions lib/command/maker.js
Original file line number Diff line number Diff line change
@@ -1,44 +1,46 @@
cmd.on('stickermaker', ['sticker','stiker'],['maker'], async(msg, {query,usedPref,commandNpref,command}) => {

if (msg.isMedia && !msg.type.includes('videoMessage') || msg.quotedMsg.isMedia && !msg.quotedMsg.type.includes('videoMessage')){

const getbuff = msg.quotedMsg.isMedia ? msg.quotedMsg : msg
const dlfile = await client.downloadMediaMessage(getbuff)
const baper = new Buffer.from(dlfile)
await client.sendSticker(msg.from, baper, {quoted: msg})
} else if ((msg.isMedia && msg.message.videoMessage.seconds < 11 || msg.quotedMsg.type.includes('videoMessage') && msg.quotedMsg.message.videoMessage.seconds < 11)){
const getbuff = msg.quotedMsg.isMedia ? msg.quotedMsg : msg
const dlfile = await client.downloadMediaMessage(getbuff)
const baper = new Buffer.from(dlfile)
await client.sendSticker(msg.from, baper, {quoted: msg})
}else{
client.reply(msg, `Pastikan kirim gambar/video dengan caption *${commandNpref}* atau tag gambar/video yang sudah dikirim\nNote : Durasi video maximal 10 detik`)
}
}, {wait:true, _media: true});

cmd.on('toimg',['toimg'],['maker'],async(msg,{client}) => {
client.toImage(msg.from,(await msg.quotedMsg.downloadMsg()).buffer)
},{usedPrefix:true,param:functions.needed('Tag sticker')});

cmd.on('skytext',['skytext'],['maker'],async(msg,{query,client})=> {
if (!query) return client.sendText(msg.from,`Isi Query!!\nContoh : .skytext Anu`,msg)
res = await functions.axios.get(`https://exneph-api.herokuapp.com/api/maker2?text=${query.toLowerCase().trim()}&apikey=ZYY`)
let anu = res.data.result
await client.reply({key:{fromMe:false,remoteJid:msg.from},message:{videoMessage:{viewOnce:true}},participant:'0@s.whatsapp.net'},'Loading...')
return client.sendMessage(msg.from,(await client.getBuffer(anu.results)).buffer,'imageMessage',{caption:``,quoted:msg},{thumbnail:buffer.alloc(0)})
});

cmd.on("tiktok",["glitch"],["maker"],async(msg,{query,client}) => {
let q = query.split("|");
if (!q[0]) return client.sendText(msg.from, "Masukan Teks 1!",msg);
if (!q[1]) return client.sendText(msg.from, "Masukan Teks 2!",msg);
let tod = (await functions.axios.get(botinfo.linkApi.zacros+"/photooxy/tik_tok?text="+q[0]+"&text2="+q[1]))
client.sendImage(msg.from, tod, botinfo.response.success)
},{param:functions.needed("query"),wait:true});

cmd.on("nulis",["nulis"],["maker"],async(msg,{query,client}) => {
let tod = (await functions.axios.get(botinfo.linkApi.zacros+"/other/nulis?text="+query))
client.sendImage(msg.from, tod, botinfo.response.success)
},{param:functions.needed("query"),wait:true});


cmd.on('stickermaker', ['sticker','stiker'],['maker'], async(msg, {query,usedPref,commandNpref,command}) => {

if (msg.isMedia && !msg.type.includes('videoMessage') || msg.quotedMsg.isMedia && !msg.quotedMsg.type.includes('videoMessage')){

const getbuff = msg.quotedMsg.isMedia ? msg.quotedMsg : msg
const dlfile = await client.downloadMediaMessage(getbuff)
const baper = new Buffer.from(dlfile)
await client.sendSticker(msg.from, baper, {quoted: msg})
} else if ((msg.isMedia && msg.message.videoMessage.seconds < 11 || msg.quotedMsg.type.includes('videoMessage') && msg.quotedMsg.message.videoMessage.seconds < 11)){
const getbuff = msg.quotedMsg.isMedia ? msg.quotedMsg : msg
const dlfile = await client.downloadMediaMessage(getbuff)
const baper = new Buffer.from(dlfile)
await client.sendSticker(msg.from, baper, {quoted: msg})
}else{
client.reply(msg, `Pastikan kirim gambar/video dengan caption *${commandNpref}* atau tag gambar/video yang sudah dikirim\nNote : Durasi video maximal 10 detik`)
}
}, {wait:true, _media: true});

cmd.on('toimg',['toimg'],['maker'],async(msg,{client}) => {
client.sendImage(msg.from,(await msg.quotedMsg.downloadMsg()).buffer)
},{usedPrefix:true,param:functions.needed('Tag sticker')});

cmd.on('skytext',['skytext'],['maker'],async(msg,{query,client})=> {
if (!query) return client.sendText(msg.from,`Isi Query!!\nContoh : .skytext Anu`,msg)
res = await functions.axios.get(`https://exneph-api.herokuapp.com/api/maker2?text=${query.toLowerCase().trim()}&apikey=ZYY`)
let anu = res.data.result
await client.reply({key:{fromMe:false,remoteJid:msg.from},message:{videoMessage:{viewOnce:true}},participant:'0@s.whatsapp.net'},'Loading...')
return client.sendMessage(msg.from,(await client.getBuffer(anu.results)).buffer,'imageMessage',{caption:``,quoted:msg},{thumbnail:buffer.alloc(0)})
});

cmd.on("pubg",["pubg"],["maker"],async(msg,{query,client}) => {
let q = query.split("|");
if (!q[0]) return client.sendText(msg.from, "Masukan Teks 1!",msg);
if (!q[1]) return client.sendText(msg.from, "Masukan Teks 2!",msg);
let tod = (await functions.axios.get("https://exneph-api.herokuapp.com/api/textmaker/game?text="+q[0]+"&text2="+q[1]+"&theme=pubg&apikey=ZYY")).data;
client.sendImage(msg.from, tod.result.url, botinfo.response.success)
},{param:functions.needed("query"),wait:true});

cmd.on("tiktok",["glitch","tiktokeffect"],["maker"],async(msg,{query,client}) => {
let q = query.split("|");
if (!q[0]) return client.sendText(msg.from, "Masukan Teks 1!",msg);
if (!q[1]) return client.sendText(msg.from, "Masukan Teks 2!",msg);
let tod = (await functions.axios.get("https://exneph-api.herokuapp.com/api/textmaker?text="+q[0]+"&text2="+q[1]+"&theme=glitch&apikey=ZYY")).data;
client.sendImage(msg.from, tod.result.url, botinfo.response.success)
},{param:functions.needed("query"),wait:true});

79 changes: 41 additions & 38 deletions lib/command/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,41 +43,44 @@ cmd.on('menu-cmd', ['menu','help','command','commands'], [], async (msg, {
sections
}
})
}
for (let a of cmd._tags[type]) {
if (!a.enable) continue
let prek = a.usedPrefix ? prefix[0] : ''
let param = a.param? a.param : ''
lama = lama.concat(a.command.map(value => prek + value+ ` ${param}`))
}

let hasil = `${head}${line.repeat(4)}${list} *${type[0].toUpperCase()+type.slice(1).toLowerCase()} Menu*\n`
for (let b of lama) {
hasil += list + ` ${b.toLowerCase()}\n`
}

hasil = hasil.trim()+`\n${head}${line.repeat(2)}${list}`

buttons = [{
buttonId: `.info`,
buttonText: {
displayText: 'Information'
},
type: 1
},{
buttonId: prefix[0]+`snk`,
buttonText: {
displayText: 'Syarat Dan Ketentuan'
},
type: 1
}]
let locationMessage = {jpegThumbnail:logo.buffer}
used_logo = (used_logo+1)%3
let buttonsMessage = {
contentText: hasil,
footerText: botinfo.footerText + " | " + Object.keys(userDb).length + " User Registered",
buttons,
headerType: 1
}
return client.sendMessageFromContent(msg.from,{buttonsMessage})
})
}
for (let a of cmd._tags[type]) {
if (!a.enable) continue
let prek = a.usedPrefix ? prefix[0] : ''
let param = a.param? a.param : ''
lama = lama.concat(a.command.map(value => prek + value+ ` ${param}`))
}

let hasil = `${head}${line.repeat(4)}${list} *${type[0].toUpperCase()+type.slice(1).toLowerCase()} Menu*\n`
for (let b of lama) {
hasil += list + ` ${b.toLowerCase()}\n`
}

hasil = hasil.trim()+`\n${head}${line.repeat(2)}${list}`

buttons = [{
buttonId: `.info`,
buttonText: {
displayText: 'Information'
},
type: 1
},{
buttonId: prefix[0]+`snk`,
buttonText: {
displayText: 'Syarat Dan Ketentuan'
},
type: 1
}]
let locationMessage = {jpegThumbnail:logo.buffer}
used_logo = (used_logo+1)%3
let buttonsMessage = {
contentText: hasil,
footerText: botinfo.footerText + " | " + Object.keys(userDb).length + " Pengguna",
buttons,
headerType: 1
}
const fs = require("fs")
thumbnail = fs.readFileSync('./bot.jpg')
const ftroli ={key: {fromMe: false,"participant":"0@s.whatsapp.net", "remoteJid": "6289523258649-1604595598@g.us" }, "message": {orderMessage: {itemCount: 2021,status: 200, thumbnail: thumbnail, surface: 200, message: `HAI KAK ${msg.sender.name}!\nR-BOT By Rama`, orderTitle: '?', sellerJid: '0@s.whatsapp.net'}},sendEphemeral: true}
return client.sendMessageFromContent(msg.from,{buttonsMessage},{quoted: ftroli})
})
35 changes: 20 additions & 15 deletions lib/command/other.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
const fs = require("fs")
thumbnail = fs.readFileSync('./bot.jpg')
const ftroli ={key: {fromMe: false,"participant":"0@s.whatsapp.net", "remoteJid": "6289523258649-1604595598@g.us" }, "message": {orderMessage: {itemCount: 2021,status: 200, thumbnail: thumbnail, surface: 200, message: `HAI KAK ${msg.sender.name}!\nR-BOT By Rama`, orderTitle: '?', sellerJid: '0@s.whatsapp.net'}},sendEphemeral: true}

cmd.on('example3',['speed','response'],['other'],async(req, res) => {
timestamp = functions.Speed();
latensi = functions.Speed(); - timestamp
Expand Down Expand Up @@ -31,7 +35,7 @@ let buttonsMessage = {
buttons,
headerType:1
}
return client.sendMessageFromContent(msg.from, {buttonsMessage},{quoted:msg})
return client.sendMessageFromContent(msg.from, {buttonsMessage},{quoted:ftroli})
});

cmd.on("ownerr",["ownerbot","owner"],["other"],async(msg,res) => {
Expand Down Expand Up @@ -60,7 +64,7 @@ cmd.on('esenka',['snk'],["other"],async(msg, res) => {
• pembakaran hutan / penggundulan hutan
• ujaran kebencian atau diskriminasi berdasarkan usia, jenis kelamin, identitas gender, ras, seksualitas, agama, kebangsaan

Source Code BOT : https://github.com/Zacros-Team/ZacrosBot
Source Code BOT : https://github.com/rasssya76/ZacrosBot
Base : https://github.com/Zobin33/Anu-wabot

Baileys WhatsApp library: https://github.com/adiwajshing/Baileys
Expand All @@ -73,17 +77,17 @@ cmd.on("donate",["donasi","donate"],["other"],async(msg, res) => {
dmsg = `_*Donasi ${botinfo.botname}*_

*- For Owner*
Shoopepay : 083153448697
Pulsa : 083153448697
Shoopepay : 081515589573
Pulsa : 081515589573

*- For Contributor*
Dana : 088231715470 (Manxtodd)
Gopay : 088231715470 (Manxtodd)
Paypal : http://paypal.me/Manxtodd (Manxtodd)
Trakteer : http://trakteer.id/Manxtodd (Manxtodd)
Dana : 081515589573 (Unknown)
Gopay : 081515589573 (Uknowm)
Paypal : http://paypal.me/F (Uknowm)
Trakteer : http://trakteer.id/F (Uknowm)

Gopay : 081515019284 (StevenTs)
Dana : 081515019284 (StevenTs)`
Gopay : 081515589573 (Unknown)
Dana : 081515589573 (Unknown)`
return await client.sendText(msg.from, dmsg, msg);
});

Expand All @@ -94,7 +98,7 @@ cmd.on("lapor",["report","laporkan"],["other"],async(msg, {query,client}) => {
},{query:"Mau Lapor Apa Kak?",param:functions.needed("query")});

cmd.on("tag",["mention","tag"],["other"],async(msg, {query, client}) => {
return await client.sendMessage(msg.from, query+" tagged!", "conversation",{contextInfo:{mentionedJid: functions.parseMention("@"+query)},quoted:msg});
return await client.sendMessage(msg.from, query+" tagged!", "conversation",{contextInfo:{mentionedJid: functions.parseMention("@"+query)},quoted:ftroli});
},{query:"Masukan Nomor!\nEx : .mention @0",param:functions.needed("number")});

cmd.on('runtime',['runtime'],['other'],(msg,{client,prefix}) => {
Expand All @@ -110,15 +114,15 @@ for (let b of a.command) total++
}
inmsg = `*Hai ${msg.sender.name} berikut adalah informasi bot*

Bot ini dibuat oleh Zacros team
Bot Name : Zacros
Bot ini dibuat oleh RamaGans
Bot Name : R-BOT
Library : Baileys
Language : JavaScript
Total Command : ${total}
Total User : ${Object.keys(userDb).length}
Runtime : ${data.day} Day ${data.hours} Hours ${data.minutes} Minutes ${data.seconds} Second

Group : https://chat.whatsapp.com/Hg23DkA2GKZ8DDPgvKuTsr
Group : https://chat.whatsapp.com/KTm4p53s6457qcV5aDOAPI
Rest APi : ${botinfo.linkApi.zacros}

Special thanks to :
Expand All @@ -128,6 +132,7 @@ Special thanks to :
• StevenTS
• Zenn
• Lindow
• Rama
• FazOne
• Zacros Team
• Anu Team`
Expand All @@ -138,7 +143,7 @@ let btn = {
buttons,
headerType:1
}
return client.sendMessageFromContent(msg.from, {buttonsMessage:btn});
return client.sendMessageFromContent(msg.from, {buttonsMessage:btn},{quoted:ftroli});
});

cmd.on('delete',['del','delete'],['other'],async(msg,{client}) => {
Expand Down
Loading