Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Update index.js #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const start = async (client = new Client()) => {
client.onAddedToGroup(((chat) => {
let totalMem = chat.groupMetadata.participants.length
if (totalMem < 30) {
client.sendText(chat.id, `Cih member nya cuma ${totalMem}, Kalo mau invite bot, minimal jumlah mem ada 30`).then(() => client.leaveGroup(chat.id)).then(() => client.deleteChat(chat.id))
client.sendText(chat.id, `Os membros são apenas ${totalMem}, se você quiser convidar o bot, o número mínimo de membros é 30`).then(() => client.leaveGroup(chat.id)).then(() => client.deleteChat(chat.id))
} else {
client.sendText(chat.groupMetadata.id, `Halo warga grup *${chat.contact.name}* terimakasih sudah menginvite bot ini, untuk melihat menu silahkan kirim *!help*`)
client.sendText(chat.groupMetadata.id, `Olá membros do grupo * $ {chat.contact.name} obrigado por convidar este bot, para ver o menu envie /mv`)
}
}))

Expand All @@ -42,7 +42,7 @@ const start = async (client = new Client()) => {

// listening on Incoming Call
client.onIncomingCall(( async (call) => {
await client.sendText(call.peerJid, 'Maaf, saya tidak bisa menerima panggilan. nelfon = block!')
await client.sendText(call.peerJid, 'Não consigo receber chamadas. Ligou novamente= bock!')
.then(() => client.contactBlock(call.peerJid))
}))
}
Expand Down