Nurutomo / wabot-aq

WhatsApp Bot
GNU General Public License v3.0
686 stars 1.38k forks source link

fitur admin gk jalan #21

Closed liteblog closed 3 years ago

liteblog commented 3 years ago

min fitur admin kaya .add .kick .promote .demote gk jalan, tapi kalo command buat onwer jalan .oadd dll.

Nurutomo commented 3 years ago

Memang aku nonaktifkan

On Tue, Jan 19, 2021, 12:50 Liteblog Network notifications@github.com wrote:

min fitur admin kaya .add .kick .promote .demote gk jalan, tapi kalo command buat onwer jalan .oadd dll.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Nurutomo/wabot-aq/issues/21, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOBD65F5WDAWDMSACVAPSLS2UMRRANCNFSM4WIICZ4A .

ariffb25 commented 3 years ago

aktifinnya gmn min?

Nurutomo commented 3 years ago

cari teks

if (['admin'].includes(

hapus teks admin untuk aktifin

ariffb25 commented 3 years ago

cari teks

if (['admin'].includes(

hapus teks admin untuk aktifin

let handler = async (m, { conn, text }) => {
  let users = text.split`,`.map(v => v.replace(/[^0-9]/g, '') + '@s.whatsapp.net').filter(v => v.length > 20)
  await conn.groupAdd(m.chat, users)
}
handler.help = ['add', '+'].map(v => v + ' nomor,nomor')
handler.tags = ['admin']
handler.command = /^(add|\+)$/i
handler.owner = false
handler.mods = false
handler.premium = false
handler.group = true
handler.private = false

handler.admin = true
handler.botAdmin = true

handler.fail = null
handler.limit = true

module.exports = handler

dari code add.js ngga ada teks if (['admin'].includes( , teks itu ada di file mana? di main.js jg ngga ada uhmm

Nurutomo commented 3 years ago

Di main.js

ariffb25 commented 3 years ago

image

yang ini kan ya ada di line 120, oke ku coba dulu, terimakasih @Nurutomo