text: /*
  Tambahin nama author lah
  * Author nya Radya and Nazwa
  * Tambahin ya zhayank
  * Jan numpang nama doank
  * Baca readme nya biar gk tanya tanya
  */
  const {
      WAConnection,
      MessageType,
      Presence,
      Mimetype,
      GroupSettingChange
  } = require('@adiwajshing/baileys')
  /******BEGIN OF FILE INPUT******/
  const { color, bgcolor } = require('./lib/color')
  const { bahasa } = require('./src/bahasa')
  const { negara } = require('./src/kodenegara')
  const { virtex } = require('./src/virtex')
  const { wait, simih, getBuffer, h2k, generateMessageID, getGroupAdmins, getRandom, banner, start, info, success, close } = require('./lib/functions')
  const { fetchJson } = require('./lib/fetcher')
  const { recognize } = require('./lib/ocr')
  /******END OF FILE INPUT******/
  
  /******BEGIN OF NPM PACKAGE INPUT******/
  const fs = require('fs')
  const moment = require('moment-timezone')
  const { exec } = require('child_process')
  const kagApi = require('@kagchi/kag-api')
  const fetch = require('node-fetch')
  const tiktod = require('tiktok-scraper')
  const ffmpeg = require('fluent-ffmpeg')
  const { removeBackgroundFromImageFile } = require('remove.bg')
  const imgbb = require('imgbb-uploader')
  const lolis = require('lolis.life')
  const loli = new lolis()
  const speed = require('performance-now')
  /******END OF NPM PACKAGE INPUT******/
  
  /******BEGIN OF JSON INPUT******/
  const welkom = JSON.parse(fs.readFileSync('./src/welkom.json'))
  const nsfw = JSON.parse(fs.readFileSync('./src/nsfw.json'))
  const samih = JSON.parse(fs.readFileSync('./src/simi.json'))
  const _leveling = JSON.parse(fs.readFileSync('./src/leveling.json'))
  const _level = JSON.parse(fs.readFileSync('./src/level.json'))
  /******END OF JSON INPUT******/
  
  /******LOAD OF MENU INPUT******/
  const { help } = require('./src/help')
  const { menuadmin } = require('./src/menuadmin')
  const { nsfwmenu } = require('./src/nsfwmenu')
  //const { makermenu } = require('./database/menu/makermenu')
  //const { mediamenu } = require('./database/menu/mediamenu')
  //const { educationmenu } = require('./database/menu/educationmenu')
  //const { downloadermenu } = require('./database/menu/downloadermenu')
  //const { mememenu } = require('./database/menu/mememenu')
  //const { kerangmenu } = require('./database/menu/kerangmenu')
  //const { groupmenu } = require('./database/menu/groupmenu')
  //const { soundmenu } = require('./database/menu/soundmenu')
  //const { musicmenu } = require('./database/menu/musicmenu')
  //const { islammenu } = require('./database/menu/islammenu')
  //const { stalkmenu } = require('./database/menu/stalkmenu')
  //const { wibumenu } = require('./database/menu/wibumenu')
  //const { funmenu } = require('./database/menu/funmenu')
  //const { informationmenu } = require('./database/menu/informationmenu')
  //const { 18+menu } require('./database/menu/18+menu')
  //const { ownermenu } require('./database/menu/ownermenu')
  //const { othermenu } require('./database/menu/othermenu')
  /******END OF MENU INPUT******/
  //const daftar = JSON.parse(fs.readFileSync('./src/daftar.json'))
  const vcard = 'BEGIN:VCARD\n' // metadata of the contact card
              + 'VERSION:3.0\n' 
              + 'FN:painzinho\n' // full name
              + 'ORG:owner bot;\n' // the organization of the contact
              + 'TEL;type=CELL;type=VOICE;waid=12542123926:+55 (11) 94954-5217\n' // WhatsApp ID + phone number
              + 'END:VCARD'
  prefix = '*'
  blocked = []
  
  /******BEGIN OF FUNCTIONS INPUT******/
  const getLevelingXp = (userId) => {
  	let position = false
  	Object.keys(_level).forEach((i) => {
  		if (_level[i].jid === userId) {
  			position = i
  		}
  	})
  	if (position !== false) {
  		return _level[position].xp
  	}
  }
  
  const getLevelingLevel = (userId) => {
  	let position = false
  	Object.keys(_level).forEach((i) => {
  		if (_level[i].jid === userId) {
  			position = i
  		}
  	})
  	if (position !== false) {
  		return _level[position].level
  	}
  }
  
  const getLevelingId = (userId) => {
  	let position = false
  	Object.keys(_level).forEach((i) => {
  		if (_level[i].jid === userId) {
  			position = i
  		}
  	})
  	if (position !== false) {
  		return _level[position].jid
  	}
  }
  
  const addLevelingXp = (userId, amount) => {
  	let position = false
  	Object.keys(_level).forEach((i) => {
  		if (_level[i].jid === userId) {
  			position = i
  		}
  	})
  	if (position !== false) {
  		_level[position].xp += amount
  		fs.writeFileSync('./src/level.json', JSON.stringify(_level))
  	}
  }
  
  const addLevelingLevel = (userId, amount) => {
  	let position = false
  	Object.keys(_level).forEach((i) => {
  		if (_level[i].jid === userId) {
  			position = i
  		}
  	})
  	if (position !== false) {
  		_level[position].level += amount
  		fs.writeFileSync('./src/level.json', JSON.stringify(_level))
  	}
  }
  
  const addLevelingId = (userId) => {
  	const obj = {jid: userId, xp: 1, level: 1}
  	_level.push(obj)
  	fs.writeFileSync('./src/level.json', JSON.stringify(_level))
  }
  
  function kyun(seconds){
    function pad(s){
      return (s < 10 ? '0' : '') + s;
    }
    var hours = Math.floor(seconds / (60*60));
    var minutes = Math.floor(seconds % (60*60) / 60);
    var seconds = Math.floor(seconds % 60);
  
    //return pad(hours) + ':' + pad(minutes) + ':' + pad(seconds)
    return `${pad(hours)} Jam ${pad(minutes)} Menit ${pad(seconds)} Detik`
  }
  
  async function starts() {
  	const client = new WAConnection()
  	client.logger.level = 'warn'
  	console.log(banner.string)
  	client.on('qr', () => {
  		console.log(color('[','white'), color('!','red'), color(']','white'), color(' Scan the qr code above'))
  	})
  
  	fs.existsSync('./Nazwa.json') && client.loadAuthInfo('./Nazwa.json')
  	client.on('connecting', () => {
  		start('2', 'Connecting...')
  	})
  	client.on('open', () => {
  		success('2', 'Connected')
  	})
  	await client.connect({timeoutMs: 30*1000})
          fs.writeFileSync('./Nazwa.json', JSON.stringify(client.base64EncodedAuthInfo(), null, '\t'))
  
  	client.on('group-participants-update', async (anu) => {
  		if (!welkom.includes(anu.jid)) return
  		try {
  			const mdata = await client.groupMetadata(anu.jid)
  			console.log(anu)
  			if (anu.action == 'add') {
  				num = anu.participants[0]
  				try {
  					ppimg = await client.getProfilePicture(`${anu.participants[0].split('@')[0]}@c.us`)
  				} catch {
  					ppimg = 'https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg'
  				}
  				teks = `Oiin @${num.split('@')[0]}\nBem vindor ao *${mdata.subject}*`
  				let buff = await getBuffer(ppimg)
  				client.sendMessage(mdata.id, buff, MessageType.image, {caption: teks, contextInfo: {"mentionedJid": [num]}})
  			} else if (anu.action == 'remove') {
  				num = anu.participants[0]
  				try {
  					ppimg = await client.getProfilePicture(`${num.split('@')[0]}@c.us`)
  				} catch {
  					ppimg = 'https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg'
  				}
  				teks = `Xauzinho @${num.split('@')[0]}👋`
  				let buff = await getBuffer(ppimg)
  				client.sendMessage(mdata.id, buff, MessageType.image, {caption: teks, contextInfo: {"mentionedJid": [num]}})
  			}
  		} catch (e) {
  			console.log('Error : %s', color(e, 'red'))
  		}
  	})
  
  		client.on('CB:Blocklist', json => {
              if (blocked.length > 2) return
  	    for (let i of json[1].blocklist) {
  	    	blocked.push(i.replace('c.us','s.whatsapp.net'))
  	    }
  	})
  
  	client.on('chat-update', async (mek) => {
  		try {
                          if (!mek.hasNewMessage) return
                          mek = JSON.parse(JSON.stringify(mek)).messages[0]
  			if (!mek.message) return
  			if (mek.key && mek.key.remoteJid == 'status@broadcast') return
  			if (mek.key.fromMe) return
  			global.prefix
  			global.blocked
  			const content = JSON.stringify(mek.message)
  			const from = mek.key.remoteJid
  			const type = Object.keys(mek.message)[0]
  			const { text, extendedText, contact, location, liveLocation, image, video, sticker, document, audio, product } = MessageType
  			const time = moment.tz('Asia/Jakarta').format('DD/MM HH:mm:ss')
  			const date = moment.tz('Asia/Jakarta').format('DD,MM,YY')
  			body = (type === 'conversation' && mek.message.conversation.startsWith(prefix)) ? mek.message.conversation : (type == 'imageMessage') && mek.message.imageMessage.caption.startsWith(prefix) ? mek.message.imageMessage.caption : (type == 'videoMessage') && mek.message.videoMessage.caption.startsWith(prefix) ? mek.message.videoMessage.caption : (type == 'extendedTextMessage') && mek.message.extendedTextMessage.text.startsWith(prefix) ? mek.message.extendedTextMessage.text : ''
  			budy = (type === 'conversation') ? mek.message.conversation : (type === 'extendedTextMessage') ? mek.message.extendedTextMessage.text : ''
  			const command = body.slice(1).trim().split(/ +/).shift().toLowerCase()
  			const args = body.trim().split(/ +/).slice(1)
  			const isCmd = body.startsWith(prefix)
  
  			mess = {
  				wait: '⌛ Calmaer oseumerdar to fazendo ⌛',
  				success: '✔️ Sucesso ✔️',
  				levelon: '❬ ✔ ❭ *Ativado leveling*',
  				leveloff: ' ❬ X ❭  *Desativado leveling*',
  				levelnoton: '❬ X ❭ *Leveling naum ativado*',
  				levelnol: '*Kskskst opohar Level* 0 ',
  				error: {
  					stick: '[❗] Falha, ocorreu um erro ao converter a imagem em um adesivo ❌',
  					Iv: '❌ Link inválido ❌'
  				},
  				only: {
  					group: '[❗] Este comando só pode ser usado em grupos! ❌',
  					ownerG: '[❗] Este comando so pode ser usado pelo dono do grupo! ❌',
  					ownerB: '[❗] Este comando só pode ser usado pelo Toin! ❌',
  					admin: '[❗] Este comando só pode ser usado por administradores de grupo! ❌',
  					Badmin: '[❗] Este comando só pode ser usado quando o bot se torna administrador! ❌',
                                          daftarB: `──「 DAFTAR 」──\nHalo kak !\nKamu belum Terdaftar didalam database, \n\nCommand : ${prefix}daftar nama|umur\nContoh : ${prefix}daftar Ryz|17`,
  				}
  			}
      			const apakah = ['Ya','Tidak']
          		const bisakah = ['Bisa','Tidak Bisa']
  		        const kapankah = ['Hari Lagi','Minggu Lagi','Bulan Lagi','Tahun Lagi']
  			const botNumber = client.user.jid
  			const ownerNumber = ["5511949545217@s.whatsapp.net"] // replace this with your number
  			const nomorOwner = [ownerNumber]
  			const isGroup = from.endsWith('@g.us')
  			const totalchat = await client.chats.all()
  			const sender = isGroup ? mek.participant : mek.key.remoteJid
  			const groupMetadata = isGroup ? await client.groupMetadata(from) : ''
  			const groupName = isGroup ? groupMetadata.subject : ''
  			const groupId = isGroup ? groupMetadata.jid : ''
              let { pushname, verifiedName } = sender
              pushname = pushname || verifiedName // verifiedName is the name of someone who uses a business account
  			const groupMembers = isGroup ? groupMetadata.participants : ''
  			const groupAdmins = isGroup ? getGroupAdmins(groupMembers) : ''
  			const isBotGroupAdmins = groupAdmins.includes(botNumber) || false
  			const isGroupAdmins = groupAdmins.includes(sender) || false
  			const isWelkom = isGroup ? welkom.includes(from) : false
  			const isNsfw = isGroup ? nsfw.includes(from) : false
  			const isSimi = isGroup ? samih.includes(from) : false
  			const isOwner = ownerNumber.includes(sender)
  			const isLevelingOn = isGroup ? _leveling.includes(groupId) : false
  			const NomerOwner = '5511949545217@s.whatsapp.net'
                          //const isDaftar = daftar.includes(sender)
  
  			const isUrl = (url) => {
  			    return url.match(new RegExp(/'https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)/, 'gi'))
  			}
  			const reply = (teks) => {
  				client.sendMessage(from, teks, text, {quoted:mek})
  			}
  			const sendMess = (hehe, teks) => {
  				client.sendMessage(hehe, teks, text)
  			}
  			const mentions = (teks, memberr, id) => {
  				(id == null || id == undefined || id == false) ? client.sendMessage(from, teks.trim(), extendedText, {contextInfo: {"mentionedJid": memberr}}) : client.sendMessage(from, teks.trim(), extendedText, {quoted: mek, contextInfo: {"mentionedJid": memberr}})
  			}
  
  			 //function leveling
  			 if (isGroup && isLevelingOn) {
  				const currentLevel = getLevelingLevel(sender)
  				const checkId = getLevelingId(sender)
  				try {
  					if (currentLevel === undefined && checkId === undefined) addLevelingId(sender)
  					const amountXp = Math.floor(Math.random() * 10) + 500
  					const requiredXp = 5000 * (Math.pow(2, currentLevel) - 1)
  					const getLevel = getLevelingLevel(sender)
  					addLevelingXp(sender, amountXp)
  					if (requiredXp <= getLevelingXp(sender)) {
  						addLevelingLevel(sender, 1)
  						await reply(`*「 LEVEL UP 」*\n\n➸ *Name*: ${sender}\n➸ *XP*: ${getLevelingXp(sender)}\n➸ *Level*: ${getLevel} -> ${getLevelingLevel(sender)}\n\nCongrats!! 🎉🎉`)
  					}
  				} catch (err) {
  					console.error(err)
  				}
  			}
  
  			colors = ['red','white','black','blue','yellow','green']
  			const isMedia = (type === 'imageMessage' || type === 'videoMessage')
  			const isQuotedImage = type === 'extendedTextMessage' && content.includes('imageMessage')
  			const isQuotedVideo = type === 'extendedTextMessage' && content.includes('videoMessage')
  			const isQuotedSticker = type === 'extendedTextMessage' && content.includes('stickerMessage')
  			if (!isGroup && isCmd) console.log('\x1b[1;31m~\x1b[1;37m>', '[\x1b[1;32mEXEC\x1b[1;37m]', time, color(command), 'from', color(sender.split('@')[0]), 'args :', color(args.length))
  			if (!isGroup && !isCmd) console.log('\x1b[1;31m~\x1b[1;37m>', '[\x1b[1;31mRECV\x1b[1;37m]', time, color('Message'), 'from', color(sender.split('@')[0]), 'args :', color(args.length))
  			if (isCmd && isGroup) console.log('\x1b[1;31m~\x1b[1;37m>', '[\x1b[1;32mEXEC\x1b[1;37m]', time, color(command), 'from', color(sender.split('@')[0]), 'in', color(groupName), 'args :', color(args.length))
  			if (!isCmd && isGroup) console.log('\x1b[1;31m~\x1b[1;37m>', '[\x1b[1;31mRECV\x1b[1;37m]', time, color('Message'), 'from', color(sender.split('@')[0]), 'in', color(groupName), 'args :', color(args.length))
  			
  			 /******END OF FUNCTIONS INPUT******/
  			switch(command) {
  				case 'help':
  				case 'menu':
  					hisil = fs.readFileSync('./assets/menuimg.jpg')
  					client.sendMessage(from, hisil, image, {quoted: mek, caption: help(prefix), text})
  					break
                  case 'bahasa':
  		client.sendMessage(from, bahasa(prefix, sender), text, {quoted: mek})
                  break
                 case 'virtex':
                 client.sendMessage(from, virtex(prefix, sender), text, {quoted: mek})
                 break
                 case 'kodenegara':
                 client.sendMessage(from, negara(prefix, sender), text, {quoted: mek})
  			   break
  			   case 'painmenu':
  		client.sendMessage(from, menufodar(prefix, sender), text, {quoted: mek})
  				break
  				case 'menuadmin':
  		client.sendMessage(from, menuadmin(prefix, sender), text, {quoted: mek})
  				break
  				case 'nsfwmenu':
  		client.sendMessage(from, nsfwmenu(prefix, sender), text, {quoted: mek})
                  break
  				case 'rebaixar':
  					if (!isGroup) return reply(mess.only.group)
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					if (!isBotGroupAdmins) return reply(mess.only.Badmin)
  					if (mek.message.extendedTextMessage === undefined || mek.message.extendedTextMessage === null) return reply('𝐓𝐚𝐠 𝐭𝐚𝐫𝐠𝐞𝐭 𝐲𝐚𝐧𝐠 𝐦𝐚𝐮 𝐝𝐢 𝐭𝐮𝐫𝐮𝐧𝐤𝐚𝐧 𝐚𝐝𝐦𝐢𝐧')
  					mentioned = mek.message.extendedTextMessage.contextInfo.mentionedJid
  					if (mentioned.length > 1) {
  						teks = ''
  						for (let _ of mentioned) {
  							teks += `𝐏𝐞𝐫𝐢𝐧𝐭𝐚𝐡 𝐝𝐢𝐭𝐞𝐫𝐢𝐦𝐚, 𝐦𝐞𝐧𝐮𝐫𝐮𝐧𝐤𝐚𝐧 𝐣𝐚𝐝𝐢 𝐚𝐝𝐦𝐢𝐧 𝐠𝐫𝐨𝐮𝐩 :\n`
  							teks += `@_.split('@')[0]`
  						}
  						mentions(teks, mentioned, true)
  						client.groupDemoteAdmin(from, mentioned)
  					} else {
  						mentions(`𝐏𝐞𝐫𝐢𝐧𝐭𝐚𝐡 𝐝𝐢𝐭𝐞𝐫𝐢𝐦𝐚, 𝐦𝐞𝐧𝐮𝐫𝐮𝐧𝐤𝐚𝐧 @${mentioned[0].split('@')[0]}\n 𝐣𝐚𝐝𝐢 𝐚𝐝𝐦𝐢𝐧 𝐠𝐫𝐨𝐮𝐩 _*${groupMetadata.subject}*_`, mentioned, true)
  						client.groupDemoteAdmin(from, mentioned)
  					}
  					break
                                  case 'toin':
                                          gatauda = body.slice(6)
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
                                          reply(mess.wait)
                                          anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/hentai?apikey=BotWeA`, {method: 'get'})
                                          buffer = await getBuffer(anu.result)
                                          client.sendMessage(from, buffer, image, {quoted: mek})
                                          break
                                  case 'loli':
                                          gatauda = body.slice(6)
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
                                          reply(mess.wait)
                                          anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/randomloli?apikey=BotWeA`, {method: 'get'})
                                          buffer = await getBuffer(anu.result)
                                          client.sendMessage(from, buffer, image, {quoted: mek})
  										break
  										case 'nsfwlolinaumfunfa':
  			        if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  					loli.getNSFWLoli(async (err, res) => {
  						if (err) return reply('❄1�7 *ERRO* ❄1�7')
  						buffer = await getBuffer(res.url)
  						client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Jangan jadiin bahan buat comli om'})
  					})
  					break
                    case 'promover':
  					client.updatePresence(from, Presence.composing) 
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					if (!isGroup) return reply(mess.only.group)
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					if (!isBotGroupAdmins) return reply(mess.only.Badmin)
  					if (mek.message.extendedTextMessage === undefined || mek.message.extendedTextMessage === null) return reply('Tag target yang ingin di promote!')
  					mentioned = mek.message.extendedTextMessage.contextInfo.mentionedJid
  					if (mentioned.length > 1) {
  						teks = 'Perintah di terima, menambah jabatan sebagai admin :\n'
  						for (let _ of mentioned) {
  							teks += `@${_.split('@')[0]}\n`
  						}
  						mentions(teks, mentioned, true)
  						client.groupMakeAdmin(from, mentioned)
  					} else {
  						mentions(`Perintah di terima, menambah jabatan sebagai admin : @${mentioned[0].split('@')[0]}`, mentioned, true)
  						client.groupMakeAdmin(from, mentioned)
  					}
  					break
  					case 'randomhentaio': 
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://tobz-api.herokuapp.com/api/hentai?apikey=BotWeA`, {method: 'get'})
  							buffer = await getBuffer(res.result)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'hentai teros'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  						break
  					case 'nsfwloli':
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://api.lolis.life/random?nsfw=true`, {method: 'get'})
  							buffer = await getBuffer(res.url)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Jangan jadiin bahan buat comli om'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  						break
  					case 'nsfwbobs': 
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://meme-api.herokuapp.com/gimme/biganimetiddies`, {method: 'get'})
  							buffer = await getBuffer(res.url)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Tai os peitos que vc queria\npunhetero de merda'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  						break
  					case 'nsfwblowjob':
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://tobz-api.herokuapp.com/api/nsfwblowjob`, {method: 'get'})
  							buffer = await getBuffer(res.result)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Jangan jadiin bahan buat comli om'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  						break
  					case 'nsfwneko':
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://api.computerfreaker.cf/v1/neko`, {method: 'get'})
  							buffer = await getBuffer(res.result)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'ni anjim'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  						break
  					case 'trap':
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://api.computerfreaker.cf/v1/trap`, {method: 'get'})
  							buffer = await getBuffer(res.result)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'ni anjim'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  					break
  				case 'nsfwass':
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://meme-api.herokuapp.com/gimme/animebooty`, {method: 'get'})
  							buffer = await getBuffer(res.url)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Tai a bunda que vc queria'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  						break
  					case 'nsfwsidebobs':
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://meme-api.herokuapp.com/gimme/sideoppai`, {method: 'get'})
  							buffer = await getBuffer(res.url)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'aaaah'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  					    break
  					case 'nsfwahegao':
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://meme-api.herokuapp.com/gimme/ahegao`, {method: 'get'})
  							buffer = await getBuffer(res.url)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'fodar'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  						break
  					case 'nsfwthighs':
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://meme-api.herokuapp.com/gimme/animethighss`, {method: 'get'})
  							buffer = await getBuffer(res.url)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'aaah q bosta'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  						break
  					case 'nsfwfeets':
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`"'https://meme-api.herokuapp.com/gimme/animefeets`, {method: 'get'})
  							buffer = await getBuffer(res.url)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Tai mais fia sapoha no cu'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌') 
  						}
  						break
  					case 'nsfwarmpits':
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://meme-api.herokuapp.com/gimme/animearmpits`, {method: 'get'})
  							buffer = await getBuffer(res.url)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Tai'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  						break
  						case 'nsfwtrap':
  						try {
  							if (!isNsfw) return reply('❌ *NSFW Desativado* ❌')
  							res = await fetchJson(`'https://tobz-api.herokuapp.com/nsfwtrap?apikey=BotWeA`, {method: 'get'})
  							buffer = await getBuffer(res.url)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Tai os peitos que vc queria\npunhetero de merda'})
  						} catch (e) {
  							console.log(`Error :`, color(e,'red'))
  							reply('❌ *ERROR* ❌')
  						}
  						break
  				  case 'wa.me':
  				  case 'wame':
    client.updatePresence(from, Presence.composing) 
        options = {
            text: `「 *SELF WHATSAPP* 」\n\n_Request by_ : *@${sender.split("@s.whatsapp.net")[0]}\n\nYour link WhatsApp : *'https://wa.me/${sender.split("@s.whatsapp.net")[0]}*\n*Or ( / )*\n*'https://api.whatsapp.com/send?phone=${sender.split("@")[0]}*`,
            contextInfo: { mentionedJid: [sender] }
      }
      client.sendMessage(from, options, text, { quoted: mek } )
  				break
  				if (data.error) return reply(data.error)
  				reply(data.result)
  				break
  			case 'quotes':
  				client.updatePresence(from, Presence.composing) 
                                  /*if (!isDaftar) return reply(mess.only.daftarB)*/
  				data = await fetchJson(`''http://mhankbarbars.herokuapp.com/api/randomquotes`)
  				ez = `*➸ Author :* ${data.author}\n*➸ Quotes :* ${data.quotes}`
  				reply(ez)
  				break
  				case '3dtext':
                  data = await await getBuffer(`'https://docs-jojo.herokuapp.com/api/text3d?text=${body.slice(8)}`)
                  /*if (!isDaftar) return reply(mess.only.daftarB)*/
                  client.sendMessage(from, data, image, {quoted: mek, caption: body.slice(8)})
                  break
                  case 'fml':
                  data = await fetchJson(`'https://docs-jojo.herokuapp.com/api/fml`)
                  /*if (!isDaftar) return reply(mess.only.daftarB)*/
                  hasil = data.result.fml
                  reply(hasil)
                  break
                case 'owner':
                  case 'creator':
                    client.sendMessage(from, {displayname: "Toin", vcard: vcard}, MessageType.contact, { quoted: mek})
                 client.sendMessage(from, 'Nih nomor ownerku kak, save ya kak nanti di save balik',MessageType.text, { quoted: mek} )
  				break
  	case 'hidetag':
                  client.updatePresence(from, Presence.composing) 
                  /*if (!isDaftar) return reply(mess.only.daftarB)*/
                  if (!isGroup) return reply(mess.only.group)
                  teks = body.slice(9)
                  group = await client.groupMetadata(from);
                  member = group['participants']
                  jids = [];
                  member.map( async adm => {
                  jids.push(adm.id.replace('c.us', 's.whatsapp.net'));
                   })
                   options = {
                   text: teks,
                  contextInfo: {mentionedJid: jids},
                  quoted: mek
  				}
  				break
  			    case 'nsfw':
  					if (!isGroup) return reply(mess.only.group)
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					if (args.length < 1) return reply('Hmmmm 1 para ativar 0 para desativar')
  					if (Number(args[0]) === 1) {
  						if (isNsfw) return reply('NSFW ja esta ativado')
  						nsfw.push(from)
  						fs.writeFileSync('./src/nsfw.json', JSON.stringify(nsfw))
  						reply('NSFW Ativado ✔️')
  					} else if (Number(args[0]) === 0) {
  						nsfw.splice(from, 1)
  						fs.writeFileSync('./src/nsfw.json', JSON.stringify(nsfw))
  						reply('NSFW Desativado ✔️')
  					} else {
  						reply('1 para ativar 2 para desativar')
  					}
                await client.sendMessage(from, options, text)
                 break
                                  case 'tiktokstalk':
  					try {
  						if (args.length < 1) return client.sendMessage(from, 'Usernamenya mana kak? ', text, {quoted: mek})
                                                  /*if (!isDaftar) return reply(mess.only.daftarB)*/
  						let { user, stats } = await tiktod.getUserProfileInfo(args[0])
  						reply(mess.wait)
  						teks = `*ID* : ${user.id}\n*Username* : ${user.uniqueId}\n*Nickname* : ${user.nickname}\n*Followers* : ${stats.followerCount}\n*Followings* : ${stats.followingCount}\n*Posts* : ${stats.videoCount}\n*Luv* : ${stats.heart}\n`
  						buffer = await getBuffer(user.avatarLarger)
  						client.sendMessage(from, buffer, image, {quoted: mek, caption: teks})
  					} catch (e) {
  						console.log(`Error :`, color(e,'red'))
  						reply('username tidak valid')
  					}
  					break
  				case 'snowwrite':
  					var gh = body.slice(11)
  					var gbl7 = gh.split("|")[0];
  					var gbl8 = gh.split("|")[1];
  					if (args.length < 1) return reply(`Kirim perintah ${prefix}snowwrite teks1|teks2, contoh ${prefix}snowwrite aqulzz|galuh`)
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					reply(mess.wait)
  					anu = await fetchJson(`'https://zeksapi.herokuapp.com/api/snowwrite?text1=${gbl7}&text2=${gbl8}&apikey=apivinz`, {method: 'get'})
  					buffer = await getBuffer(anu.result)
  					client.sendMessage(from, buffer, image, {quoted: mek})
  					break
  				case 'marvellogo':
  					var gh = body.slice(12)
  					var gbl5 = gh.split("|")[0];
  					var gbl6 = gh.split("|")[1];
  					if (args.length < 1) return reply(`Kirim perintah ${prefix}marvellogo teks1|teks2, contoh ${prefix}marvellogo aqulzz|galuh`)
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					reply(mess.wait)
  					anu = await fetchJson(`'https://zeksapi.herokuapp.com/api/marvellogo?text1=${gbl5}&text2=${gbl6}&apikey=apivinz`, {method: 'get'})
  					buffer = await getBuffer(anu.result)
  					client.sendMessage(from, buffer, image, {quoted: mek})
  					break
  					case 'yuugo':
  					anu = await fetchJson(`'https://api.vhtear.com/pinterest?query=yuugoneverland&apikey=ANTIGRATISNIHANJENKKK`, {method: 'get'})
  					var eln = JSON.parse(JSON.stringify(anu.result));
  					var elnn =  eln[Math.floor(Math.random() * eln.length)];
  					nye = await getBuffer(elnn)
  					client.sendMessage(from, nye, image, { caption: 'elang!!', quoted: mek })
  					break
  
  				case 'artinama':
                    client.updatePresence(from, Presence.composing) 
                    /*if (!isDaftar) return reply(mess.only.daftarB)*/
                      data = await fetchJson(`'https://arugaz.herokuapp.com/api/artinama?nama=${body.slice(10)}`)
                     reply(data.result)
                     break
  		case 'infonomor':
                 client.updatePresence(from, Presence.composing) 
                   /*if (!isDaftar) return reply(mess.only.daftarB)*/
                   if (args.length < 1) return reply(`Masukan Nomor\nContoh : ${prefix}infonomor 0812345678`)
                  data = await fetchJson(`'https://docs-jojo.herokuapp.com/api/infonomor?no=${body.slice(11)}`)
                  if (data.error) return reply(data.error)
                  if (data.result) return reply(data.result)
                  hasil = `╠➥ internasional : ${data.international}\n╠➥ nomor : ${data.nomor}\n╠➥ operator : ${data.op}`
                  reply(hasil)
                  break
  		case 'spamcall':
                 client.updatePresence(from, Presence.composing)
                   /*if (!isDaftar) return reply(mess.only.daftarB)*/
                   if (args.length < 1) return reply(`Masukan Nomor\nContoh : ${prefix}spamcall 812345678`)
                  data = await fetchJson(`'https://arugaz.herokuapp.com/api/spamcall?no=${body.slice(10)}`)
                  if (data.msg) return reply(data.msg)
                  hasil = data.logs
                  reply(hasil)
                  break
                     case 'map':
                     data = await fetchJson(`'https://mnazria.herokuapp.com/api/maps?search=${body.slice(5)}`)
                     /*if (!isDaftar) return reply(mess.only.daftarB)*/
                     hasil = await getBuffer(data.gambar)
                     client.sendMessage(from, hasil, image, {quoted: mek, caption: `Hasil Dari *${body.slice(5)}*`})
                     break
                     case 'covid':
                     client.updatePresence(from, Presence.composing) 
                     /*if (!isDaftar) return reply(mess.only.daftarB)*/
                     data = await fetchJson(`'https://arugaz.herokuapp.com/api/corona?country=${body.slice(7)}`)
                     if (data.result) reply(data.result)
                     hasil = `Negara : ${data.result.country}\n\nActive : ${data.result.active}\ncasesPerOneMillion : ${data.result.casesPerOneMillion}\ncritical : ${data.result.critical}\ndeathsPerOneMillion : ${data.result.deathsPerOneMillion}\nrecovered : ${data.result.recovered}\ntestPerOneMillion : ${data.result.testPerOneMillion}\ntodayCases : ${data.result.todayCases}\ntodayDeath : ${data.result.todayDeath}\ntotalCases : ${data.result.totalCases}\ntotalTest : ${data.result.totalTest}`
                     reply(hasil)
                     break
  				case 'wiki':
  					if (args.length < 1) return reply('masukan kata kunci')
  					tels = body.slice(6)	
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/				
  					anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/wiki?q=${tels}&apikey=BotWeA`, {method: 'get'})
  					reply(anu.result)
  					break	
  				case 'wikien':
  					if (args.length < 1) return reply('masukan kata kunci')
  					tels = body.slice(8)		
  			                /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					anu = await fetchJson(`'https://arugaz.herokuapp.com/api/wikien?q=${tels}`, {method: 'get'})
  					reply(anu.result)
  					break				
  				case 'ytmp3':
  					if (args.length < 1) return reply('Urlnya mana um?')
  					if(!isUrl(args[0]) && !args[0].includes('youtu')) return reply(mess.error.Iv)
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
       					anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/yta?url=${args[0]}&apiKey=BotWeA`, {method: 'get'})
  					if (anu.error) return reply(anu.error)
  					teks = `*Title* : ${anu.title}\n*Filesize* : ${anu.filesize}`
  					thumb = await getBuffer(anu.thumb)
  					client.sendMessage(from, thumb, image, {quoted: mek, caption: teks})
  					buffer = await getBuffer(anu.result)
  					client.sendMessage(from, buffer, audio, {mimetype: 'audio/mp4', filename: `${anu.title}.mp3`, quoted: mek})
  					break
  					case 'ytmp4':
  				if (args.length < 1) return reply('link YouTube nya mana?')
  					tels = body.slice(7)				
  					reply(mess.wait)
  					buffer = await getBuffer(anu.thumb)
  				 	anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/ytv?url=${tels}&apikey=BotWeA`, {method: 'get'})
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					hasil = `*❏ Judul* : ${anu.title}\n*❏ Filesize* : ${anu.filesize}\n*❏ resolution* : ${anu.resolution}\n*❏ Tipe* : ${anu.ext}\n*❏ Link* : ${anu.result}`					
  					client.sendMessage(from, buffer, image,  {quoted: mek, caption: hasil})
  					break							
  				case 'trendtwit':
  					client.updatePresence(from, Presence.composing) 
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					data = await fetchJson(`'https://docs-jojo.herokuapp.com/api/trendingtwitter`, {method: 'get'})
  					teks = '=================\n'
  					for (let i of data.result) {
  						teks += `*Hastag* : ${i.hastag}\n*link* : ${i.link}\n*rank* : ${i.rank}\n*Tweet* : ${i.tweet}\n=================\n`
  					}
  					reply(teks.trim())
  					break
  				case 'testime':
  					setTimeout( () => {
  					client.sendMessage(from, 'Waktu habis:v', text) // ur cods
  					}, 10000) // 1000 = 1s,
  					setTimeout( () => {
  					client.sendMessage(from, '5 Detik lagi', text) // ur cods
  					}, 5000) // 1000 = 1s,
  					setTimeout( () => {
  					client.sendMessage(from, '10 Detik lagi', text) // ur cods
  					}, 0) // 1000 = 1s,
  					break
  				case 'semoji':
  					if (args.length < 1) return reply('emojinya mana um?')
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					ranp = getRandom('.png')
  					rano = getRandom('.webp')
  					teks = body.slice(8).trim()
  					anu = await fetchJson(`'https://mhankbarbars.herokuapp.com/api/emoji2png?emoji=${teks}`, {method: 'get'})
  					if (anu.error) return reply(anu.error)
  					exec(`wget ${anu.result} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=20 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {
  						fs.unlinkSync(ranp)
  						if (err) return reply(mess.error.stick)
  						buffer = fs.readFileSync(rano)
  						client.sendMessage(from, buffer, sticker)
  						fs.unlinkSync(rano)
  					})
  					break
  				case 'nulis': 
  				case 'tulis': ini
  					if (args.length < 1) return reply('aku suruh nulis apa kak?')
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					teks = body.slice(7)
  					reply(mess.wait)
  					anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/nulis?text=halo&apikey=BotWeA`, {method: 'get'})
  					if (anu.error) return reply(anu.error)
  					buff = await getBuffer(anu.result)
  					client.sendMessage(from, buff, image, {quoted: mek, caption: mess.success})
  					break
  	case 'kbbi':
              client.updatePresence(from, Presence.composing) 
                  if (args.length < 1) return reply(`Masukan Pertanyaan\nContoh : ${prefix}kbbi asu`)
  	      tels = body.slice(6)
                data = await fetchJson(`'https://tobz-api.herokuapp.com/api/kbbi?kata=${tels}&apikey=BotWeA`)
                if (data.error) return reply(data.error)
                hasil = `${data.result}`
                reply(hasil)
                break
  				case 'joox':
  			tels = body.slice(6)
                  data = await fetchJson(`'https://tobz-api.herokuapp.com/api/joox?q=${tels}`, {method: 'get'})
                 /*if (!isDaftar) return reply(mess.only.daftarB)*/
                 if (data.error) return reply(data.error)
                   infomp3 = `*Lagu Ditemukan!!!*\nJudul : ${data.result.judul}\nAlbum : ${data.result.album}\nDipublikasi : ${data.result.dipublikasi}`
                  buffer = await getBuffer(data.result.thumb)
                  lagu = await getBuffer(data.result.mp3)
                  client.sendMessage(from, buffer, image, {quoted: mek, caption: infomp3})
                  client.sendMessage(from, lagu, audio, {mimetype: 'audio/mp4', filename: `${data.result.title}.mp3`, quoted: mek})
                  break
  				case 'info':
  					me = client.user
  					uptime = process.uptime()
  					teks = `*Nama bot* : ${me.name}\n*Nomor Bot* : @${me.jid.split('@')[0]}\n*Prefix* : ${prefix}\n*Total Block Contact* : ${blocked.length}\n*The bot is active on* : ${kyun(uptime)}\n*Total Chat* : ${totalchat.length}`
  					buffer = await getBuffer(me.imgUrl)
  					client.sendMessage(from, buffer, image, {caption: teks, contextInfo:{mentionedJid: [me.jid]}})
  					break
  				case 'blocklist':
  					teks = 'This is list of blocked number :\n'
  					for (let block of blocked) {
  						teks += `~> @${block.split('@')[0]}\n`
  					}
  					teks += `Total : ${blocked.length}`
  					client.sendMessage(from, teks.trim(), extendedText, {quoted: mek, contextInfo: {"mentionedJid": blocked}})
  					break
                     case 'chatlist':
  					client.updatePresence(from, Presence.composing)  
  					teks = 'This is list of chat number :\n'
  					for (let all of totalchat) {
  						teks += `~> @${all}\n`
  					}
  					teks += `Total : ${totalchat.length}`
  					client.sendMessage(from, teks.trim(), extendedText, {quoted: mek, contextInfo: {"mentionedJid": totalchat}})
  					break
  				case 'animecry':
  					ranp = getRandom('.gif')
  					rano = getRandom('.webp')
  					anu = await fetchJson('https://tobz-api.herokuapp.com/api/cry', {method: 'get'})
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					if (anu.error) return reply(anu.error)
  					exec(`wget ${anu.result} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=15 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {
  						fs.unlinkSync(ranp)
  						if (err) return reply(mess.error.stick)
  						buffer = fs.readFileSync(rano)
  						client.sendMessage(from, buffer, sticker, {quoted: mek})
  						fs.unlinkSync(rano)
  					})
  					break
  				case 'neonime':
  					client.updatePresence(from, Presence.composing) 
  					data = await fetchJson(`'https://docs-jojo.herokuapp.com/api/neonime_lastest`, {method: 'get'})
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					teks = '################\n'
  					for (let i of data.result) {
  						teks += `*Title* : ${i.judul}\n*link* : ${i.link}\n*rilis* : ${i.rilis}\n###############\n`
  					}
  					reply(teks.trim())
  					break  
  					case 'bpink':
                
                    if (args.length < 1) return reply(`Masukan Teks\nContoh : ${prefix}Caliph Bot`)
                  data = await getBuffer(`'https://docs-jojo.herokuapp.com/api/blackpink?text=${body.slice(7)}`)
                  /*if (!isDaftar) return reply(mess.only.daftarB)*/
                  client.sendMessage(from, data, image, {quoted: mek, caption: body.slice(7)})
                  break
  				case 'tts':
  				   client.updatePresence(from, Presence.recording) 
  				   if (args.length < 1) return client.sendMessage(from, 'Kode bahasanya mana om?', text, {quoted: mek})
                                     /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					const gtts = require('./lib/gtts')(args[0])
  					if (args.length < 2) return client.sendMessage(from, 'Textnya mana om', text, {quoted: mek})
  					dtt = body.slice(8)
  					ranm = getRandom('.mp3')
  					rano = getRandom('.ogg')
  					dtt.length > 600
  					? reply('Textnya kebanyakan om')
  					: gtts.save(ranm, dtt, function() {
  						exec(`ffmpeg -i ${ranm} -ar 48000 -vn -c:a libopus ${rano}`, (err) => {
  							fs.unlinkSync(ranm)
  							buff = fs.readFileSync(rano)
  							if (err) return reply('Gagal om:(')
  							client.sendMessage(from, buff, audio, {quoted: mek, ptt:true})
  							fs.unlinkSync(rano)
  						})
  					})
  					break
  				case 'listadmins':
  				case 'adminlist':
  					client.updatePresence(from, Presence.composing) 
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					if (!isGroup) return reply(mess.only.group)
  					teks = `List admin of group *${groupMetadata.subject}*\nTotal : ${groupAdmins.length}\n\n`
  					no = 0
  					for (let admon of groupAdmins) {
  						no += 1
  						teks += `[${no.toString()}] @${admon.split('@')[0]}\n`
  					}
  					mentions(teks, groupAdmins, true)
  					break
  				case 'pokemon':
                      client.updatePresence(from, Presence.composing) 
  					data = await fetchJson(`'https://api.fdci.se/rep.php?gambar=pokemon`, {method: 'get'})
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					reply(mess.wait)
  					n = JSON.parse(JSON.stringify(data));
  					nimek =  n[Math.floor(Math.random() * n.length)];
  					pok = await getBuffer(nimek)
  					client.sendMessage(from, pok, image, { quoted: mek })
  					break
                  case 'imagens':
  					client.updatePresence(from, Presence.composing) 
  					data = await fetchJson( `'https://api.fdci.se/rep.php?gambar=${search}`, {method: 'get'})
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					reply(mess.wait)
  					n = JSON.parse(JSON.stringify(data));
  					nimek =  n[Math.floor(Math.random() * n.length)];
  					pok = await getBuffer(nimek)
  					client.sendMessage(from, pok, image, { quoted: mek, caption: `𝐏𝐈𝐍𝐓𝐄𝐑𝐄𝐒𝐓\n\*Hasil Pencarian* : *${body.slice(11)}*`})
  					break
  				case 'images':
  						client.updatePresence(from, Presence.composing) 
  						data = await fetchJson(`'https://api.fdci.se/rep.php?gambar=${body.slice(11)}`, {method: 'get'})
  											/*if (!isDaftar) return reply(mess.only.daftarB)*/
  						reply(mess.wait)
  						n = JSON.parse(JSON.stringify(data));
  						nimek =  n[Math.floor(Math.random() * n.length)];
  						pok = await getBuffer(nimek)
  						client.sendMessage(from, pok, image, { quoted: mek, caption: `Era sapoha q tu qria?\n\*Soq tae* : *${body.slice(11)}*`})
  						break
  				case 'pinterest':
  					client.updatePresence(from, Presence.composing) 
  					data = await fetchJson(`'https://api.fdci.se/rep.php?gambar=${body.slice(11)}`, {method: 'get'})
                                          if (!isUser) return reply(mess.only.daftarB)
  					reply(mess.wait)
  					n = JSON.parse(JSON.stringify(data));
  					nimek =  n[Math.floor(Math.random() * n.length)];
  					pok = await getBuffer(nimek)
  					client.sendMessage(from, pok, image, { quoted: mek, caption: `𝐏𝐈𝐍𝐓𝐄𝐑𝐄𝐒𝐓\n\*Era isso?* : *${body.slice(11)}*`})
  					break
  				case 'animet':
  						client.updatePresence(from, Presence.composing) 
  						data = await fetchJson(`'https://arugaz.herokuapp.com/api/kuso?q=${body.slice(11)}`, {method: 'get'})
  											/*if (!isDaftar) return reply(mess.only.daftarB)*/
  						reply(mess.wait)
  						n = JSON.parse(JSON.stringify(data));
  						nimek =  n[Math.floor(Math.random() * n.length)];
  						pok = await getBuffer(nimek)
  						client.sendMessage(from, pok, image, { quoted: mek, caption: `Era sapoha q tu qria?\n\*Soq tae* : *${body.slice(11)}*`})
  						break
  				    case 'randomanime':
  					gatauda = body.slice(13)
  					reply(mess.wait)
  					anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/randomanime`, {method: 'get'})
  					buffer = await getBuffer(anu.result)
  					client.sendMessage(from, buffer, image, {quoted: mek, caption: `Diria q uma imagem random de Anime`})
  					break
  				case 'waifu':
  					gatauda = body.slice(7)
  					reply(mess.wait)
  					anu = await fetchJson(`'https://arugaz.herokuapp.com/api/nekonime`, {method: 'get'})
  					buffer = await getBuffer(anu.result)
  					client.sendMessage(from, buffer, image,{quoted: mek, caption: `Casar com 2d e fodar mais okei`})
  					break
  				case 'walpaper':
                      client.updatePresence(from, Presence.composing) 
  					data = await fetchJson(`'https://api.fdci.se/rep.php?gambar=wallpaper`, {method: 'get'})
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					reply(mess.wait)
  					n = JSON.parse(JSON.stringify(data));
  					nimek =  n[Math.floor(Math.random() * n.length)];
  					pok = await getBuffer(nimek)
  					client.sendMessage(from, pok, image, { quoted: mek })
  					break 
  				case 'twit':
                      client.updatePresence(from, Presence.composing) 
  					data = await fetchJson(`'https://api.fdci.se/rep.php?gambar=`, {method: 'get'})
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					reply(mess.wait)
  					n = JSON.parse(JSON.stringify(data));
  					nimek =  n[Math.floor(Math.random() * n.length)];
  					pok = await getBuffer(nimek)
  					client.sendMessage(from, pok, image, { quoted: mek, caption: `Seu post random do tt`})
  					break
  				case 'setprefix':
  					client.updatePresence(from, Presence.composing) 
  					if (args.length < 1) return
  					if (!isOwner) return reply(mess.only.ownerB)
  					prefix = args[0]
  					reply(`Prefix berhasil di ubah menjadi : ${prefix}`)
  					break
  				case 'meme':
  					meme = await kagApi.memes()
  					buffer = await getBuffer(`'https://imgur.com/${meme.hash}.jpg`)
  					client.sendMessage(from, buffer, image, {quoted: mek, caption: '.......'})
  					break
  				case 'memeindo':
  					memein = await kagApi.memeindo()
  					buffer = await getBuffer(`'https://imgur.com/${memein.hash}.jpg`)
  					client.sendMessage(from, buffer, image, {quoted: mek, caption: '.......'})
  					break
  				case 'block':
  					client.updatePresence(from, Presence.composing) 
  					if (!isGroup) return reply(mess.only.group)
  					if (!isOwner) return reply(mess.only.ownerB)
  					client.blockUser (`${body.slice(8)}@c.us`, "add")
  					client.sendMessage(from, `Membro bloqueado ${body.slice(8)}@c.us`, text)
  					break
  				case 'delete':
  				case 'del':
  						if (!isGroup)return reply(mess.only.group)
  						if (!isGroupAdmins)return reply(mess.only.admin)
  						client.deleteMessage(from, { id: mek.message.extendedTextMessage.contextInfo.stanzaId, remoteJid: from, fromMe: true })
  						break
  				case 'hilih':
  					client.updatePresence(from, Presence.composing) 
  					anu = await fetchJson(`'https://mhankbarbars.herokuapp.com/api/hilih?teks=${body.slice(7)}`, {method: 'get'})
  					reply(anu.result)
  					break
  				case 'tagall':
  				client.updatePresence(from, Presence.composing) 
  					if (!isGroup) return reply(mess.only.group)
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					members_id = []
  					teks = (args.length > 1) ? body.slice(8).trim() : ''
  					teks += `  Total : ${groupMembers.length}\n`
  					for (let mem of groupMembers) {
  						teks += `╠➥ @${mem.jid.split('@')[0]}\n`
  						members_id.push(mem.jid)
  					}
  					if (text.includes('random')){
  						conn.sendMessage(id, 'Silakan ulangi command dengan huruf kecil',MessageType.text, { quoted: m } );
  						}
  						   if (text.includes("random"))
  						   {
  							var items = ["ullzang girl", "cewe cantik", "cewe hijab", "remaja cantik", "cewek jepang"];
  							var cewe = items[Math.floor(Math.random() * items.length)];
  							var url = "'https://api.fdci.se/rep.php?gambar=" + cewe;
  							
  							axios.get(url)
  							  .then((result) => {
  								var b = JSON.parse(JSON.stringify(result.data));
  								var cewek =  b[Math.floor(Math.random() * b.length)];
  								imageToBase64(cewek) // Path to the image
  								.then(
  									(response) => {
  							conn.sendMessage(id, 'Jaja eu mando sabosta espera', MessageType.text, { quoted: m } )
  							var buf = Buffer.from(response, 'base64'); // Ta-da	
  							conn.sendMessage(id, buf ,MessageType.image, { caption: `nih gan`, quoted: m } )
  							   
  									}
  								)
  								.catch(
  									(error) => {
  										console.log(error); // Logs an error if there was one
  									}
  								)
  							
  							});
  							}
  							if (text.includes('Bot')){
  								conn.sendMessage(id, 'Silakan ulangi command dengan huruf kecil\n_contoh : .bot apa kabar_',MessageType.text, { quoted: m } );
  								}
  								if (text.includes("bot")){
  								const teks = text.replace(/.bot /, "")
  								axios.get(`'https://st4rz.herokuapp.com/api/simsimi?kata=${teks}`).then((res) => {
  									let hasil = `${res.data.result}\n\n*Simsimi chat*`;
  									conn.sendMessage(id, hasil ,MessageType.text, {quoted: m});
  								})
  								}
  						
  					mentions('╔══✪〘 Mencionando Todo Mundo! 〙✪══\n╠➥'+teks+'╚═〘 pain bot 〙', members_id, true)
  					break
                  case 'tagall2':
  				client.updatePresence(from, Presence.composing) 
  					if (!isGroup) return reply(mess.only.group)
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					members_id = []
  					teks = (args.length > 1) ? body.slice(8).trim() : ''
  					teks += `  Total : ${groupMembers.length}\n`
  					for (let mem of groupMembers) {
  						teks += `╠➥ ${mem.jid.split('@')[0]}\n`
  						members_id.push(mem.jid)
  					}
  					client.sendMessage(from, '╔══✪〘 Mencionando Todo Mundo! 〙✪══\n╠➥'+teks+'╚═〘 pain bot 〙', text, {quoted: mek})
  					break
                  case 'tagall3':
  				client.updatePresence(from, Presence.composing) 
  					if (!isGroup) return reply(mess.only.group)
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					members_id = []
  					teks = (args.length > 1) ? body.slice(8).trim() : ''
  					teks += `  Total : ${groupMembers.length}\n`
  					for (let mem of groupMembers) {
  						teks += `╠➥ 'https://wa.me/${mem.jid.split('@')[0]}\n`
  						members_id.push(mem.jid)
  					}
  					client.sendMessage(from, '╔══✪〘 Mencionando Todo Mundo! 〙✪══\n╠➥'+teks+'╚═〘 pain bot 〙', text, {detectLinks: false, quoted: mek})
  					break
                          case 'tagall4':
  				client.updatePresence(from, Presence.composing) 
  					if (!isGroup) return reply(mess.only.group)
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					members_id = []
  					teks = (args.length > 1) ? body.slice(8).trim() : ''
  					teks += `  Total : ${groupMembers.length}\n`
  					for (let mem of groupMembers) {
  						teks += `╠➥ ${mem.jid.split('@')[0]}@c.us\n`
  						members_id.push(mem.jid)
  					}
  					client.sendMessage(from, '╔══✪〘 Mencionando Todo Mundo! 〙✪══\n╠➥'+teks+'╚═〘 pain bot 〙', text, {quoted: mek})
  					break
                  case 'tagall5':
  				client.updatePresence(from, Presence.composing) 
  					if (!isGroup) return reply(mess.only.group)
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					members_id = []
  					teks = (args.length > 1) ? body.slice(8).trim() : ''
  					teks += `  Total : ${groupMembers.length}\n`
  					for (let mem of groupMembers) {
  						teks += `╠➥ ${mem.jid.split('@')[0]}@s.whatsapp.net\n`
  						members_id.push(mem.jid)
  					}
  					reply('╔══✪〘 Mencionando Todo Mundo 〙✪══\n╠➥'+teks+'╚═〘 pain bot 〙')
  					break
  				case 'send':
  					var pc = body.slice(6)
  					var nomor = pc.split("|")[0];
  					var pesan = pc.split("|")[1];
  					client.sendMessage(nomor+'@s.whatsapp.net', pesan, text)
  					break
  					case 'quotesnime':
  					nimek = await fetchJson('https://animechanapi.xyz/api/quotes/random')
  					hasil = `anime : ${nimek.data.anime}\nCharacter : ${nimek.data.character}\n${nimek.data.quote}`
  					reply(hasil)
  					break
  				case 'setppbot':
  				client.updatePresence(from, Presence.composing) 
  				if (!isQuotedImage) return reply(`Kirim gambar dengan caption ${prefix}setbotpp atau tag gambar yang sudah dikirim`)
  					if (!isOwner) return reply(mess.only.ownerB)
  					enmedia = JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo
  					media = await client.downloadAndSaveMediaMessage(enmedia)
  					await client.updateProfilePicture(botNumber, media)
  					reply('Makasih profil barunya😗')
  					break
  				case 'bc':
  					client.updatePresence(from, Presence.composing) 
  					if (!isOwner) return reply(mess.only.ownerB)
  					if (args.length < 1) return reply('.......')
  					anu = await client.chats.all()
  					if (isMedia && !mek.message.videoMessage || isQuotedImage) {
  						const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek
  						buff = await client.downloadMediaMessage(encmedia)
  						for (let _ of anu) {
  							client.sendMessage(_.jid, buff, image, {caption: `*「 BROADCAST 」*\n\n${body.slice(4)}`})
  						}
  						reply('')
  					} else {
  						for (let _ of anu) {
  							sendMess(_.jid, `*「 BROADCAST 」*\n\n${body.slice(4)}`)
  						}
  						reply('Sucesso Enviado Para Todos')
  					}
  					break
  					case 'bcgc':
  					client.updatePresence(from, Presence.composing) 
  					if (!isOwner) return reply(mess.only.ownerB)
  					if (args.length < 1) return reply('.......')
  					if (isMedia && !mek.message.videoMessage || isQuotedImage) {
  						const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek
  						buff = await client.downloadMediaMessage(encmedia)
  						for (let _ of groupMembers) {
  							client.sendMessage(_.jid, buff, image, {caption: `*「 BC GROUP 」*\n*Group* : ${groupName}\n\n${body.slice(6)}`})
  						}
  						reply('')
  					} else {
  						for (let _ of groupMembers) {
  							sendMess(_.jid, `*「 BC GROUP 」*\n*Group* : ${groupName}\n\n${body.slice(6)}`)
  						}
  						reply('Suksess broadcast group')
  					}
              break
  			case 'simi':
  				if (args.length < 1) return reply('Textnya mana um?')
  				teks = body.slice(5)
  				anu = await simih(teks) //fetchJson(`'https://mhankbarbars.herokuapp.com/api/samisami?text=${teks}`, {method: 'get'})
  				//if (anu.error) return reply('Simi ga tau kak')
  				reply(anu)
  				break
  			case 'simih':
  				if (!isGroup) return reply(mess.only.group)
  				if (!isGroupAdmins) return reply(mess.only.admin)
  				if (args.length < 1) return reply('Hmmmm')
  				if (Number(args[0]) === 1) {
  					if (isSimi) return reply('Simi Ativado')
  					samih.push(from)
  					fs.writeFileSync('./src/simi.json', JSON.stringify(samih))
  					reply('Simi Ativado Neste Grupo ✔️')
  				} else if (Number(args[0]) === 0) {
  					samih.splice(from, 1)
  					fs.writeFileSync('./src/simi.json', JSON.stringify(samih))
  					reply('Simi Desativado Neste Grupo ✔️')
  				} else {
  					reply('1 para ativar, 0 para desativar')
  				}
  				break
  				case 'alay':
                      client.updatePresence(from, Presence.composing) 
                      /*if (!isDaftar) return reply(mess.only.daftarB)*/
                      data = await fetchJson(`'https://arugaz.herokuapp.com/api/bapakfont?kata=${body.slice(6)}`)
                      reply(data.result)
                      break
                      case 'quotemaker':
                      gh = body.slice(12)
                      /*if (!isDaftar) return reply(mess.only.daftarB)*/
                      teks1 = gh.split("|")[0];
                      teks2 = gh.split("|")[1];
                      teks3 = gh.split("|")[2]
                      data = await fetchJson(`'https://terhambar.com/aw/qts/?kata=${teks1}&author=${teks2}&tipe=${teks3}`)
                      hasil = await getBuffer(data.result)
                      client.sendMessage(from, hasil, image, {quoted: mek, caption: 'neh...'})
                      break
                      case 'glitch':
                      gh = body.slice(8)
                      /*if (!isDaftar) return reply(mess.only.daftarB)*/
                      teks1 = gh.split("|")[0];
                      teks2 = gh.split("|")[1];
                      data = await fetchJson(`'https://tobz-api.herokuapp.com/api/textpro?theme=glitch&text1=${teks1}&text2=${teks2}&apikey=BotWeA`)
                      hasil = await getBuffer(data.result)
                      client.sendMessage(from, hasil, image, {quoted: mek, caption: 'neh...'})
                      break
                       case 'leave':
                      if (!isGroup) return reply(mess.only.group)
                      if (!isGroupAdmins) return reply(mess.only.admin)
                       setTimeout( () => {
  					client.groupLeave (from) 
  					}, 2000)
                       setTimeout( () => {
  					client.updatePresence(from, Presence.composing) 
  					client.sendMessage(from, 'Sayonara👋', text) // ur cods
  					}, 0)
                       break
  
  				case 'chord':
  					if (args.length < 1) return reply('judul lagunya mana kak')
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					tels = body.slice(7)					
  					anu = await fetchJson(`'https://arugaz.herokuapp.com/api/chord?q=${tels}`, {method: 'get'})
  					reply(anu.result)
  					break
  				case 'lirik':
  					if (args.length < 1) return reply('Lirik lagunya mana kak?')
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					tels = body.slice(7)
  					anu = await fetchJson(`'https://arugaz.herokuapp.com/api/lirik?judul=${tels}`, {method: 'get'})
  					reply(anu.result)
  					break
  			case 'igstalk':
                        hmm = await fetchJson(`'https://freerestapi.herokuapp.com/api/v1/igs?u=${body.slice(9)}`)
                       buffer = await getBuffer(hmm.data.profilehd)
                       hasil = `Fullname : ${hmm.data.fullname}\npengikut : ${hmm.data.follower}\nMengikuti : ${hmm.data.following}\nPrivate : ${hmm.data.private}\nVerified : ${hmm.data.verified}\nbio : ${hmm.data.bio}`
                      client.sendMessage(from, buffer, image, {quoted: mek, caption: hasil})
                      break
                      case 'ownergrup':
  				  case 'ownergroup':
                 client.updatePresence(from, Presence.composing) 
                options = {
            text: `Owner Group ini adalah : @${from.split("-")[0]}`,
            contextInfo: { mentionedJid: [from] }
             }
             client.sendMessage(from, options, text, { quoted: mek } )
  				break
             case 'quran':
  					anu = await fetchJson(`'https://api.banghasan.com/quran/format/json/acak`, {method: 'get'})
  					quran = `${anu.acak.ar.teks}\n\n${anu.acak.id.teks}\nQ.S ${anu.surat.nama} ayat ${anu.acak.id.ayat}`
  					client.sendMessage(from, quran, text, {quoted: mek})
  					break
             case 'nekonime':
             data = await fetchJson('https://waifu.pics/api/sfw/neko')
             /*if (!isDaftar) return reply(mess.only.daftarB)*/
             hasil = await getBuffer(data.url)
             client.sendMessage(from, hasil, image, {quoted: mek})
             break
  				case 'neko':
  					gatauda = body.slice(6)
  					reply(mess.wait)
  					anu = await fetchJson(`'https://arugaz.herokuapp.com/api/nekonime`, {method: 'get'})
  					buffer = await getBuffer(anu.result)
  					client.sendMessage(from, buffer, image, {quoted: mek})
  					break	
  				case 'lolihentai':
  					gatauda = body.slice(6)
  					reply(mess.wait)
  					anu = await fetchJson(`'https://api.lolis.life/random?nsfw=true`, {method: 'get'})
  					buffer = await getBuffer(anu.result)
  					client.sendMessage(from, buffer, image, {quoted: mek})
  					break	
  				case 'add':
  					client.updatePresence(from, Presence.composing) 
  					if (!isGroup) return reply(mess.only.group)
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					if (!isBotGroupAdmins) return reply(mess.only.Badmin)
  					if (args.length < 1) return reply('Yang mau di add jin ya?')
  					if (args[0].startsWith('08')) return reply('Gunakan kode negara mas')
  					try {
  						num = `${args[0].replace(/ /g, '')}@s.whatsapp.net`
  						client.groupAdd(from, [num])
  					} catch (e) {
  						console.log('Error :', e)
  						reply('Gagal menambahkan target, mungkin karena di private')
  					}
  					break
  				case 'kick':
  					client.updatePresence(from, Presence.composing) 
  					if (!isGroup) return reply(mess.only.group)
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					if (!isBotGroupAdmins) return reply(mess.only.Badmin)
  					if (mek.message.extendedTextMessage === undefined || mek.message.extendedTextMessage === null) return reply('Tag target yang ingin di tendang!')
  					mentioned = mek.message.extendedTextMessage.contextInfo.mentionedJid
  					if (mentioned.length > 1) {
  						teks = 'Perintah di terima, mengeluarkan :\n'
  						for (let _ of mentioned) {
  							teks += `@${_.split('@')[0]}\n`
  						}
  						mentions(teks, mentioned, true)
  						client.groupRemove(from, mentioned)
  					} else {
  						mentions(`Perintah di terima, mengeluarkan : @${mentioned[0].split('@')[0]}`, mentioned, true)
  						client.groupRemove(from, mentioned)
  					client.sendMessage(mentioned, 'yahaha Lu kekick😂', text)
  					}
  					break
  				case 'exe':
  	              client.updatePresence(from, Presence.composing) 
  	              if (!isOwner) return reply(mess.only.ownerB)
  	               const cmd = body.slice(5)
  	               exec(cmd, (err, stdout) => {
  		           if(err) return client.sendMessage(from, "Command Salah", text, { quoted: mek })
  		           if (stdout) {
  			       client.sendMessage(from, stdout, text, { quoted: mek })
  		           }
  	           })
                    break
                   case 'linkgroup':
  				case 'linkgrup':
  				case 'linkgc':
  				    client.updatePresence(from, Presence.composing) 
  				    if (!isGroup) return reply(mess.only.group)
                                       /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					if (!isBotGroupAdmins) return reply(mess.only.Badmin)
  					linkgc = await client.groupInviteCode (from)
  					yeh = `'https://chat.whatsapp.com/${linkgc}\n\nLink Group *${groupName}*`
  					client.sendMessage(from, yeh, text, {quoted: mek, detectLinks: false})
  					break
                  case 'qrcode':
                  buff = await getBuffer(`'https://api.qrserver.com/v1/create-qr-code/?data=${body.slice(8)}&size=1080%C3%971080`)
  				client.sendMessage(from, buff, image, {quoted: mek})
  				break
  				case 'ocr':
  					if ((isMedia && !mek.message.videoMessage || isQuotedImage) && args.length == 0) {
  						const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek
  						const media = await client.downloadAndSaveMediaMessage(encmedia)
  						reply(mess.wait)
  						await recognize(media, {lang: 'eng+ind', oem: 1, psm: 3})
  							.then(teks => {
  								reply(teks.trim())
  								fs.unlinkSync(media)
  							})
  							.catch(err => {
  								reply(err.message)
  								fs.unlinkSync(media)
  							})
  					} else {
  						reply('Foto aja mas')
  					}
  					break
  
  				case 'bugreport':
  				client.updatePresence(from, Presence.composing) 
  				if (args.length < 1) return reply('Bugnya apa kak?')
  					tek = body.slice(10)
  					bug = {
  					text: `*[BUG REPORT]*\n\n*Pengirim :* @${sender.split("@")[0]}\n*Pada Jam :* ${time}\n*Pesan :* ${tek}`,
  					contextInfo: { mentionedJid: [sender] }
  					}
  					client.sendMessage(nomorOwner, bug, text, {quoted: mek})
  					client.sendMessage(from, 'Laporan mu telah dikirim ke owner BOT, laporan palsu/main2 tidak akan ditanggapi.', text, {quoted: mek})
  					break
                 case 'apakah':
                 client.updatePresence(from, Presence.composing) 
  
                 random = apakah[Math.floor(Math.random() * (apakah.length))]
    	
  			   hasil = `Pertanyaan : *${body.slice(1)}*\n\nJawaban : *${random}*`
  			   reply(hasil)
  			   break
                case 'bisakah':
                  client.updatePresence(from, Presence.composing) 
                /*if (!isDaftar) return reply(mess.only.daftarB)*/
                  random = bisakah[Math.floor(Math.random() * (bisakah.length))]
    	
  			   hasil = `Pertanyaan : *${body.slice(1)}*\n\nJawaban : *${random}*`
  			   reply(hasil)
  			   break
                 case 'rate':
                client.updatePresence(from, Presence.composing) 
                /*if (!isDaftar) return reply(mess.only.daftarB)*/
                  random = `${Math.floor(Math.random() * 100)}`
                 hasil = `Pertanyaan : *${body.slice(1)}*\n\nJawaban : *${random}%*`
                reply(hasil)
                  break
  	    case 'kapankah':
                 client.updatePresence(from, Presence.composing) 
                  /*if (!isDaftar) return reply(mess.only.daftarB)*/
                 random = kapankah[Math.floor(Math.random() * (kapankah.length))]
                 random2 = `${Math.floor(Math.random() * 8)}`
                 hasil = `Pertanyaan : *${body.slice(1)}*\n\nJawaban : *${random2} ${random}*`
                reply(hasil)
                  break
  			case 'closegc':
  					client.updatePresence(from, Presence.composing) 
  					if (!isGroup) return reply(mess.only.group)
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					if (!isBotGroupAdmins) return reply(mess.only.Badmin)
  					var nomor = mek.participant
  					const close = {
  					text: `Grup ditutup oleh admin @${nomor.split("@s.whatsapp.net")[0]}\nsekarang *hanya admin* yang dapat mengirim pesan`,
  					contextInfo: { mentionedJid: [nomor] }
  					}
  					client.groupSettingChange (from, GroupSettingChange.messageSend, true);
  					reply(close)
  					break
                  case 'opengc':
                  case 'bukagc':
  					client.updatePresence(from, Presence.composing) 
  					if (!isGroup) return reply(mess.only.group)
  					if (!isGroupAdmins) return reply(mess.only.admin)
  					if (!isBotGroupAdmins) return reply(mess.only.Badmin)
  					open = {
  					text: `Grup dibuka oleh admin @${sender.split("@")[0]}\nsekarang *semua peserta* dapat mengirim pesan`,
  					contextInfo: { mentionedJid: [sender] }
  					}
  					client.groupSettingChange (from, GroupSettingChange.messageSend, false)
  					client.sendMessage(from, open, text, {quoted: mek})
  					break
  				case 'stiker':
  				case 'sticker':
  				case 'stickergif':
  				case 'stikergif':
  					if ((isMedia && !mek.message.videoMessage || isQuotedImage) && args.length == 0) {
  						const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek
  						const media = await client.downloadAndSaveMediaMessage(encmedia)
                                                  /*if (!isDaftar) return reply(mess.only.daftarB)*/
  						ran = getRandom('.webp')
  						await ffmpeg(`./${media}`)
  							.input(media)
  							.on('start', function (cmd) {
  								console.log(`Started : ${cmd}`)
  							})
  							.on('error', function (err) {
  								console.log(`Error : ${err}`)
  								fs.unlinkSync(media)
  								reply(mess.error.stick)
  							})
  							.on('end', function () {
  								console.log('Finish')
  								client.sendMessage(from, fs.readFileSync(ran), sticker, {quoted: mek})
  								fs.unlinkSync(media)
  								fs.unlinkSync(ran)
  							})
  							.addOutputOptions([`-vcodec`,`libwebp`,`-vf`,`scale='min(320,iw)':min'(320,ih)':force_original_aspect_ratio=decrease,fps=15, pad=320:320:-1:-1:color=white@0.0, split [a][b]; [a] palettegen=reserve_transparent=on:transparency_color=ffffff [p]; [b][p] paletteuse`])
  							.toFormat('webp')
  							.save(ran)
  						} else if ((isMedia && mek.message.videoMessage.seconds < 11 || isQuotedVideo && mek.message.extendedTextMessage.contextInfo.quotedMessage.videoMessage.seconds < 11) && args.length == 0) {
  						const encmedia = isQuotedVideo ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek
  						const media = await client.downloadAndSaveMediaMessage(encmedia)
  						ran = getRandom('.webp')
  						reply(mess.wait)
  						await ffmpeg(`./${media}`)
  							.inputFormat(media.split('.')[1])
  							.on('start', function (cmd) {
  								console.log(`Started : ${cmd}`)
  							})
  							.on('error', function (err) {
  								console.log(`Error : ${err}`)
  								fs.unlinkSync(media)
  								tipe = media.endsWith('.mp4') ? 'video' : 'gif'
  								reply(`❌ Gagal, pada saat mengkonversi ${tipe} ke stiker`)
  							})
  							.on('end', function () {
  								console.log('Finish')
  								buff = fs.readFileSync(ran)
  								client.sendMessage(from, buff, sticker)
  								fs.unlinkSync(media)
  								fs.unlinkSync(ran)
  							})
  							.addOutputOptions([`-vcodec`,`libwebp`,`-vf`,`scale='min(320,iw)':min'(320,ih)':force_original_aspect_ratio=decrease,fps=15, pad=320:320:-1:-1:color=white@0.0, split [a][b]; [a] palettegen=reserve_transparent=on:transparency_color=ffffff [p]; [b][p] paletteuse`])
  							.toFormat('webp')
  							.save(ran)
  						}
  						break
  				case 'animehug':
  					ranp = getRandom('.gif')
  					rano = getRandom('.webp')
  					anu = await fetchJson('https://tobz-api.herokuapp.com/api/hug&apikey=BotWeA', {method: 'get'})
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					if (anu.error) return reply(anu.error)
  					exec(`wget ${anu.result} -O ${ranp} && ffmpeg -i ${ranp} -vcodec libwebp -filter:v fps=fps=15 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${rano}`, (err) => {
  						fs.unlinkSync(ranp)
  						if (err) return reply(mess.error.stick)
  						buffer = fs.readFileSync(rano)
  						client.sendMessage(from, buffer, sticker, {quoted: mek})
  						fs.unlinkSync(rano)
  					})
  					break
  
  				case 'toimg':
  				    client.updatePresence(from, Presence.composing)
                                      /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					if (!isQuotedSticker) return reply('❌ reply stickernya um ❌')
  					reply(mess.wait)
  					encmedia = JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo
  					media = await client.downloadAndSaveMediaMessage(encmedia)
  					ran = getRandom('.png')
  					exec(`ffmpeg -i ${media} ${ran}`, (err) => {
  						fs.unlinkSync(media)
  						if (err) return reply('❌ Gagal, pada saat mengkonversi sticker ke gambar ❌')
  						buffer = fs.readFileSync(ran)
  						client.sendMessage(from, buffer, image, {quoted: mek, caption: '>//<'})
  						fs.unlinkSync(ran)
  					})
  					break
                  	case 'tomp3':
                  	client.updatePresence(from, Presence.composing) 
                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					if (!isQuotedVideo) return reply('❌ reply videonya um ❌')
  					reply(mess.wait)
  					encmedia = JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo
  					media = await client.downloadAndSaveMediaMessage(encmedia)
  					ran = getRandom('.mp4')
  					exec(`ffmpeg -i ${media} ${ran}`, (err) => {
  						fs.unlinkSync(media)
  						if (err) return reply('❌ Gagal, pada saat mengkonversi video ke mp3 ❌')
  						buffer = fs.readFileSync(ran)
  						client.sendMessage(from, buffer, audio, {mimetype: 'audio/mp4', quoted: mek})
  						fs.unlinkSync(ran)
  					})
  					break
  
                  case 'ninjalogo':
                        if (args.length < 1) return reply('Teks nya mana?')
                        /*if (!isDaftar) return reply(mess.only.daftarB)*/
                        gh = body.slice(11)
                        gl1 = gh.split("|")[0];
                        gl2 = gh.split("|")[1];
                        reply(mess.wait)
                        anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/textpro?theme=ninjalogo&text1=${gl1}&text2=${gl2}`, {method: 'get'})
                        buff = await getBuffer(anu.result)
                        client.sendMessage(from, buff, image, {quoted: mek})
                        break
                           case 'play':
                  reply(mess.wait)
                  anu = await fetchJson(`'https://api.vhtear.com/ytmp3?query=${body.slice(6)}&apikey=yourapikey`)
                 /*if (!isDaftar) return reply(mess.only.daftarB)*/
                 if (anu.error) return reply(anu.error)
                   infomp3 = `*Lagu Ditemukan!!!*\nJudul : ${anu.result.title}\nDurasi : ${anu.result.duration}\nUkuran : ${anu.result.size}\n\n*TUNGGU SEBENTAR LAGI DIKIRIM MOHON JANGAN SPAM YA SAYANG*`
                  buffer = await getBuffer(anu.result.thumb)
                  lagu = await getBuffer(anu.result.mp3)
                  client.sendMessage(from, buffer, image, {quoted: mek, caption: infomp3})
                  client.sendMessage(from, lagu, audio, {mimetype: 'audio/mp4', filename: `${anu.title}.mp3`, quoted: mek})
                  break
                        case 'joox2':
                  reply(mess.wait)
                  data = await fetchJson(`'https://tobz-api.herokuapp.com/api/joox?q=${body.slice(6)}&apikey=BotWeA`, {method: 'get'})
                 if (data.error) return reply(data.error)
                   infomp3 = `*Lagu Ditemukan!!!*\nJudul : ${data.result.judul}\nAlbum : ${data.result.album}\nDipublikasi : ${data.result.dipublikasi}\n*Filesize* : ${data.filesize}\n*TUNGGU SEBENTAR LAGI DIKIRIM MOHON JANGAN SPAM*`
                  buffer = await getBuffer(data.result.thumb)
                  lagu = await getBuffer(data.result.mp3)
                  client.sendMessage(from, buffer, image, {quoted: mek, caption: infomp3})
                  client.sendMessage(from, lagu, audio, {mimetype: 'audio/mp4', filename: `${data.result.title}.mp3`, quoted: mek})
                  break
                       case 'infocuaca':
                     anu = await fetchJson(`'http://tobz-cuaca.herokuapp.com/?menu=cuaca&wilayah=${body.slice(6)}&apiKey=SLpvUgOcMYwIx0pFeELt`, {method: 'get'})
                     /*if (!isDaftar) return reply(mess.only.daftarB)*/
                     if (anu.error) return reply(anu.error)
                     hasil = ` *Tempat : ${anu.tempat}\nCuaca : ${anu.cuaca}\nAngin : ${anu.angin}\nSuhu : ${anu.suhu}\nKelembapan : ${anu.kelembapan}`
                     client.sendMessage(from, hasil, text, {quoted: mek})
                     break
                                case 'game':
  					anu = await fetchJson(`'http://rt-files.000webhostapp.com/tts.php?apikey=rasitech`, {method: 'get'})
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					setTimeout( () => {
  					client.sendMessage(from, '*➸ Jawaban :* '+anu.result.jawaban+'\n'+anu.result.desk, text, {quoted: mek}) // ur cods
  					}, 30000) // 1000 = 1s,
  					setTimeout( () => {
  					client.sendMessage(from, '_10 Detik lagi…_', text) // ur cods
  					}, 20000) // 1000 = 1s,
  					setTimeout( () => {
  					client.sendMessage(from, '_20 Detik lagi_…', text) // ur cods
  					}, 10000) // 1000 = 1s,
  					setTimeout( () => {
  					client.sendMessage(from, '_30 Detik lagi_…', text) // ur cods
  					}, 1000) // 1000 = 1s,
  					setTimeout( () => {
  					client.sendMessage(from, anu.result.soal, text, { quoted: mek }) // ur cods
  					}, 0) // 1000 = 1s,
  					break
  					case 'level':
  						if (!isLevelingOn) return reply(mess.levelnoton)
  						if (!isGroup) return reply(mess.only.group)
  						const userLevel = getLevelingLevel(sender)
  						const userXp = getLevelingXp(sender)
  						if (userLevel === undefined && userXp === undefined) return reply(mess.levelnol)
  						sem = sender.replace('@s.whatsapp.net','')
  						resul = `◪ *LEVEL*\n  ├─ ❏ *Nome* : ${sem}\n  ├─ ❏ *XP do usuario* : ${userXp}\n  └─ ❏ *Level do usuario* : ${userLevel}`
  					   client.sendMessage(from, resul, text, { quoted: mek})
  						.catch(async (err) => {
  								console.error(err)
  								await reply(`Error!\n${err}`)
  							})
  					break
  					case 'fitnah':	
  				case 'fake':          
                 if (!isGroup) return reply(mess.only.group)
                  arg = body.substring(body.indexOf(' ') + 1)
  				isi = arg.split(' |')[0] 
  				pesan = arg.split('|')[1] 
  				pesan2 = arg.split('|')[2] 
                  reply(pesan, isi, pesan2)
                  break
                  case 'leveling':
                  if (!isGroup) return reply(mess.only.group)
                  if (!isGroupAdmins) return reply(mess.only.admin)
                  if (args.length < 1) return reply('Ketik 1 untuk mengaktifkan fitur')
                  if (args[0] === '1') {
                      if (isLevelingOn) return reply('*fitur level sudah aktif sebelum nya*')
                      _leveling.push(groupId)
                      fs.writeFileSync('./database/group/leveling.json', JSON.stringify(_leveling))
                       reply(mess.levelon)
                  } else if (args[0] === '0') {
                      _leveling.splice(groupId, 1)
                      fs.writeFileSync('./database/group/leveling.json', JSON.stringify(_leveling))
                       reply(mess.leveloff)
                  } else {
                      reply(' *Ketik perintah 1 untuk mengaktifkan, 0 untuk menonaktifkan* \n *Contoh: ${prefix}leveling 1*')
                  }
              break
  					case 'ping':
  							await client.sendMessage(from, `Pong!!!\nSpeed: ${processTime(time, moment())} _Second_`)
  							break
  					case 'neonlogo':
  							var gh = body.slice(9)
  							var teks1 = gh.split("|")[0];
  							if (args.length < 1) return reply('teksnya mana um\nContoh: ${prefix}neonlogo NazwaCanss')
  							reply(mess.wait)
  							anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/textpro?theme=neon_light&text=${teks1}&apikey=BotWeA`, {method: 'get'})
  							buffer = await getBuffer(anu.result)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Nih kak logonya...'})
  							break
  					case 'neonlogo2':
  							var gh = body.slice(9)
  							teks1 = gh.split("|")[0];
  							if (args.length < 1) return reply('teksnya mana um\nContoh: ${prefix}neonlogo2 NazwaCanss')
  							reply(mess.wait)
  							anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/textpro?theme=neon_technology&text=${text1}&apikey=BotWeA`, {method: 'get'})
  							buffer = await getBuffer(anu.result)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Nih kak logonya...'})
  							break
  					case 'lionlogo':
  							var gh = body.slice(11)
  							var teks1 = gh.split("|")[0];
  							var teks2 = gh.split("|")[1];
  							if (args.length < 1) return reply('teksnya mana um\nContoh: ${prefix}lionlogo Nazwa|Canss')
  							reply(mess.wait)
  							anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/textpro?theme=lionlogo&text1=${text1}&text2=${teks2}&apikey=BotWeA`, {method: 'get'})
  							buffer = await getBuffer(anu.result)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Nih kak logonya...'})
  							break
  					/*case 'jsholat':
  							tels = body.slice(8)
  							if (args.length < 1) return reply('Daerahnya dimana kak?')
  							anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/jadwalshalat?q=${tels}&apikey=BotWeA`, {method: 'get'})
  							reply(anu.result)
  							break*/
  					case 'jokerlogo':
  							var gh = body.slice(11)
  							var teks1 = gh.split("|")[0];
  							if (args.length < 1) return reply('teksnya mana um\nContoh: ${prefix}jokerlogo NazwaCanss')
  							reply(mess.wait)
  							anu = await fetchJson(`'https://tobz-api.herokuapp.com/api/textpro?theme=jokerlogo&text=${teks1}&apikey=BotWeA`, {method: 'get'})
  							buffer = await getBuffer(anu.result)
  							client.sendMessage(from, buffer, image, {quoted: mek, caption: 'Nih kak logonya...'})
  							break
                                  /*case 'daftar':
  					client.updatePresence(from, Presence.composing)
  					if (isDaftar) return reply('kamu sudah terdaftar')
  					if (args.length < 1) return reply(`Parameter Salah\nCommand : ${prefix}daftar nama|umur\nContoh : ${prefix}daftar Caliph|12`)
  					var reg = body.slice(8)
  					var jeneng = reg.split("|")[0];
  					var umure = reg.split("|")[1];
  						user.push(sender)
  						fs.writeFileSync('./src/daftar.json', JSON.stringify(user))
  						client.sendMessage(from, `\`\`\`Pendaftaran berhasil dengan SN: TM08GK8PPHBSJDH10J\`\`\`\n\n\`\`\`Pada ${date} ${time}\`\`\`\n\`\`\`[Nama]: ${jeneng}\`\`\`\n\`\`\`[Nomor]: wa.me/${sender.split("@")[0]}\`\`\`\n\`\`\`[Umur]: ${umure}\`\`\`\n\`\`\`Untuk menggunakan bot\`\`\`\n\`\`\`silahkan\`\`\`\n\`\`\`kirim ${prefix}help\`\`\`\n\`\`\`\nTotal Pengguna ${user.length}\`\`\``, text, {quoted: mek})
  					break*/
                                  case 'bemvindo':
  					if (!isGroup) return reply(mess.only.group)
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					if (!isGroupAdmins) return reply(mess.only.Badmin)
  					if (args.length < 1) return reply('ketik 1 untuk mengaktifkan')
  					if (Number(args[0]) === 1) {
  						if (isWelkom) return reply('fitur sudah aktif')
  						welkom.push(from)
  						fs.writeFileSync('./src/welkom.json', JSON.stringify(welkom))
  						reply('*❬ SUCESSO ❭* ativado o recurso de boas-vindas neste grupo')
  					} else if (Number(args[0]) === 0) {
  						welkom.splice(from, disable)
  						fs.writeFileSync('./src/welkom.json', JSON.stringify(welkom))
  						reply('*❬ SUCESSO ❭* desativado o recurso de boas-vindas neste grupo')
  					} else {
  						reply('digite 1 para ativar, 0 para desativar o recurso')
  					}
                                          break
                                  case 'fakta':
  					fakta = body.slice(1)
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					const fakta =['Massa bumi mencapai 5.972.190.000.000.000.000.000.000 kg. Mesekipun sedemikian berat, faktanya bumi memiliki kecepatan 107.281 km per jam untuk mengitari matahari. Cepat sekali, bukan?','Massa berat bumi didominasi debu-debu antariksa dan dapat berkurang akibat gas seperti hidrogen yang berkurang tiga kilogram setiap detiknya. Fakta unik ini menunjukkan bahwa bumi akan kehilangan 95 ribu ton massa setiap tahunnya','Pada 2018 populasi manusia diperkirakan mencapai 7,6 miliar orang. Meskipun bumi dipenuhi manusia, fakta unik mengungkapkan bahwa manusia tidak memengaruhi massa bumi. Hal ini dikarenakan manusia terbentuk dari atom dalam bentuk oksigen 65 persen, karbon 18,5 persen, dan hidrogen 9,5 persen.','bumi dipenuhi oleh 70 persen air sehingga kerap wajar jika bumi disebut dengan nama planet air. Lautan bumi yang paling dalam adalah Palung Mariana dengan kedalaman 10.994 meter di bawah air. Fakta unik dibalik Palung Mariana adalah jika kamu meletakkan Gunung Everest di sana, puncak tertingginya bahkan masih berada di bawah permukaan laut sejauh 1,6 kilometer!','Faktanya bumi yang manusia tinggali hanya satu persen bagian dari keseluruhan planet bumi. Fakta unik ini menunjukkan bahwa masih banyak bagian bumi yang memiliki misteri kehidupan. Tertarik melakukan penjelajahan untuk menguak misteri sekaligus fakta unik di bagian bumi lainnya','Terdapat sebuah kota di Rusia yang jalanannya tertata rapi dengan sebuah istana yang didesain seperti catur yang megah. Pembuatan pemukiman tersebut didalangi oleh presiden yang terobsesi dengan catur bernama Kirsan Ilyumzhinov.','Apakah kamu tahu fakta unik mengenai mozzarella yang dibuat dari susu kerbau dan bukan susu sapi? Sekitar 500 tahun yang lalu di Campania, Italia, mozzarella dibuat pertama kali menggunakan susu kerbau. Fakta unik dibalik penggunaan susu kerbau ini karena kandungan protein susu kerbau 10-11% lebih banyak daripada susu sapi.','Bali memiliki fakta unik karena memliki banyak hari libur yang disumbangkan oleh sejumlah hari raya besar keagamaan. Hampir setiap hari besar keagamaan ini setiap orang akan mendapatkan libur. Beberapa hai libur diantaranya adalah hari raya galungan, kuningan, nyepi, pagerwesi, saraswati, dan sejumlah upacara besar lainnya seperti piodalan (pujawali).','Ibukota Jakarta memiliki banyak pesona juga fakta unik yang mungkin belum kamu ketahui. Sebelum diberi nama Jakarta, Ibukota Indonesia ini telah memiliki beberapa kali perubahan nama. Nama Ibukota Indonesia sesuai urutan perubahannya diantaranya adalah Sunda Kelapa, Jayakarta, Batavia, Betawi, Jacatra, Jayakarta, dan Jakarta.','Pada tahun 1952 jendela pesawat didesain dalam bentuk persegi namun penggunaannya dinilai cacat sehingga tidak  diterapkan kembali. Jendela yang bulat dirancang untuk menyiasati perbedaan tekanan udara dalam dan luar pesawat untuk menghindari kegagalan struktural yang dapat menyebabkan kecelakaan pesawat.','Makanan utama dari nyamuk jantan dan betina pada umumnya adalah nektar dan zat manis yang sebagian besar diperoleh dari tanaman. Namun nyamuk membutuhkan protein tambahan unuk bertelur yang bisa didapatkan dari manusia sedangkan nyamuk jantan tidak membutuhkan zat protein tambahan untuk bertelur.','Jembatan suramadu (surabaya-madura) adalah jembatan terpanjang di Asia Tenggara (5438 m).','Tertawa dan bahagia meningkatkan imun, terutama produksi sel-sel pembunuh alamiah yang membantu melindungi tubuh dari penyakit','Kecoa kentut setiap 15 menit dan terus mengeluarkan gas metana (kentut) selama 18 jam setelah kematian.','Mengoleskan jeruk nipis dapat mencerahkan bagian lutut / siku yang hitam.','Energi yang dihasilkan oleh angin ribut (topan) selama 10 menit lebih besar dibandingkan energi dari bom saat perang','Satu-satunya indera manusia yang tidak berfungsi saat tidur adalah indera penciuman.','Para astronot dilarang makan makanan berjenis kacang-kacangan sebelum pergi ke luar angkasa. Karena bisa menyebabkan mereka mudah kentut. Dan gas kentut sangat membahayakan bagi baju luar angkasa mereka.','Di AS saja, kucing membunuh miliaran hewan dalam kurun waktu setahun. Mereka bertanggung jawab atas kematian 1,4 - 73,7 miliar burung dan 6,9 - 20,7 miliar mamalia setiap tahun. Bukan hanya itu, sejauh ini mereka benar-benar memusnahkan total 33 spesies dari dunia.','Ikan hiu kehilangan gigi lebih dari 6000buah setiap tahun, dan gigi barunya tumbuh dalam waktu 24 jam.','Semut dapat mengangkat Beban 50 kali tubuhnya.','Mulut menghasilkan 1 liter ludah setiap hari.','Siput bisa tidur selama 3 tahun','Kecoak bisa hidup 9 hari tanpa kepala, dan akan mati karena kelaparan','Mata burung unta lebih besar dari otaknya']
  					const keh = fakta[Math.floor(Math.random() * fakta.length)]
  					client.sendMessage(from, 'fakta : '+ keh, { quoted: mek })
  					break
                                  case 'water':
  					if (args.length < 1) return reply(mess.blank)
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					tels = body.slice(7)
  					if (tels.length > 15) return reply('Teksnya kepanjangan, maksimal 20 karakter')
  					reply(mess.wait)
  					anu = await fetchJson(`'https://zeksapi.herokuapp.com/api/tfire?text=${tels}&apikey=xptnbot352`, {method: 'get'})
  					buffer = await getBuffer(anu.result)
  					client.sendMessage(from, buffer, image, {quoted: mek})
  					break
  				case 'firetext':
  					if (args.length < 1) return reply(mess.blank)
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  					tels = body.slice(7)
  					if (tels.ength > 10) return reply('Teksnya kepanjangan, maksimal 9 karakter')
  					reply(mess.wait)
  					anu = await fetchJson(`'https://zeksapi.herokuapp.com/api/tlight?text=${tels}&apikey=xptnbot352`, {method: 'get'})
  					buff = await getBuffer(anu.result)
  					client.sendMessage(from, buff, image, {quoted: mek})
  					break
                                  case 'gantengcek':
  					/*if (isDaftar) return reply(mess.only.daftarB)*/
  					ganteng = body.slice(1)
  					const gan =['10','30','20','40','50','60','70','62','74','83','97','100','29','94','75','82','41','39']
  					const teng = gan[Math.floor(Math.random() * gan.length)]
  					client.sendMessage(from, 'Pertanyaan : *'+ganteng+'*\n\nJawaban : '+ teng+'%', text, { quoted: mek })
  					break
  					case 'cantikcek':
  					/*if (isDaftar) return reply(mess.only.daftarB)*/
  					cantik = body.slice(1)
  					const can =['10','30','20','40','50','60','70','62','74','83','97','100','29','94','75','82','41','39']
  					const tik = can[Math.floor(Math.random() * can.length)]
  					client.sendMessage(from, 'Pertanyaan : *'+cantik+'*\n\nJawaban : '+ tik+'%', text, { quoted: mek })
  					break
  				case 'watak':
  				/*if (isDaftar) return reply(mess.only.daftarB)*/
  					watak = body.slice(1)
  					const wa =['peny ayang','pem urah','Pem arah','Pem aaf','Pen urut','Ba ik','bap eran','Baik Hati','peny abar','Uw u','top deh, poko knya','Suka Memb antu']
  					const tak = wa[Math.floor(Math.random() * wa.length)]
  					client.sendMessage(from, 'Pertanyaan : *'+watak+'*\n\nJawaban : '+ tak, text, { quoted: mek })
  				    break
  				case 'hobby':
  				/*if (isDaftar) return reply(mess.only.daftarB)*/
  					hobby = body.slice(1)
  					const hob =['Memasak','Membantu Atok','Mabar','Nobar','Sosmedtan','Membantu Orang lain','Nonton Anime','Nonton Drakor','Naik Motor','Nyanyi','Menari','Bertumbuk','Menggambar','Foto fotoan Ga jelas','Maen Game','Berbicara Sendiri']
  					const by = hob[Math.floor(Math.random() * hob.length)]
  					client.sendMessage(from, 'Pertanyaan : *'+hobby+'*\n\nJawaban : '+ by, text, { quoted: mek })
  					break
  				case 'wait':
  					if ((isMedia && !mek.message.videoMessage || isQuotedImage) && args.length == 0) {
                                          /*if (!isDaftar) return reply(mess.only.daftarB)*/
  						reply(mess.wait)
  						const encmedia = isQuotedImage ? JSON.parse(JSON.stringify(mek).replace('quotedM','m')).message.extendedTextMessage.contextInfo : mek
  						media = await client.downloadMediaMessage(encmedia)
  						await wait(media).then(res => {
  							client.sendMessage(from, res.video, video, {quoted: mek, caption: res.teks.trim()})
  						}).catch(err => {
  							reply(err)
  						})
  					} else {
  						reply('Oiin mi mama senor?')
  					}
  					break
  				default:
  
     				         if (body.startsWith(`${prefix}${command}`)) {
                    reply(`Maaf *${pushname}*, Command *${prefix}${command}* Tidak Terdaftar Di Dalam *${prefix}menu*!`)
                                          }
  					if (isGroup && isSimi && budy != undefined) {
  						console.log(budy)
  						muehe = await simih(budy)
  						console.log(muehe)
  						reply(muehe)
  					} else {
  						console.log(color('[ERROR]','red'), 'Unregistered Command from', color(sender.split('@')[0]))
  					}
                             }
  		} catch (e) {
  			console.log('Error : %s', color(e, 'red'))
  		}
  	})
  }
  starts()
  