Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
jajbshjahavahh
GitHub Repository: jajbshjahavahh/Gojo-Satoru
Path: blob/master/Gojosensei.js
2390 views
1
require('./settings')
2
const { BufferJSON, WA_DEFAULT_EPHEMERAL, generateWAMessageFromContent, proto, generateWAMessageContent, generateWAMessage, prepareWAMessageMedia, areJidsSameUser, getContentType } = require('@adiwajshing/baileys')
3
const fs = require('fs')
4
const util = require('util')
5
const chalk = require('chalk')
6
const { exec, spawn, execSync } = require("child_process")
7
const axios = require('axios')
8
const path = require('path')
9
const os = require('os')
10
const maker = require('mumaker')
11
12
const moment = require('moment-timezone')
13
const { JSDOM } = require('jsdom')
14
const speed = require('performance-now')
15
const { performance } = require('perf_hooks')
16
const { Primbon } = require('scrape-primbon')
17
const primbon = new Primbon()
18
const { smsg, formatp, tanggal, formatDate, getTime, isUrl, sleep, clockString, runtime, fetchJson, getBuffer, jsonformat, format, parseMention, getRandom } = require('./lib/myfunc')
19
const nexusnw = require('xfarr-api')
20
21
//rpg function\\
22
const {
23
addInventoriDarah,
24
cekDuluJoinAdaApaKagaDiJson,
25
addDarah,
26
kurangDarah,
27
getDarah
28
} = require('./storage/user/darah.js')
29
const {
30
cekInventoryAdaAtauGak,
31
addInventori,
32
addBesi,
33
addEmas,
34
addEmerald,
35
addUmpan,
36
addPotion,
37
kurangBesi,
38
kurangEmas,
39
kurangEmerald,
40
kurangUmpan,
41
kurangPotion,
42
getBesi,
43
getEmas,
44
getEmerald,
45
getUmpan,
46
getPotion
47
} = require('./storage/user/alat_tukar.js')
48
const {
49
addInventoriMonay,
50
cekDuluJoinAdaApaKagaMonaynyaDiJson,
51
addMonay,
52
kurangMonay,
53
getMonay
54
} = require('./storage/user/monay.js')
55
const {
56
addInventoriLimit,
57
cekDuluJoinAdaApaKagaLimitnyaDiJson,
58
addLimit,
59
kurangLimit,
60
getLimit
61
} = require('./storage/user/limit.js')
62
const {
63
cekDuluHasilBuruanNya,
64
addInventoriBuruan,
65
addIkan,
66
addAyam,
67
addKelinci,
68
addDomba,
69
addSapi,
70
addGajah,
71
kurangIkan,
72
kurangAyam,
73
kurangKelinci,
74
kurangDomba,
75
kurangSapi,
76
kurangGajah,
77
getIkan,
78
getAyam,
79
getKelinci,
80
getDomba,
81
getSapi,
82
getGajah
83
} = require('./storage/user/buruan.js')
84
let DarahAwal = global.rpg.darahawal
85
const isDarah = cekDuluJoinAdaApaKagaDiJson(m.sender)
86
const isCekDarah = getDarah(m.sender)
87
const isUmpan = getUmpan(m.sender)
88
const isPotion = getPotion(m.sender)
89
const isIkan = getIkan(m.sender)
90
const isAyam = getAyam(m.sender)
91
const isKelinci = getKelinci(m.sender)
92
const isDomba = getDomba(m.sender)
93
const isSapi = getSapi(m.sender)
94
const isGajah = getGajah(m.sender)
95
const isMonay = getMonay(m.sender)
96
const isLimit = getLimit(m.sender)
97
const isBesi = getBesi(m.sender)
98
const isEmas = getEmas(m.sender)
99
const isEmerald = getEmerald(m.sender)
100
const isInventory = cekInventoryAdaAtauGak(m.sender)
101
const isInventoriBuruan = cekDuluHasilBuruanNya(m.sender)
102
const isInventoryLimit = cekDuluJoinAdaApaKagaLimitnyaDiJson(m.sender)
103
const isInventoryMonay = cekDuluJoinAdaApaKagaMonaynyaDiJson(m.sender)
104
const ikan = ['🐟','🐠','🐡']
105
106
//rpg database\\
107
let _limit = JSON.parse(fs.readFileSync('./storage/user/limit.json'));
108
let _buruan = JSON.parse(fs.readFileSync('./storage/user/hasil_buruan.json'));
109
let _darahOrg = JSON.parse(fs.readFileSync('./storage/user/darah.json'))
110
111
//Database\\
112
let setik = JSON.parse(fs.readFileSync('./database/setik.json'));
113
let vien = JSON.parse(fs.readFileSync('./database/vien.json'));
114
let imagi = JSON.parse(fs.readFileSync('./database/imagi.json'))
115
let videox = JSON.parse(fs.readFileSync('./database/video.json'))
116
117
//read database\\
118
let tebaklagu = db.data.game.tebaklagu = []
119
let _family100 = db.data.game.family100 = []
120
let kuismath = db.data.game.math = []
121
let tebakgambar = db.data.game.tebakgambar = []
122
let tebakkata = db.data.game.tebakkata = []
123
let caklontong = db.data.game.lontong = []
124
let caklontong_desk = db.data.game.lontong_desk = []
125
let tebakkalimat = db.data.game.kalimat = []
126
let tebaklirik = db.data.game.lirik = []
127
let tebaktebakan = db.data.game.tebakan = []
128
let vote = db.data.others.vote = []
129
130
module.exports = GojoMdNx = async (GojoMdNx, m, chatUpdate, store) => {
131
try {
132
var body = (m.mtype === 'conversation') ? m.message.conversation : (m.mtype == 'imageMessage') ? m.message.imageMessage.caption : (m.mtype == 'videoMessage') ? m.message.videoMessage.caption : (m.mtype == 'extendedTextMessage') ? m.message.extendedTextMessage.text : (m.mtype == 'buttonsResponseMessage') ? m.message.buttonsResponseMessage.selectedButtonId : (m.mtype == 'listResponseMessage') ? m.message.listResponseMessage.singleSelectReply.selectedRowId : (m.mtype == 'templateButtonReplyMessage') ? m.message.templateButtonReplyMessage.selectedId : (m.mtype === 'messageContextInfo') ? (m.message.buttonsResponseMessage?.selectedButtonId || m.message.listResponseMessage?.singleSelectReply.selectedRowId || m.text) : ''
133
var budy = (typeof m.text == 'string' ? m.text : '')
134
var prefix = prefa ? /^[°•π÷×¶∆£¢€¥®™+✓_=|~!?@#$%^&.©^]/gi.test(body) ? body.match(/^[°•π÷×¶∆£¢€¥®™+✓_=|~!?@#$%^&.©^]/gi)[0] : "" : prefa ?? global.prefix
135
const isCmd = body.startsWith(prefix)
136
const command = body.replace(prefix, '').trim().split(/ +/).shift().toLowerCase()
137
const args = body.trim().split(/ +/).slice(1)
138
const pushname = m.pushName || "No Name"
139
const botNumber = await GojoMdNx.decodeJid(GojoMdNx.user.id)
140
const isCreator = [botNumber, ...global.owner].map(v => v.replace(/[^0-9]/g, '') + '@s.whatsapp.net').includes(m.sender)
141
const itsMe = m.sender == botNumber ? true : false
142
const text = q = args.join(" ")
143
const quoted = m.quoted ? m.quoted : m
144
const mime = (quoted.msg || quoted).mimetype || ''
145
const isMedia = /image|video|sticker|audio/.test(mime)
146
const from = mek.key.remoteJid
147
const type = Object.keys(mek.message)[0]
148
const content = JSON.stringify(mek.message)
149
150
//group\\
151
const groupMetadata = m.isGroup ? await GojoMdNx.groupMetadata(m.chat).catch(e => {}) : ''
152
const groupName = m.isGroup ? groupMetadata.subject : ''
153
const participants = m.isGroup ? await groupMetadata.participants : ''
154
const groupAdmins = m.isGroup ? await participants.filter(v => v.admin !== null).map(v => v.id) : ''
155
const groupOwner = m.isGroup ? groupMetadata.owner : ''
156
const isBotAdmins = m.isGroup ? groupAdmins.includes(botNumber) : false
157
const isAdmins = m.isGroup ? groupAdmins.includes(m.sender) : false
158
const isPremium = isCreator || global.premium.map(v => v.replace(/[^0-9]/g, '') + '@s.whatsapp.net').includes(m.sender) || false
159
160
//member\\
161
let picaks = [flaming,fluming,flarun,flasmurf]
162
let picak = picaks[Math.floor(Math.random() * picaks.length)]
163
164
try {
165
let isNumber = x => typeof x === 'number' && !isNaN(x)
166
let limitUser = isPremium ? global.limitawal.premium : global.limitawal.free
167
let user = global.db.data.users[m.sender]
168
if (typeof user !== 'object') global.db.data.users[m.sender] = {}
169
if (user) {
170
if (!isNumber(user.afkTime)) user.afkTime = -1
171
if (!('afkReason' in user)) user.afkReason = ''
172
if (!isNumber(user.limit)) user.limit = limitUser
173
} else global.db.data.users[m.sender] = {
174
afkTime: -1,
175
afkReason: '',
176
limit: limitUser,
177
}
178
179
let chats = global.db.data.chats[m.chat]
180
if (typeof chats !== 'object') global.db.data.chats[m.chat] = {}
181
if (chats) {
182
if (!('mute' in chats)) chats.mute = false
183
if (!('antilink' in chats)) chats.antilink = false
184
} else global.db.data.chats[m.chat] = {
185
mute: false,
186
antilink: false,
187
}
188
189
let setting = global.db.data.settings[botNumber]
190
if (typeof setting !== 'object') global.db.data.settings[botNumber] = {}
191
if (setting) {
192
if (!isNumber(setting.status)) setting.status = 0
193
if (!('autobio' in setting)) setting.autobio = false
194
} else global.db.data.settings[botNumber] = {
195
status: 0,
196
autobio: false,
197
}
198
199
} catch (err) {
200
console.error(err)
201
}
202
203
//group target \\
204
const reply = (teks) => {
205
GojoMdNx.sendMessage(m.chat, { text: teks, contextInfo:{"externalAdReply": {"title": ` ${global.botname}`,"body": ` Gojo-Satoru`, "previewType": "PHOTO","thumbnailUrl": ``,"thumbnail": fs.readFileSync(`./GojoMedia/gojo.jpg`),"sourceUrl": "https://telegra.ph/file/8bbe8a7de5c351dfcb077.jpg"}}}, { quoted: m})
206
}
207
208
const replay = (teks) => {
209
GojoMdNx.sendMessage(m.chat, { text: teks, contextInfo:{"externalAdReply": {"title": ` ${global.botname}`,"body": ` Gojo-Satoru`, "previewType": "PHOTO","thumbnailUrl": ``,"thumbnail": fs.readFileSync(`./GojoMedia/gojo.jpg`),"sourceUrl": "https://telegra.ph/file/8bbe8a7de5c351dfcb077.jpg"}}}, { quoted: m})
210
}
211
212
//Public & Self\\
213
if (!GojoMdNx.public) {
214
if (!m.key.fromMe) return
215
}
216
217
//Push Message To Console && Auto Read\\
218
if (m.message) {
219
GojoMdNx.sendReadReceipt(m.chat, m.sender, [m.key.id])
220
console.log(chalk.black(chalk.bgWhite('[ MESSAGE ]')), chalk.black(chalk.bgGreen(new Date)), chalk.black(chalk.bgBlue(budy || m.mtype)) + '\n' + chalk.magenta('=> From'), chalk.green(pushname), chalk.yellow(m.sender) + '\n' + chalk.blueBright('=> In'), chalk.green(m.isGroup ? pushname : 'Private Chat', m.chat))
221
}
222
223
//reset limit every 12 hours\\
224
let cron = require('node-cron')
225
cron.schedule('00 12 * * *', () => {
226
let user = Object.keys(global.db.data.users)
227
let limitUser = isPremium ? global.limitawal.premium : global.limitawal.free
228
for (let jid of user) global.db.data.users[jid].limit = limitUser
229
console.log('Limit Reseted')
230
}, {
231
scheduled: true,
232
timezone: "Asia/Kolkata"
233
})
234
235
//auto set bio\\
236
if (db.data.settings[botNumber].autobio) {
237
let setting = global.db.data.settings[botNumber]
238
if (new Date() * 1 - setting.status > 1000) {
239
let uptime = await runtime(process.uptime())
240
await GojoMdNx.setStatus(`${GojoMdNx.user.name} | Runtime : ${runtime(uptime)}`)
241
setting.status = new Date() * 1
242
}
243
}
244
245
//antilink\\
246
if (db.data.chats[m.chat].antilink) {
247
if (budy.match(`chat.whatsapp.com`)) {
248
reply(`「 ANTI LINK 」\n\nYou have been detected sending a group link, sorry you will be kicked !`)
249
if (!isBotAdmins) return reply(`I Am Not An Admin, How Could I Kick Somebody Who Send Link 😒`)
250
let gclink = (`https://chat.whatsapp.com/`+await GojoMdNx.groupInviteCode(m.chat))
251
let isLinkThisGc = new RegExp(gclink, 'i')
252
let isgclink = isLinkThisGc.test(m.text)
253
if (isgclink) return reply(`Group Is Installed With Anti-Link But I Won't Kick You 😉, Because You Sent This Group Link❤️`)
254
if (isAdmins) return reply(`Group Is Installed With Anti-Link But I Won't Kick You 😉, Because You Are An Admin Of The Group❤️`)
255
if (isCreator) return reply(`Group Is Installed With Anti-Link But I Won't Kick You 😉, Because You Are My Owner Hahahahah🤣😘, You Think I Will Betray You Huh🐦`)
256
GojoMdNx.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
257
}
258
}
259
260
//auto reply
261
for (let anji of setik){
262
if (budy === anji){
263
result = fs.readFileSync(`./GojoMedia/sticker/${anji}.webp`)
264
GojoMdNx.sendMessage(m.chat, { sticker: result }, { quoted: m })
265
}
266
}
267
for (let anju of vien){
268
if (budy === anju){
269
result = fs.readFileSync(`./GojoMedia/vn/${anju}.mp3`)
270
GojoMdNx.sendMessage(m.chat, { audio: result, mimetype: 'audio/mp4', ptt: true }, { quoted: m })
271
}
272
}
273
for (let anjh of imagi){
274
if (budy === anjh){
275
result = fs.readFileSync(`./GojoMedia/image/${anjh}.jpg`)
276
GojoMdNx.sendMessage(m.chat, { image: result }, { quoted: m })
277
}
278
}
279
for (let anjh of videox){
280
if (budy === anjh){
281
result = fs.readFileSync(`./GojoMedia/vid/${anjh}.mp4`)
282
GojoMdNx.sendMessage(m.chat, { video: result }, { quoted: m })
283
}
284
}
285
286
//Mute Chat\\
287
if (db.data.chats[m.chat].mute && !isAdmins && !isCreator) {
288
return
289
}
290
291
//media detect \\
292
const isQuotedImage = type === 'extendedTextMessage' && content.includes('imageMessage')
293
const isQuotedVideo = type === 'extendedTextMessage' && content.includes('videoMessage')
294
const isQuotedAudio = type === 'extendedTextMessage' && content.includes('audioMessage')
295
const isQuotedSticker = type === 'extendedTextMessage' && content.includes('stickerMessage')
296
297
//Respon Cmd with media\\
298
if (isMedia && m.msg.fileSha256 && (m.msg.fileSha256.toString('base64') in global.db.data.sticker)) {
299
let hash = global.db.data.sticker[m.msg.fileSha256.toString('base64')]
300
let { text, mentionedJid } = hash
301
let messages = await generateWAMessage(m.chat, { text: text, mentions: mentionedJid }, {
302
userJid: GojoMdNx.user.id,
303
quoted: m.quoted && m.quoted.fakeObj
304
})
305
messages.key.fromMe = areJidsSameUser(m.sender, GojoMdNx.user.id)
306
messages.key.id = m.key.id
307
messages.pushName = m.pushName
308
if (m.isGroup) messages.participant = m.sender
309
let msg = {
310
...chatUpdate,
311
messages: [proto.WebMessageInfo.fromObject(messages)],
312
type: 'append'
313
}
314
GojoMdNx.ev.emit('messages.upsert', msg)
315
}
316
317
if (('family100'+m.chat in _family100) && isCmd) {
318
kuis = true
319
let room = _family100['family100'+m.chat]
320
let teks = budy.toLowerCase().replace(/[^\w\s\-]+/, '')
321
let isSurender = /^((me)?give up|surr?ender)$/i.test(m.text)
322
if (!isSurender) {
323
let index = room.jawaban.findIndex(v => v.toLowerCase().replace(/[^\w\s\-]+/, '') === teks)
324
if (room.terjawab[index]) return !0
325
room.terjawab[index] = m.sender
326
}
327
let isWin = room.terjawab.length === room.terjawab.filter(v => v).length
328
let caption = `
329
Answer The Following Questions :\n${room.soal}\n\n\nThere Is ${room.jawaban.length} Answer ${room.jawaban.find(v => v.includes(' ')) ? `(Some Answers Have Spaces)` : ''}
330
${isWin ? `All Answers Answered` : isSurender ? 'Surrender!' : ''}
331
${Array.from(room.jawaban, (jawaban, index) => {
332
return isSurender || room.terjawab[index] ? `(${index + 1}) ${jawaban} ${room.terjawab[index] ? '@' + room.terjawab[index].split('@')[0] : ''}`.trim() : false
333
}).filter(v => v).join('\n')}
334
${isSurender ? '' : `Perfect Player`}`.trim()
335
GojoMdNx.sendText(m.chat, caption, m, { contextInfo: { mentionedJid: parseMention(caption) }}).then(mes => { return _family100['family100'+m.chat].pesan = mesg }).catch(_ => _)
336
if (isWin || isSurender) delete _family100['family100'+m.chat]
337
}
338
339
if (tebaklagu.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
340
kuis = true
341
jawaban = tebaklagu[m.sender.split('@')[0]]
342
if (budy.toLowerCase() == jawaban) {
343
await GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess song', buttonText: { displayText: 'Guess The Song' }, type: 1 }], `🎮 Guess The Music 🎮\n\nCorrect Answer 🎉\n\nWant To Play Again? Press The Button Below`, GojoMdNx.user.name, m)
344
delete tebaklagu[m.sender.split('@')[0]]
345
} else reply('*Wrong Answer!*')
346
}
347
348
if (kuismath.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
349
kuis = true
350
jawaban = kuismath[m.sender.split('@')[0]]
351
if (budy.toLowerCase() == jawaban) {
352
await reply(`🎮 Math Quiz 🎮\n\nCorrect Answer 🎉\n\nWant To Play Again? Send ${prefix}math mode`)
353
delete kuismath[m.sender.split('@')[0]]
354
} else reply('*Wrong Answer!*')
355
}
356
357
if (tebakgambar.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
358
kuis = true
359
jawaban = tebakgambar[m.sender.split('@')[0]]
360
if (budy.toLowerCase() == jawaban) {
361
await GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess picture', buttonText: { displayText: 'Guess The Picture' }, type: 1 }], `🎮 Guess The Picture 🎮\n\nCorrect Answer 🎉\n\nWant To Play Again? Press The Button Below`, GojoMdNx.user.name, m)
362
delete tebakgambar[m.sender.split('@')[0]]
363
} else reply('*Wrong Answer!*')
364
}
365
366
if (tebakkata.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
367
kuis = true
368
jawaban = tebakkata[m.sender.split('@')[0]]
369
if (budy.toLowerCase() == jawaban) {
370
await GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess word', buttonText: { displayText: 'Guess The Word' }, type: 1 }], `🎮 Guess The Word 🎮\n\nCorrect Answer 🎉\n\nWant To Play Again? Press The Button Below`, GojoMdNx.user.name, m)
371
delete tebakkata[m.sender.split('@')[0]]
372
} else reply('*Wrong Answer!*')
373
}
374
375
if (caklontong.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
376
kuis = true
377
jawaban = caklontong[m.sender.split('@')[0]]
378
deskripsi = caklontong_desk[m.sender.split('@')[0]]
379
if (budy.toLowerCase() == jawaban) {
380
await GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess blank', buttonText: { displayText: 'Guess The Blank' }, type: 1 }], `🎮 Guess The Blank 🎮\n\nCorrect Answer 🎉\n*${deskripsi}*\n\nWant To Play Again? Press The Button Below`, GojoMdNx.user.name, m)
381
delete caklontong[m.sender.split('@')[0]]
382
delete caklontong_desk[m.sender.split('@')[0]]
383
} else reply('*Wrong Answer!*')
384
}
385
386
if (tebakkalimat.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
387
kuis = true
388
jawaban = tebakkalimat[m.sender.split('@')[0]]
389
if (budy.toLowerCase() == jawaban) {
390
await GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess sentence', buttonText: { displayText: 'Guess The Sentence' }, type: 1 }], `🎮 Guess The Sentence 🎮\n\nCorrect Answer 🎉\n\nWant To Play Again? Press The Button Below`, GojoMdNx.user.name, m)
391
delete tebakkalimat[m.sender.split('@')[0]]
392
} else reply('*Wrong Answer!*')
393
}
394
395
if (tebaklirik.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
396
kuis = true
397
jawaban = tebaklirik[m.sender.split('@')[0]]
398
if (budy.toLowerCase() == jawaban) {
399
await GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess lyrics', buttonText: { displayText: 'Guess The Lyrics' }, type: 1 }], `🎮 Guess The Lyrics 🎮\n\nCorrect Answer 🎉\n\nWant To Play Again? Press The Button Below`, GojoMdNx.user.name, m)
400
delete tebaklirik[m.sender.split('@')[0]]
401
} else reply('*Wrong Answer!*')
402
}
403
404
if (tebaktebakan.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
405
kuis = true
406
jawaban = tebaktebakan[m.sender.split('@')[0]]
407
if (budy.toLowerCase() == jawaban) {
408
await GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess riddle', buttonText: { displayText: 'Guess The Riddle' }, type: 1 }], `🎮 Guess The Riddle 🎮\n\nCorrect Answer 🎉\n\nWant To Play Again? Press The Button Below`, GojoMdNx.user.name, m)
409
delete tebaktebakan[m.sender.split('@')[0]]
410
} else reply('*Wrong Answer!*')
411
}
412
413
//TicTacToe\\
414
this.game = this.game ? this.game : {}
415
let room = Object.values(this.game).find(room => room.id && room.game && room.state && room.id.startsWith('tictactoe') && [room.game.playerX, room.game.playerO].includes(m.sender) && room.state == 'PLAYING')
416
if (room) {
417
let ok
418
let isWin = !1
419
let isTie = !1
420
let isSurrender = !1
421
//reply(`[DEBUG]\n${parseInt(m.text)}`)
422
if (!/^([1-9]|(me)?give up|surr?ender|off|skip)$/i.test(m.text)) return
423
isSurrender = !/^[1-9]$/.test(m.text)
424
if (m.sender !== room.game.currentTurn) {
425
if (!isSurrender) return !0
426
}
427
if (!isSurrender && 1 > (ok = room.game.turn(m.sender === room.game.playerO, parseInt(m.text) - 1))) {
428
reply({
429
'-3': 'Game Has Ended',
430
'-2': 'Invalid',
431
'-1': 'Invalid Position',
432
0: 'Invalid Position',
433
}[ok])
434
return !0
435
}
436
if (m.sender === room.game.winner) isWin = true
437
else if (room.game.board === 511) isTie = true
438
let arr = room.game.render().map(v => {
439
return {
440
X: '❌',
441
O: '⭕',
442
1: '1️⃣',
443
2: '2️⃣',
444
3: '3️⃣',
445
4: '4️⃣',
446
5: '5️⃣',
447
6: '6️⃣',
448
7: '7️⃣',
449
8: '8️⃣',
450
9: '9️⃣',
451
}[v]
452
})
453
if (isSurrender) {
454
room.game._currentTurn = m.sender === room.game.playerX
455
isWin = true
456
}
457
let winner = isSurrender ? room.game.currentTurn : room.game.winner
458
let str = `Room ID: ${room.id}
459
460
${arr.slice(0, 3).join('')}
461
${arr.slice(3, 6).join('')}
462
${arr.slice(6).join('')}
463
464
${isWin ? `@${winner.split('@')[0]} Won!` : isTie ? `Game Over` : `Turn ${['❌', '⭕'][1 * room.game._currentTurn]} (@${room.game.currentTurn.split('@')[0]})`}
465
❌: @${room.game.playerX.split('@')[0]}
466
⭕: @${room.game.playerO.split('@')[0]}
467
468
Typed *surrender* to surrender and admited defeat`
469
if ((room.game._currentTurn ^ isSurrender ? room.x : room.o) !== m.chat)
470
room[room.game._currentTurn ^ isSurrender ? 'x' : 'o'] = m.chat
471
if (room.x !== room.o) await GojoMdNx.sendText(room.x, str, m, { mentions: parseMention(str) } )
472
await GojoMdNx.sendText(room.o, str, m, { mentions: parseMention(str) } )
473
if (isTie || isWin) {
474
delete this.game[room.id]
475
}
476
}
477
478
//Suit PvP\\
479
this.suit = this.suit ? this.suit : {}
480
let roof = Object.values(this.suit).find(roof => roof.id && roof.status && [roof.p, roof.p2].includes(m.sender))
481
if (roof) {
482
let win = ''
483
let tie = false
484
if (m.sender == roof.p2 && /^(acc(ept)?|accept|yes|okay?|reject|no|later|nope(k.)?yes|y)/i.test(m.text) && m.isGroup && roof.status == 'wait') {
485
if (/^(reject|no|later|n|nope(k.)?yes)/i.test(m.text)) {
486
GojoMdNx.sendTextWithMentions(m.chat, `@${roof.p2.split`@`[0]} Refuse Suit, Suit Canceled`, m)
487
delete this.suit[roof.id]
488
return !0
489
}
490
roof.status = 'play'
491
roof.asal = m.chat
492
clearTimeout(roof.waktu)
493
//delete roof[roof.id].waktu
494
GojoMdNx.sendText(m.chat, `Suit Has Been Sent To Chat
495
496
@${roof.p.split`@`[0]} dan
497
@${roof.p2.split`@`[0]}
498
499
Please Choose A Suit In The Respective Chat"
500
Click https://wa.me/${botNumber.split`@`[0]}`, m, { mentions: [roof.p, roof.p2] })
501
if (!roof.pilih) GojoMdNx.sendText(roof.p, `Please Select \n\Rock🗿\nPaper📄\nScissors✂️`, m)
502
if (!roof.pilih2) GojoMdNx.sendText(roof.p2, `Please Select \n\nRock🗿\nPaper📄\nScissors✂️`, m)
503
roof.waktu_milih = setTimeout(() => {
504
if (!roof.pilih && !roof.pilih2) GojoMdNx.sendText(m.chat, `Both Players Don't Want To Play,\nSuit Canceled`)
505
else if (!roof.pilih || !roof.pilih2) {
506
win = !roof.pilih ? roof.p2 : roof.p
507
GojoMdNx.sendTextWithMentions(m.chat, `@${(roof.pilih ? roof.p2 : roof.p).split`@`[0]} Didn't Choose Suit, Game Over!`, m)
508
}
509
delete this.suit[roof.id]
510
return !0
511
}, roof.timeout)
512
}
513
let jwb = m.sender == roof.p
514
let jwb2 = m.sender == roof.p2
515
let g = /scissors/i
516
let b = /rock/i
517
let k = /paper/i
518
let reg = /^(scissors|rock|paper)/i
519
if (jwb && reg.test(m.text) && !roof.pilih && !m.isGroup) {
520
roof.pilih = reg.exec(m.text.toLowerCase())[0]
521
roof.text = m.text
522
reply(`You Have Chosen ${m.text} ${!roof.pilih2 ? `\n\nWaiting For The Opponent To Choose` : ''}`)
523
if (!roof.pilih2) GojoMdNx.sendText(roof.p2, '_The Opponent Has Chosen_\nNow It Is Your Turn', 0)
524
}
525
if (jwb2 && reg.test(m.text) && !roof.pilih2 && !m.isGroup) {
526
roof.pilih2 = reg.exec(m.text.toLowerCase())[0]
527
roof.text2 = m.text
528
reply(`You Have Chosen ${m.text} ${!roof.pilih ? `\n\nWaiting For The Opponent To Choose` : ''}`)
529
if (!roof.pilih) GojoMdNx.sendText(roof.p, '_The Opponent Has Chosen_\nNow It Is Your Turn', 0)
530
}
531
let stage = roof.pilih
532
let stage2 = roof.pilih2
533
if (roof.pilih && roof.pilih2) {
534
clearTimeout(roof.waktu_milih)
535
if (b.test(stage) && g.test(stage2)) win = roof.p
536
else if (b.test(stage) && k.test(stage2)) win = roof.p2
537
else if (g.test(stage) && k.test(stage2)) win = roof.p
538
else if (g.test(stage) && b.test(stage2)) win = roof.p2
539
else if (k.test(stage) && b.test(stage2)) win = roof.p
540
else if (k.test(stage) && g.test(stage2)) win = roof.p2
541
else if (stage == stage2) tie = true
542
GojoMdNx.sendText(roof.asal, `_*Suit Results*_${tie ? '\nSERIES' : ''}
543
544
@${roof.p.split`@`[0]} (${roof.text}) ${tie ? '' : roof.p == win ? ` Win \n` : ` Lost \n`}
545
@${roof.p2.split`@`[0]} (${roof.text2}) ${tie ? '' : roof.p2 == win ? ` Win \n` : ` Lost \n`}
546
`.trim(), m, { mentions: [roof.p, roof.p2] })
547
delete this.suit[roof.id]
548
}
549
}
550
551
let mentionUser = [...new Set([...(m.mentionedJid || []), ...(m.quoted ? [m.quoted.sender] : [])])]
552
for (let jid of mentionUser) {
553
let user = global.db.data.users[jid]
554
if (!user) continue
555
let afkTime = user.afkTime
556
if (!afkTime || afkTime < 0) continue
557
let reason = user.afkReason || ''
558
reply(`
559
Don't tag him!
560
He's in AFK/Offline ${reason ? 'dengan alasan ' + reason : 'no reason'}
561
It's been ${clockString(new Date - afkTime)}
562
`.trim())
563
}
564
565
if (db.data.users[m.sender].afkTime > -1) {
566
let user = global.db.data.users[m.sender]
567
reply(`
568
You Came Back Online From AFK${user.afkReason ? ' after ' + user.afkReason : ''}
569
In ${clockString(new Date - user.afkTime)}
570
`.trim())
571
user.afkTime = -1
572
user.afkReason = ''
573
}
574
switch(command) {
575
case 'inventori': case 'inventory': case 'profile':{
576
if (q.includes('--help')) return reply(examkosong)
577
if (!isDarah){ addInventoriDarah(m.sender, DarahAwal) }
578
if (!isInventory){ addInventori(m.sender) }
579
if (!isInventoriBuruan){ addInventoriBuruan(m.sender) }
580
581
var GojoMdNx = await getBuffer(picak+`User's Inventory`)
582
let teksehmazeh = `_[ 👩🏻‍💼INFO USER👨🏻‍💼 ]_\n\n`
583
teksehmazeh += `*❤️Your Blood* : ${getDarah(m.sender)}\n`
584
teksehmazeh += `*◻️️Your Iron* : ${getBesi(m.sender)}\n`
585
teksehmazeh += `*🌟Your Gold* : ${getEmas(m.sender)}\n`
586
teksehmazeh += `*💎Your Emerald* : ${getEmerald(m.sender)}\n`
587
teksehmazeh += `*⏺️Your Limit* : ${getLimit(m.sender)}\n`
588
teksehmazeh += `*🧪Your Potion* : ${getPotion(m.sender)}\n\n`
589
teksehmazeh += `_[ 🐺HUNT RESULT🐺 ]_\n`
590
teksehmazeh += `*🐟Fish* : ${getIkan(m.sender)}\n`
591
teksehmazeh += `*🐔Chicken* : ${getAyam(m.sender)}\n`
592
teksehmazeh += `*🐇Rabbit* : ${getKelinci(m.sender)}\n`
593
teksehmazeh += `*🐑Sheep* : ${getDomba(m.sender)}\n`
594
teksehmazeh += `*🐄Cow* : ${getSapi(m.sender)}\n`
595
teksehmazeh += `*🐘Elephant* : ${getGajah(m.sender)}\n\n`
596
teksehmazeh += `_*${pushname}*_`
597
await GojoMdNx.send5ButImg(from, `` + '' + teksehmazeh, `© ${footer}`, GojoMdNx, [{"urlButton": {"displayText": "YouTube📍","url": `${myweb}`}}])
598
}
599
break
600
case 'userlimit':
601
{
602
let txt = `「 *ALL LIMIT USER* 」\n\n`
603
for (let i of _limit){
604
txt += `➸ *ID :* @${i.id.split("@")[0]}\n➸ *Limit* : ${i.limit}\n`
605
}
606
reply(txt)
607
}
608
break
609
case 'leaderboard':
610
{
611
let txt = `「 *LEADERBOARD* 」\n\n`
612
for (let i of _buruan){
613
txt += `➸ *ID :* ${i.id}\n`
614
txt += `*🐟Fish* : ${i.ikan}\n`
615
txt += `*🐔Chicken* : ${i.ayam}\n`
616
txt += `*🐇Rabbit* : ${i.kelinci}\n`
617
txt += `*🐑Sheep* : ${i.domba}\n`
618
txt += `*🐄Cow* : ${i.sapi}\n`
619
txt += `*🐘Elephant* : ${i.gajah}\n\n`
620
}
621
reply(txt)
622
}
623
break
624
case 'mining': case 'mine':{
625
if (q.includes('--help')) return reply(examkosong)
626
if (!isInventory){ addInventori(m.sender) }
627
if (isCekDarah < 1) return reply(`You're Tired!, Try To Heal Using Potions`)
628
let besi = [1,2,5,0,3,0,1,1,4,1,5,0,0]
629
let emas = [0,1,2,3,0,0,0,1,1,0,0,2]
630
let emerald = [0,0,1,0,0,1,0,2,1,0,0,1]
631
var besinya = besi[Math.floor(Math.random() * besi.length)]
632
var emasnya = emas[Math.floor(Math.random() * emas.length)]
633
var emeraldnya = emerald[Math.floor(Math.random() * emerald.length)]
634
setTimeout( () => {
635
let caption = `[ MINING RESULT ]\n*Iron* : ${besinya}\n*Gold* : ${emasnya}\n*Emerald* : ${emeraldnya}`
636
let buttons = [
637
{
638
buttonId: `${prefix + command}`,
639
buttonText: {
640
displayText: 'Mine Again⛏️'
641
}, type: 1},
642
]
643
let buttonMessage = {
644
image: { url: './storage/image/tambang.jpg' },
645
caption: caption,
646
footer: pushname,
647
buttons: buttons,
648
headerType: 4
649
}
650
GojoMdNx.sendMessage(from, buttonMessage, { quoted: m })
651
652
}, 7000)
653
setTimeout( () => {
654
reply(`@${m.sender.split("@")[0]} Started Mining🎣`)
655
}, 1500)
656
kurangDarah(m.sender, 10)
657
addBesi(m.sender, besinya)
658
addEmas(m.sended, emasnya)
659
addEmerald(m.sender, emeraldnya)
660
}
661
break
662
//transaction\\
663
case 'beli': case 'buy':{
664
if (q.includes('--help')) return reply(examkosong)
665
if (!isInventoriBuruan){ addInventoriBuruan(m.sender) }
666
if (!isInventoryMonay){ addInventoriMonay(m.sender) }
667
if (!isInventory){ addInventori(m.sender) }
668
if (!q) return reply(`What Do You Want To Buy?\n\n1.potion\n2.baitfood\n3.limit\n\nExample: ${prefix + command} baitfood`)
669
var anu = args[1]
670
if (args[0] === 'potion'){
671
let noh = 100000 * anu
672
if (!args[1]) return reply(`Example : ${prefix + command} potion 2\n 1 Potion = 100000 Money`)
673
if (isMonay < noh) return reply('Your Remaining Money Is Not Sufficient For This Purchase')
674
kurangMonay(m.sender, noh)
675
var apalu = anu * 1
676
addPotion(m.sender, apalu)
677
setTimeout( () => {
678
reply(`Transaction Successful ✔️\n*Your Remaining Money* : ${getMonay(m.sender)}\n*Your Potion* : ${getPotion(m.sender)}`)
679
}, 2000)
680
} else
681
if (args[0] === 'baitfood'){
682
let noh = 5000 * anu
683
if (!args[1]) return reply(`Example : ${prefix + command} baitfood 2\n 1 Bait Food = 2500 Money`)
684
if (isMonay < noh) return reply('Your Remaining Money Is Not Sufficient For This Purchase')
685
kurangMonay(m.sender, noh)
686
var apalu = anu * 1
687
addUmpan(m.sender, apalu)
688
setTimeout( () => {
689
reply(`Transaction Successful ✔️\n*Your Remaining Money* : ${getMonay(m.sender)}\n*Your Bait Food* : ${getUmpan(m.sender)}`)
690
}, 2000)
691
} else
692
if (args[0] === 'limit'){
693
let noh = 35000 * anu
694
if (!args[1]) return reply(`Example : ${prefix + command} limit 2\n 1 Limit = 35000 Money`)
695
if (isMonay < noh) return reply('Your Remaining Money Is Not Sufficient For This Purchase')
696
kurangMonay(m.sender, noh)
697
var apalu = anu * 1
698
addLimit(m.sender, apalu)
699
setTimeout( () => {
700
reply(`Transaction Successful ✔️\n*Your Remaining Money* : ${getMonay(m.sender)}\n*Your Limit* : ${getLimit(m.sender)}`)
701
}, 2000)
702
} else { reply("Incorrect Format!") }
703
}
704
break
705
case 'sel': case 'jual':{
706
if (!q) return reply(`What Do You Want To Sell??\nExample : ${prefix + command} fish 2`)
707
if (!isInventoriBuruan){ addInventoriBuruan(m.sender) }
708
if (!isInventoryMonay){ addInventoriMonay(m.sender) }
709
if (!isInventory){ addInventori(m.sender) }
710
var anu = args[1]
711
if (args[0] === 'fish'){
712
if (isIkan < anu) return reply(`You Don't Have Enough Fish(es) For This Transaction`)
713
if (!args[1]) return reply(`Example : ${prefix + command} fish 2\n 1 Fish = 1500 Money`)
714
kurangIkan(m.sender, anu)
715
let monaynya = 1500 * anu
716
addMonay(m.sender, monaynya)
717
setTimeout( () => {
718
reply(`Transaction Successful ✔️\n*Your Remaining Money* : ${getMonay(m.sender)}\n*Your Remaining Fish(es)* : ${getIkan(m.sender)}`)
719
}, 2000)
720
} else
721
if (args[0] === 'chicken'){
722
if (isAyam < anu) return reply(`You Don't Have Enough Chicken(s) For This Transaction`)
723
if (!args[1]) return reply(`Example : ${prefix + command} chicken 2\n 1 Chicken = 2500 Money`)
724
kurangAyam(m.sender, anu)
725
let monaynya = 2500 * anu
726
addMonay(m.sender, monaynya)
727
setTimeout( () => {
728
reply(`Transaction Successful ✔️\n*Your Remaining Money* : ${getMonay(m.sender)}\n*Your Remaining Chicken* : ${getAyam(m.sender)}`)
729
}, 2000)
730
} else
731
if (args[0] === 'rabbit'){
732
if (isKelinci < anu) return reply(`You Don't Have Enough Rabbit(s) For This Transaction`)
733
if (!args[1]) return reply(`Example : ${prefix + command} rabbit 2\n 1 Rabbit = 3000 Money`)
734
kurangKelinci(m.sender, anu)
735
let monaynya = 3000 * anu
736
addMonay(m.sender, monaynya)
737
setTimeout( () => {
738
reply(`Transaction Successful ✔️\n*Your Remaining Money* : ${getMonay(m.sender)}\n*Your Remaining Rabbit(s)* : ${getKelinci(m.sender)}`)
739
}, 2000)
740
} else
741
if (args[0] === 'sheep'){
742
if (isDomba < anu) return reply(`You Don't Have Enough Sheep(s) For This Transaction`)
743
if (!args[1]) return reply(`Example : ${prefix + command} domba 2\n 1 Sheep = 5000 money`)
744
kurangDomba(m.sender, anu)
745
let monaynya = 5000 * anu
746
addMonay(m.sender, monaynya)
747
setTimeout( () => {
748
reply(`Transaction Successful ✔️\n*Your Remaining Money* : ${getMonay(m.sender)}\n*Your Remaining Sheep(s)* : ${getDomba(m.sender)}`)
749
}, 2000)
750
} else
751
if (args[0] === 'cow'){
752
if (isSapi < anu) return reply(`You Don't Have Enough Cow(s) For This Transaction`)
753
if (!args[1]) return reply(`Example : ${prefix + command} cow 2\n 1 Cow = 10000 Money`)
754
kurangSapi(m.sender, anu)
755
let monaynya = 10000 * anu
756
addMonay(m.sender, monaynya)
757
setTimeout( () => {
758
reply(`Transaction Successful ✔️\n*Your Remaining Money* : ${getMonay(m.sender)}\n*Your Remaining Cow(s)* : ${getSapi(m.sender)}`)
759
}, 2000)
760
} else
761
if (args[0] === 'elephant'){
762
if (isGajah < anu) return reply(`You Don't Have Enough Elephant(s) For This Transaction`)
763
if (!args[1]) return reply(`Example : ${prefix + command} elephant 2\n 1 Elephant = 15000 Money`)
764
kurangGajah(m.sender, anu)
765
let monaynya = 15000 * anu
766
addMonay(m.sender, monaynya)
767
setTimeout( () => {
768
reply(`Transaction Successful ✔️\n*Your Remaining Money* : ${getMonay(m.sender)}\n*Your Remaining Elephant(s)* : ${getGajah(m.sender)}`)
769
}, 2000)
770
} else
771
if (args[0] === 'iron'){
772
if (isBesi < anu) return reply(`You Don't Have Enough Iron(s) For This Transaction`)
773
if (!args[1]) return reply(`Example : ${prefix + command} iron 2\n 1 Iron = 15000 Money`)
774
kurangBesi(m.sender, anu)
775
let monaynya = 16000 * anu
776
addMonay(m.sender, monaynya)
777
setTimeout( () => {
778
reply(`Transaction Successful ✔️\n*Your Remaining Money* : ${getMonay(m.sender)}\n*Your Remaining Iron(s)* : ${getBesi(m.sender)}`)
779
}, 2000)
780
} else
781
if (args[0] === 'gold'){
782
if (isEmas < anu) return reply(`You Don't Have Enough Gold(s) For This Transaction`)
783
if (!args[1]) return reply(`Example : ${prefix + command} gold 2\n 1 Gold = 50000 Money`)
784
kurangEmas(m.sender, anu)
785
let monaynya = 50000 * anu
786
addMonay(m.sender, monaynya)
787
setTimeout( () => {
788
reply(`Transaction Successful ✔️\n*Your Money* : ${getMonay(m.sender)}\n*Your Remaining Gold(s)* : ${getEmas(m.sender)}`)
789
}, 2000)
790
} else
791
if (args[0] === 'emerald'){
792
if (isEmerald < anu) return reply(`You Don't Have Enough Emerald(s) For This Transaction`)
793
if (!args[1]) return reply(`Example : ${prefix + command} emerald 2\n 1 Emerald = 100000 Money`)
794
kurangEmerald(m.sender, anu)
795
let monaynya = 100000 * anu
796
addMonay(m.sender, monaynya)
797
setTimeout( () => {
798
reply(`Transaction Successful ✔️\n*Your Remaining Money* : ${getMonay(m.sender)}\n*You Don't Have Enough Emerald(s) For This Transaction* : ${getEmerald(m.sender)}`)
799
}, 2000)
800
} else { reply("Incorrect Format!") }
801
802
}
803
break
804
805
case 'heal':{
806
if (q.includes('--help')) return reply(examkosong)
807
if (!isCekDarah < 1) return reply('You Can Only Heal When Your Blood Is 0')
808
if (isCekDarah > 100) return reply('Your Blood Is Full')
809
if (isPotion < 1) return reply(`You Don't Have A Potion, Try Buying It This Way #buypotion _amount_`)
810
addDarah(m.sender, 100)
811
kurangPotion(m.sender, 1)
812
reply('Success! Your Bood Is Full')
813
}
814
break
815
case 'hunt': case 'hunting': {
816
if (q.includes('--help')) return reply(examkosong)
817
if (!isDarah){ addInventoriDarah(m.sender, DarahAwal) }
818
if (isCekDarah < 1) return reply('Your Blood Is Gone, Try To Heal Using Potions')
819
if (!isInventoriBuruan){ addInventoriBuruan(m.sender) }
820
let luka = ["Pierced by a thorn while hunting","Slipped into the abyss while hunting","Scratched by a wild animal","Not careful","Entangled in roots","Fall while hunting"]
821
let location = ["Jungle","Amazon forest","Tropical forest","Meadow","African forest","Mountains"]
822
var ikanmu = Math.ceil(Math.random() * 10)
823
var ayam = Math.ceil(Math.random() * 8)
824
var kelinci = Math.ceil(Math.random() * 7)
825
var dombanya = [3,0,4,0,5,4,6,0,1,0,2,3,0,3,0,1]
826
var sapinya = [2,0,3,0,4,0,5,0,1,0,2,0,3,0,1]
827
var gajahnya = [1,0,4,0,2,0,1,0,2,1,3,0,1]
828
var domba = dombanya[Math.floor(Math.random() * dombanya.length)]
829
var sapi = sapinya[Math.floor(Math.random() * sapinya.length)]
830
var gajah = gajahnya[Math.floor(Math.random() * gajahnya.length)]
831
var lukanya = luka[Math.floor(Math.random() * luka.length)]
832
var lokasinya = location[Math.floor(Math.random() * location.length)]
833
if (lokasinya === 'Jungle') {
834
var image = './storage/image/rimba.jpg'
835
} else
836
if (lokasinya === 'Amazon forest') {
837
var image = './storage/image/amazon.jpg'
838
} else
839
if (lokasinya === 'Tropical forest') {
840
var image = './storage/image/tropis.jpg'
841
} else
842
if (lokasinya === 'Meadow') {
843
var image = './storage/image/padang_rumput.jpg'
844
} else
845
if (lokasinya === 'African forest') {
846
var image = './storage/image/afrika.jpg'
847
} else
848
if (lokasinya === 'Mountains') {
849
var image = './storage/image/pegunungan.jpg'
850
}
851
setTimeout( () => {
852
let teksehmazeh = `_[ HUNT RESULT ]_\n`
853
teksehmazeh += `*🐟Fish* : ${ikanmu}\n`
854
teksehmazeh += `*🐔Chicken* : ${ayam}\n`
855
teksehmazeh += `*🐇Rabbit* : ${kelinci}\n`
856
teksehmazeh += `*🐑Sheep* : ${domba}\n`
857
teksehmazeh += `*🐄Cow* : ${sapi}\n`
858
teksehmazeh += `*🐘Elephant* : ${gajah}\n\n`
859
teksehmazeh += `_[ INFO ]_\n`
860
teksehmazeh += `*Location* : ${lokasinya}\n`
861
teksehmazeh += `*Wounded* : ${lukanya}, blood - 10\n`
862
teksehmazeh += `*Remaining blood* : ${getDarah(m.sender)}\n`
863
let buttons = [
864
{
865
buttonId: `${prefix + command}`,
866
buttonText: {
867
displayText: 'Hunt Again️🏹'
868
}, type: 1},
869
]
870
let buttonMessage = {
871
image: { url: image },
872
caption: teksehmazeh,
873
footer: pushname,
874
buttons: buttons,
875
headerType: 4
876
}
877
GojoMdNx.sendMessage(from, buttonMessage, { quoted: m })
878
}, 5000)
879
setTimeout( () => {
880
reply(`@${m.sender.split("@")[0]} Started Hunting In ${lokasinya}`)
881
}, 1000)
882
addIkan(m.sender, ikanmu)
883
addAyam(m.sender, ayam)
884
addKelinci(m.sender, kelinci)
885
addDomba(m.sender, domba)
886
addSapi(m.sender, sapi)
887
addGajah(m.sender, gajah)
888
kurangDarah(m.sender, 10)
889
}
890
break
891
case 'afk': {
892
let user = global.db.data.users[m.sender]
893
user.afkTime = + new Date
894
user.afkReason = text
895
reply(`${m.pushName} Has Gone Afk/Offline${text ? ': ' + text : ''}`)
896
}
897
break
898
case 'ttc': case 'ttt': case 'tictactoe': {
899
let TicTacToe = require("./lib/tictactoe")
900
this.game = this.game ? this.game : {}
901
if (Object.values(this.game).find(room => room.id.startsWith('tictactoe') && [room.game.playerX, room.game.playerO].includes(m.sender))) return replay(`You Are Still In The Game`)
902
let room = Object.values(this.game).find(room => room.state === 'WAITING' && (text ? room.name === text : true))
903
if (room) {
904
reply('Partner found!')
905
room.o = m.chat
906
room.game.playerO = m.sender
907
room.state = 'PLAYING'
908
let arr = room.game.render().map(v => {
909
return {
910
X: '❌',
911
O: '⭕',
912
1: '1️⃣',
913
2: '2️⃣',
914
3: '3️⃣',
915
4: '4️⃣',
916
5: '5️⃣',
917
6: '6️⃣',
918
7: '7️⃣',
919
8: '8️⃣',
920
9: '9️⃣',
921
}[v]
922
})
923
let str = `Room ID: ${room.id}
924
925
${arr.slice(0, 3).join('')}
926
${arr.slice(3, 6).join('')}
927
${arr.slice(6).join('')}
928
929
Waiting @${room.game.currentTurn.split('@')[0]}
930
931
Type *surrender* to surrender and admit defeat`
932
if (room.x !== room.o) await GojoMdNx.sendText(room.x, str, m, { mentions: parseMention(str) } )
933
await GojoMdNx.sendText(room.o, str, m, { mentions: parseMention(str) } )
934
} else {
935
room = {
936
id: 'tictactoe-' + (+new Date),
937
x: m.chat,
938
o: '',
939
game: new TicTacToe(m.sender, 'o'),
940
state: 'WAITING'
941
}
942
if (text) room.name = text
943
reply('Waiting For Partner' + (text ? ` Type The Command Below ${prefix}${command} ${text}` : ''))
944
this.game[room.id] = room
945
}
946
}
947
break
948
case 'delttc': case 'delttt': {
949
this.game = this.game ? this.game : {}
950
try {
951
if (this.game) {
952
delete this.game
953
GojoMdNx.sendText(m.chat, `Successfully Deleted The TicTacToe Session`, m)
954
} else if (!this.game) {
955
reply(`TicTacToe🎮 Session Does Not Exist`)
956
} else reply('?')
957
} catch (e) {
958
reply('Damaged')
959
}
960
}
961
break
962
case 'suitpvp': case 'suit': {
963
this.suit = this.suit ? this.suit : {}
964
let poin = 10
965
let poin_lose = 10
966
let timeout = 60000
967
if (Object.values(this.suit).find(roof => roof.id.startsWith('suit') && [roof.p, roof.p2].includes(m.sender))) return replay(`Complete Your Previous Suit`)
968
if (m.mentionedJid[0] === m.sender) return reply(`Can't Play With Myself !`)
969
if (!m.mentionedJid[0]) return reply(`_Who Do You Want To Challenge?_\nTag The Person..\n\nExample : ${prefix}suit @${owner[1]}`, m.chat, { mentions: [owner[1] + '@s.whatsapp.net'] })
970
if (Object.values(this.suit).find(roof => roof.id.startsWith('suit') && [roof.p, roof.p2].includes(m.mentionedJid[0]))) reply(`The Person You Are Challenging Is Playing Suit With Someone Else :(`)
971
let id = 'suit_' + new Date() * 1
972
let caption = `_*SUIT PvP*_
973
974
@${m.sender.split`@`[0]} menantang @${m.mentionedJid[0].split`@`[0]} To Play Suit
975
976
Please @${m.mentionedJid[0].split`@`[0]} To Type Accept/Reject`
977
this.suit[id] = {
978
chat: await GojoMdNx.sendText(m.chat, caption, m, { mentions: parseMention(caption) }),
979
id: id,
980
p: m.sender,
981
p2: m.mentionedJid[0],
982
status: 'wait',
983
waktu: setTimeout(() => {
984
if (this.suit[id]) GojoMdNx.sendText(m.chat, `_Suit Time Out_`, m)
985
delete this.suit[id]
986
}, 60000), poin, poin_lose, timeout
987
}
988
}
989
break
990
case 'chat': {
991
if (!isCreator) return replay(`${mess.owner}`)
992
if (!q) return replay(`Option : 1. mute\n2. unmute\n3. archive\n4. unarchive\n5. read\n6. unread\n7. delete`)
993
if (args[0] === 'mute') {
994
GojoMdNx.chatModify({ mute: 'Infinity' }, m.chat, []).then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
995
} else if (args[0] === 'unmute') {
996
GojoMdNx.chatModify({ mute: null }, m.chat, []).then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
997
} else if (args[0] === 'archive') {
998
GojoMdNx.chatModify({ archive: true }, m.chat, []).then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
999
} else if (args[0] === 'unarchive') {
1000
GojoMdNx.chatModify({ archive: false }, m.chat, []).then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1001
} else if (args[0] === 'read') {
1002
GojoMdNx.chatModify({ markRead: true }, m.chat, []).then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1003
} else if (args[0] === 'unread') {
1004
GojoMdNx.chatModify({ markRead: false }, m.chat, []).then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1005
} else if (args[0] === 'delete') {
1006
GojoMdNx.chatModify({ clear: { message: { id: m.quoted.id, fromMe: true }} }, m.chat, []).then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1007
}
1008
}
1009
break
1010
case 'family100': {
1011
if ('family100'+m.chat in _family100) {
1012
reply('There Are Still Unfinished Sessions!')
1013
reply(false)
1014
}
1015
let anu = await fetchJson('https://raw.githubusercontent.com/BochilTeam/database/master/games/family100.json')
1016
let random = anu[Math.floor(Math.random() * anu.length)]
1017
let hasil = `*Answer The Following Questions :*\n${random.soal}\n\nThere Is *${random.jawaban.length}* Answer ${random.jawaban.find(v => v.includes(' ')) ? `(Some Answers Have Spaces)` : ''}`.trim()
1018
_family100['family100'+m.chat] = {
1019
id: 'family100'+m.chat,
1020
pesan: await GojoMdNx.sendText(m.chat, hasil, m),
1021
...random,
1022
terjawab: Array.from(random.jawaban, () => false),
1023
hadiah: 6,
1024
}
1025
}
1026
break
1027
case 'halah': case 'hilih': case 'huluh': case 'heleh': case 'holoh':
1028
if (!m.quoted && !text) return replay(`Send/Reply Text With Caption ${prefix + command}`)
1029
ter = command[1].toLowerCase()
1030
tex = m.quoted ? m.quoted.text ? m.quoted.text : q ? q : m.text : q ? q : m.text
1031
reply(tex.replace(/[aiueo]/g, ter).replace(/[AIUEO]/g, ter.toUpperCase()))
1032
break
1033
case 'guess': {
1034
if (!text) return replay(`Example : ${prefix + command} song\n\nOption : \n1. music\n2. picture (indo)\n3. word\n4. sentence\n5. lyrics (indo)\n6. blank (indo)`)
1035
if (args[0] === "song") {
1036
if (tebaklagu.hasOwnProperty(m.sender.split('@')[0])) return replay(`There Are Still Unfinished Sessions`)
1037
let anu = await fetchJson('https://fatiharridho.github.io/tebaklagu.json')
1038
let result = anu[Math.floor(Math.random() * anu.length)]
1039
let msg = await GojoMdNx.sendMessage(m.chat, { audio: { url: result.link_song }, mimetype: 'audio/mpeg' }, { quoted: m })
1040
GojoMdNx.sendText(m.chat, `What Is The Name Of This Song?\n\nArtist : ${result.artist}\nTime : 60 seconds`, msg).then(() => {
1041
tebaklagu[m.sender.split('@')[0]] = result.jawaban.toLowerCase()
1042
})
1043
await sleep(60000)
1044
if (tebaklagu.hasOwnProperty(m.sender.split('@')[0])) {
1045
console.log("Answer: " + result.jawaban)
1046
GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess song', buttonText: { displayText: 'Guess The Song' }, type: 1 }], `Time Has Run Out\nAnswer: ${tebaklagu[m.sender.split('@')[0]]}\n\nWant To Play? Press The Button Below`, GojoMdNx.user.name, m)
1047
delete tebaklagu[m.sender.split('@')[0]]
1048
}
1049
} else if (args[0] === 'picture') {
1050
if (tebakgambar.hasOwnProperty(m.sender.split('@')[0])) return replay(`There Are Still Unfinished Sessions!`)
1051
let anu = await fetchJson('https://raw.githubusercontent.com/BochilTeam/database/master/games/tebakgambar.json')
1052
let result = anu[Math.floor(Math.random() * anu.length)]
1053
GojoMdNx.sendImage(m.chat, result.img, `Please Answer The Questions Above\n\nDescription : ${result.deskripsi}\nTime : 60 seconds`, m).then(() => {
1054
tebakgambar[m.sender.split('@')[0]] = result.jawaban.toLowerCase()
1055
})
1056
await sleep(60000)
1057
if (tebakgambar.hasOwnProperty(m.sender.split('@')[0])) {
1058
console.log("Answer: " + result.jawaban)
1059
GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess picture', buttonText: { displayText: 'Guess The Picture' }, type: 1 }], `Time Has Run Out\nAnswer: ${tebakgambar[m.sender.split('@')[0]]}\n\nWant To Play Again? PressThe Button Below`, GojoMdNx.user.name, m)
1060
delete tebakgambar[m.sender.split('@')[0]]
1061
}
1062
} else if (args[0] === 'word') {
1063
if (tebakkata.hasOwnProperty(m.sender.split('@')[0])) return replay(`There Are Still Unfinished Sessions!`)
1064
let anu = await fetchJson('https://raw.githubusercontent.com/nexusnw/fungames/main/GuessTheWord.js')
1065
let result = anu[Math.floor(Math.random() * anu.length)]
1066
GojoMdNx.sendText(m.chat, `Please Answer The Following Question\n\n${result.soal}\nTime : 60 seconds`, m).then(() => {
1067
tebakkata[m.sender.split('@')[0]] = result.jawaban.toLowerCase()
1068
})
1069
await sleep(60000)
1070
if (tebakkata.hasOwnProperty(m.sender.split('@')[0])) {
1071
console.log("Answer: " + result.jawaban)
1072
GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess word', buttonText: { displayText: 'Guess The Word' }, type: 1 }], `Time Out\nAnswer: ${tebakkata[m.sender.split('@')[0]]}\n\nWant To Play Again? PressThe Button Below`, GojoMdNx.user.name, m)
1073
delete tebakkata[m.sender.split('@')[0]]
1074
}
1075
} else if (args[0] === 'sentence') {
1076
if (tebakkalimat.hasOwnProperty(m.sender.split('@')[0])) return replay(`There Are Still Unfinished Sessions!`)
1077
let anu = await fetchJson('https://raw.githubusercontent.com/nexusnw/fungames/main/GuessTheSentence.js')
1078
let result = anu[Math.floor(Math.random() * anu.length)]
1079
GojoMdNx.sendText(m.chat, `Please Answer The Following Question\n\n${result.soal}\nTime : 60 seconds`, m).then(() => {
1080
tebakkalimat[m.sender.split('@')[0]] = result.jawaban.toLowerCase()
1081
})
1082
await sleep(60000)
1083
if (tebakkalimat.hasOwnProperty(m.sender.split('@')[0])) {
1084
console.log("Answer: " + result.jawaban)
1085
GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess sentence', buttonText: { displayText: 'Guess The Sentence' }, type: 1 }], `Time Out\nAnswer: ${tebakkalimat[m.sender.split('@')[0]]}\n\nWant To Play Again? PressThe Button Below`, GojoMdNx.user.name, m)
1086
delete tebakkalimat[m.sender.split('@')[0]]
1087
}
1088
} else if (args[0] === 'lyrics') {
1089
if (tebaklirik.hasOwnProperty(m.sender.split('@')[0])) return replay(`There Are Still Unfinished Sessions!`)
1090
let anu = await fetchJson('https://raw.githubusercontent.com/BochilTeam/database/master/games/tebaklirik.json')
1091
let result = anu[Math.floor(Math.random() * anu.length)]
1092
GojoMdNx.sendText(m.chat, `These Are The Lyrics Of Which Song? : *${result.soal}*?\nTime : 60 seconds`, m).then(() => {
1093
tebaklirik[m.sender.split('@')[0]] = result.jawaban.toLowerCase()
1094
})
1095
await sleep(60000)
1096
if (tebaklirik.hasOwnProperty(m.sender.split('@')[0])) {
1097
console.log("Answer: " + result.jawaban)
1098
GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess lyrics', buttonText: { displayText: 'Guess The Lyrics' }, type: 1 }], `Time Out\nAnswer: ${tebaklirik[m.sender.split('@')[0]]}\n\Want To Play Again? PressThe Button Below`, GojoMdNx.user.name, m)
1099
delete tebaklirik[m.sender.split('@')[0]]
1100
}
1101
} else if (args[0] === 'blank') {
1102
if (caklontong.hasOwnProperty(m.sender.split('@')[0])) return replay(`There Are Still Unfinished Sessions!`)
1103
let anu = await fetchJson('https://raw.githubusercontent.com/BochilTeam/database/master/games/caklontong.json')
1104
let result = anu[Math.floor(Math.random() * anu.length)]
1105
GojoMdNx.sendText(m.chat, `*Answer The Following Questions :*\n${result.soal}*\nTime : 60 seconds`, m).then(() => {
1106
caklontong[m.sender.split('@')[0]] = result.jawaban.toLowerCase()
1107
caklontong_desk[m.sender.split('@')[0]] = result.deskripsi
1108
})
1109
await sleep(60000)
1110
if (caklontong.hasOwnProperty(m.sender.split('@')[0])) {
1111
console.log("Answer: " + result.jawaban)
1112
GojoMdNx.sendButtonText(m.chat, [{ buttonId: 'guess blank', buttonText: { displayText: 'Guess The Blank' }, type: 1 }], `Time Out\nAnswer: ${caklontong[m.sender.split('@')[0]]}\nDescription : ${caklontong_desk[m.sender.split('@')[0]]}\n\Want To Play Again? PressThe Button Below`, GojoMdNx.user.name, m)
1113
delete caklontong[m.sender.split('@')[0]]
1114
delete caklontong_desk[m.sender.split('@')[0]]
1115
}
1116
}
1117
}
1118
break
1119
1120
case 'react': {
1121
if (!isCreator) throw mess.owner
1122
reactionMessage = {
1123
react: {
1124
text: args[0],
1125
key: { remoteJid: m.chat, fromMe: true, id: quoted.id }
1126
}
1127
}
1128
GojoMdNx.sendMessage(m.chat, reactionMessage)
1129
}
1130
break
1131
1132
1133
case 'kuismath': case 'math': {
1134
if (kuismath.hasOwnProperty(m.sender.split('@')[0])) return replay(`There Are Still Unfinished Sessions!`)
1135
let { genMath, modes } = require('./lib/math')
1136
if (!text) return replay(`Mode: ${Object.keys(modes).join(' | ')}\nFor Examples: ${prefix}math medium`)
1137
let result = await genMath(text.toLowerCase())
1138
GojoMdNx.sendText(m.chat, `*What Is The Result Of: ${result.soal.toLowerCase()}*?\n\nTime: ${(result.waktu / 1000).toFixed(2)} second`, m).then(() => {
1139
kuismath[m.sender.split('@')[0]] = result.jawaban
1140
})
1141
await sleep(result.waktu)
1142
if (kuismath.hasOwnProperty(m.sender.split('@')[0])) {
1143
console.log("Answer: " + result.jawaban)
1144
reply("Time Out\nAnswer: " + kuismath[m.sender.split('@')[0]])
1145
delete kuismath[m.sender.split('@')[0]]
1146
}
1147
}
1148
break
1149
case 'زوجني': {
1150
if (!m.isGroup) return replay(`${mess.group}`)
1151
let member = participants.map(u => u.id)
1152
let me = m.sender
1153
let jodoh = member[Math.floor(Math.random() * member.length)]
1154
let jawab = `「مبروك واعتبره/ا زوجك/تك 🤡」◣
1155
1156
@${me.split('@')[0]} ❤️ @${jodoh.split('@')[0]}
1157
「اضغط اقبل اذا موافق 😂🤡」◣`
1158
let ments = [me, jodoh]
1159
let buttons = [
1160
{ buttonId: '「اقبل🤗」◣', buttonText: { displayText: '「اقبل🤗」◣' }, type: 1 }
1161
]
1162
await GojoMdNx.sendButtonText(m.chat, buttons, jawab, GojoMdNx.user.name, m, {mentions: ments})
1163
}
1164
break
1165
case 'زواج': {
1166
if (!m.isGroup) return replay(`${mess.group}`)
1167
let member = participants.map(u => u.id)
1168
let orang = member[Math.floor(Math.random() * member.length)]
1169
let jodoh = member[Math.floor(Math.random() * member.length)]
1170
let jawab = `@${orang.split('@')[0]} ❤️ @${jodoh.split('@')[0]}
1171
「 معلش زوجناكم لأنكم تصلحون لبعض 🤡 」◣
1172
「 الي يشوفهم مناسبين لبعض زيي يضغط يب 🤡 」◣`
1173
let menst = [orang, jodoh]
1174
let buttons = [
1175
{ buttonId: '「 يب هم مناسبين لبعض😂🤡 」◣', buttonText: { displayText: '「 يب هم مناسبين لبعض😂🤡 」◣' }, type: 1 }
1176
]
1177
await GojoMdNx.sendButtonText(m.chat, buttons, jawab, GojoMdNx.user.name, m, {mentions: menst})
1178
}
1179
break
1180
case 'is':
1181
if (!text) return replay(`Use Text, Example : ${prefix + command} he married `)
1182
const apa = [`Yes`, `No`, `It Could Be`, `Thats right`]
1183
const kah = apa[Math.floor(Math.random() * apa.length)]
1184
GojoMdNx.sendMessage(from, { text: `Question : Is ${q}\nAnswer : ${kah}` }, { quoted: m })
1185
1186
break
1187
case 'what':
1188
if (!text) return replay(`Use Text, Example : ${prefix + command} he married `)
1189
const lel = [`Ask Your Gf`, `I Dont Know`, `I Don't Know, Ask Your Father`]
1190
const kahk = lel[Math.floor(Math.random() * lel.length)]
1191
GojoMdNx.sendMessage(from, { text: `Question : What ${q}\nAnswer : ${kahk}` }, { quoted: m })
1192
1193
break
1194
case 'can':
1195
if (!text) return replay(`Use Text, Example : ${prefix + command} you fuck her lol `)
1196
const bisa = [`Can`,`Can't`,`Cannot`,`Of Course You Can!!!`]
1197
const ga = bisa[Math.floor(Math.random() * bisa.length)]
1198
GojoMdNx.sendMessage(from, { text: `Question : Can ${q}\nAnswer : ${ga}` }, { quoted: m })
1199
1200
break
1201
case 'how':
1202
if (!text) return replay(`Use Text, Example : ${prefix + command} is my face`)
1203
const gimana = [`It's Okay`, `It's Difficult Bro`, `Sorry Bot Can't Answer`, `Try Searching On Google`,`Holy Cow! Really???`,`Dizzy Ah`,`Ohhh I See:(`,`The Patient, Boss:(`,`How Are You?`]
1204
const ya = gimana[Math.floor(Math.random() * gimana.length)]
1205
GojoMdNx.sendMessage(from, { text: `Question : ${q}\nAnswer : How ${ya}` }, { quoted: m })
1206
1207
break
1208
case 'rate':
1209
if (!text) return replay(`Use Text, Example : ${prefix + command} My Dp`)
1210
const ra = ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','65','66','67','68','69','70','71','72','73','74','75','76','77','78','79','80','81','82','83','84','85','86','87','88','89','90','91','92','93','94','95','96','97','98','99','100']
1211
const te = ra[Math.floor(Math.random() * ra.length)]
1212
GojoMdNx.sendMessage(from, { text: `Rate : ${q}\nAnswer : *${te}%*` }, { quoted: m })
1213
1214
break
1215
case 'handsomecheck':
1216
if (!text) return replay(`Tag Someone, Example : ${prefix + command} @Xeon`)
1217
const gan = ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','65','66','67','68','69','70','71','72','73','74','75','76','77','78','79','80','81','82','83','84','85','86','87','88','89','90','91','92','93','94','95','96','97','98','99','100']
1218
const teng = gan[Math.floor(Math.random() * gan.length)]
1219
GojoMdNx.sendMessage(from, { text: `*${command}*\n\nName : ${q}\nAnswer : *${teng}%*` }, { quoted: m })
1220
1221
break
1222
case 'beautifulcheck':
1223
if (!text) return replay(`Tag Someone, Example : ${prefix + command} @Xeon`)
1224
const can = ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','65','66','67','68','69','70','71','72','73','74','75','76','77','78','79','80','81','82','83','84','85','86','87','88','89','90','91','92','93','94','95','96','97','98','99','100']
1225
const tik = can[Math.floor(Math.random() * can.length)]
1226
GojoMdNx.sendMessage(from, { text: `*${command}*\n\nNama : ${q}\nAnswer : *${tik}%*` }, { quoted: m })
1227
1228
break
1229
case 'awesomecheck':
1230
case 'greatcheck':
1231
case 'gaycheck':
1232
case 'cutecheck':
1233
case 'lesbicheck':
1234
case 'lesbiancheck':
1235
case 'hornycheck':
1236
case 'prettycheck':
1237
case 'lovelycheck':
1238
case 'uglycheck':
1239
if (!text) return replay(`Tag Someone, Example : ${prefix + command} @Xeon`)
1240
const sangeh = ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','65','66','67','68','69','70','71','72','73','74','75','76','77','78','79','80','81','82','83','84','85','86','87','88','89','90','91','92','93','94','95','96','97','98','99','100']
1241
const sange = sangeh[Math.floor(Math.random() * sangeh.length)]
1242
GojoMdNx.sendMessage(from, { text: `*${command}*\n\nName : ${q}\nAnswer : *${sange}%*` }, { quoted: m })
1243
break
1244
case 'charactercheck':
1245
if (!text) return replay(`Tag Someone, Example : ${prefix + command} @Xeon`)
1246
const xeony =['Compassionate','Generous','Grumpy','Forgiving','Obedient','Good','Simp','Kind-Hearted','patient','UwU','top, anyway','Helpful']
1247
const taky = xeony[Math.floor(Math.random() * xeony.length)]
1248
GojoMdNx.sendMessage(from, { text: `Character Check : ${q}\nAnswer : *${taky}*` }, { quoted: m })
1249
break
1250
case 'جبان':
1251
case 'غبي':
1252
case 'حمار':
1253
case 'ذكي':
1254
case 'منحرف':
1255
case 'محبوب':
1256
case 'كلب':
1257
case 'احمق':
1258
case 'قرد':
1259
case 'كريه':
1260
case 'مكروه':
1261
case 'خروف':
1262
case 'سافل':
1263
case 'ورع':
1264
case 'مخادع':
1265
case 'مظلوم':
1266
case 'مسكين':
1267
case 'مخدوع':
1268
case 'جميل':
1269
case 'طيب':
1270
case 'محترم':
1271
case 'زفت':
1272
case 'وصخ':
1273
case 'حزين':
1274
case 'مجنون':
1275
case 'بشع':
1276
case 'صنم':
1277
case 'شجاع':
1278
case 'رقاص':
1279
case 'مضحك':
1280
case 'مستفز':
1281
case 'عاقل':
1282
case 'محتال':
1283
case 'نجس':
1284
case 'مؤدب':
1285
case 'غامض':
1286
case 'ظالم':
1287
case 'مبااع':
1288
case 'صادق':
1289
case 'كذاب': {
1290
if (!m.isGroup) return replay(`${mess.group}`)
1291
let member = participants.map(u => u.id)
1292
let me = m.sender
1293
let jodoh = member[Math.floor(Math.random() * member.length)]
1294
let jawab = `「 اكبر *${command}* في الجروب هو @${jodoh.split('@')[0]} 」◣
1295
「 صح؟ 🥲 」◣`
1296
let ments = [me, jodoh]
1297
let buttons = [
1298
{ buttonId: '「 يب 😂 」◣', buttonText: { displayText: '「 يب 😂 」◣' }, type: 1 }
1299
]
1300
await GojoMdNx.sendButtonText(m.chat, buttons, jawab, GojoMdNx.user.name, m, {mentions: ments})
1301
}
1302
break
1303
case 'when':
1304
if (!text) return replay(`Use Text, Example : ${prefix + command} will i get married `)
1305
const kapan = ['5 More Days', '10 More Days', '15 More Days','20 More Days', '25 More Days','30 More Days','35 More Days','40 More Days','45 More Days','50 More Days','55 More Days','60 More Days','65 More Days','70 More Days','75 More Days','80 More Days','85 More Days','90 More Days','100 More Days','5 Months More', '10 Months More', '15 Months More','20 Months More', '25 Months More','30 Months More','35 Months More','40 Months More','45 Months More','50 Months More','55 Months More','60 Months More','65 Months More','70 Months More','75 Months More','80 Months More','85 Months More','90 Months More','100 Months More','1 More Year','2 More Years','3 More Years','4 More Years','5 More Years','Tomorrow','The Day After Tomorrow',`After This Command, You Too ${q}`]
1306
const kapankah = kapan[Math.floor(Math.random() * kapan.length)]
1307
GojoMdNx.sendMessage(from, { text: `Question : ${q}\nAnswer : *${kapankah}*` }, { quoted: m })
1308
break
1309
case 'wangy':
1310
if (!text) return replay(`Use Text, Example : ${prefix + command} hinata`)
1311
qq = q.toUpperCase()
1312
awikwok = `${qq} ${qq} ${qq} ❤️ ❤️ ❤️ WANGY WANGY WANGY WANGY HU HA HU HA HU HA, aaah the smell of hair ${qq} smelly i want to smell the fragrance ${qq} AAAAAAAAH ~ Her hair.... aaah i want to stroke her hair too ~~ AAAAAH ${qq} first time out in anime is cute too ❤️ ❤️ ❤️ so AAAAAAAH ${qq} AAAAAA LUCCUUUUUUUUUUUUU............ ${qq} AAAAAAAAAAAAAAAAAAAAGH ❤️ ❤️ ❤️what ? ${qq} it's not real ? Just HELL you say ? no, no no no no no no no no no no no no no no no !! I DON'T CARE ABOUT THE REALITY, I DON'T CARE. ❤️ ❤️ ❤️ ${qq} me ... ${qq} on the laptop watching me, ${qq} .. you believe in me ? aaaaaaaaaaah thanks ${q} I don't want to give up ${qq} aaaaaah ❤️ ❤️ ❤️ YEAAAAAAAAAAAH I STILL HAVE ${qq} ALSO NOT THE SAME AAAAAAAAAAAAAAH`
1313
reply(awikwok)
1314
break
1315
case 'checkdeath':
1316
if (!text) return replay(`Use Someone's Name, Example : ${prefix + command} nexus`)
1317
predea = await axios.get(`https://api.agify.io/?name=${q}`)
1318
reply(`Name : ${predea.data.name}\n*Dead At Age :* ${predea.data.age} Year.\n\n_Quick, Quick, Repent Bro, Because No One Knows About Death_`)
1319
break
1320
case 'halah': case 'hilih': case 'huluh': case 'heleh': case 'holoh':
1321
if (!m.quoted && !text) return replay(`Send/Reply Text With Caption ${prefix + command}`)
1322
ter = command[1].toLowerCase()
1323
tex = m.quoted ? m.quoted.text ? m.quoted.text : q ? q : m.text : q ? q : m.text
1324
reply(tex.replace(/[aiueo]/g, ter).replace(/[AIUEO]/g, ter.toUpperCase()))
1325
break
1326
case 'reactxxx': {
1327
if (!isCreator) return replay(`${mess.owner}`)
1328
reactionMessage = {
1329
react: {
1330
text: args[0],
1331
key: { remoteJid: m.chat, fromMe: true, id: quoted.id }
1332
}
1333
}
1334
GojoMdNx.sendMessage(m.chat, reactionMessage)
1335
}
1336
break
1337
case 'انضم': {
1338
if (!isCreator) return replay(`${mess.owner}`)
1339
if (!text) return replay(`Enter The Group Link!`)
1340
if (!isUrl(args[0]) && !args[0].includes('whatsapp.com')) return replay(`Invalid Link!`)
1341
reply(mess.wait)
1342
let result = args[0].split('https://chat.whatsapp.com/')[1]
1343
await GojoMdNx.groupAcceptInvite(result).then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1344
}
1345
break
1346
case 'غادر': {
1347
if (!isCreator) return replay(`${mess.owner}`)
1348
await GojoMdNx.groupLeave(m.chat).then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1349
}
1350
break
1351
case 'تغيير.حقوق': {
1352
if (!isCreator) return replay(`${mess.owner}`)
1353
if (!text) return replay(`Example : ${prefix + command} اسم الحزمة|صاحب الحزمة`)
1354
global.packname = text.split("|")[0]
1355
global.author = text.split("|")[1]
1356
reply(`Exif Has Been Successfully Changed to\n\n🐦 Packname : ${global.packname}\n🐦 Author : ${global.author}`)
1357
}
1358
break
1359
case 'طرد': {
1360
if (!m.isGroup) return replay(`${mess.group}`)
1361
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1362
if (!isAdmins) return replay(`${mess.admin}`)
1363
let users = m.mentionedJid[0] ? m.mentionedJid[0] : m.quoted ? m.quoted.sender : text.replace(/[^0-9]/g, '')+'@s.whatsapp.net'
1364
await GojoMdNx.groupParticipantsUpdate(m.chat, [users], 'remove').then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1365
}
1366
break
1367
case 'اضافة': {
1368
if (!m.isGroup) return replay(`${mess.group}`)
1369
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1370
if (!isAdmins) return replay(`${mess.admin}`)
1371
let users = m.quoted ? m.quoted.sender : text.replace(/[^0-9]/g, '')+'@s.whatsapp.net'
1372
await GojoMdNx.groupParticipantsUpdate(m.chat, [users], 'add').then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1373
}
1374
break
1375
case 'ترقية': {
1376
if (!m.isGroup) return replay(`${mess.group}`)
1377
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1378
if (!isAdmins) return replay(`${mess.admin}`)
1379
let users = m.mentionedJid[0] ? m.mentionedJid[0] : m.quoted ? m.quoted.sender : text.replace(/[^0-9]/g, '')+'@s.whatsapp.net'
1380
await GojoMdNx.groupParticipantsUpdate(m.chat, [users], 'promote').then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1381
}
1382
break
1383
case 'تخفيض': {
1384
if (!m.isGroup) return replay(`${mess.group}`)
1385
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1386
if (!isAdmins) return replay(`${mess.admin}`)
1387
let users = m.mentionedJid[0] ? m.mentionedJid[0] : m.quoted ? m.quoted.sender : text.replace(/[^0-9]/g, '')+'@s.whatsapp.net'
1388
await GojoMdNx.groupParticipantsUpdate(m.chat, [users], 'demote').then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1389
}
1390
break
1391
case 'حظر': {
1392
if (!isCreator) return replay(`${mess.owner}`)
1393
let users = m.mentionedJid[0] ? m.mentionedJid[0] : m.quoted ? m.quoted.sender : text.replace(/[^0-9]/g, '')+'@s.whatsapp.net'
1394
await GojoMdNx.updateBlockStatus(users, 'block').then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1395
}
1396
break
1397
case 'الغاء.حظر': {
1398
if (!isCreator) return replay(`${mess.owner}`)
1399
let users = m.mentionedJid[0] ? m.mentionedJid[0] : m.quoted ? m.quoted.sender : text.replace(/[^0-9]/g, '')+'@s.whatsapp.net'
1400
await GojoMdNx.updateBlockStatus(users, 'unblock').then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1401
}
1402
break
1403
case 'تغيير اسم': case 'setgcname': case 'setsubject': {
1404
if (!m.isGroup) return replay(`${mess.group}`)
1405
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1406
if (!isAdmins) replay(`${mess.admin}`)
1407
if (!text) replay(`اكتب الاسم الي تبي تحطه ل الجروب`)
1408
await GojoMdNx.groupUpdateSubject(m.chat, text).then((res) => reply(mess.success)).catch((err) => reply(jsonformat(err)))
1409
}
1410
break
1411
case 'الوصف': case 'تغيير.الوصف': {
1412
if (!m.isGroup) return replay(`${mess.group}`)
1413
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1414
if (!isAdmins) replay(`${mess.admin}`)
1415
if (!text) replay(`مثال : تغيير.الوصف | مرحبا`)
1416
await GojoMdNx.groupUpdateDescription(m.chat, text).then((res) => reply(mess.success)).catch((err) => reply(jsonformat(err)))
1417
}
1418
break
1419
case 'حطها.خلفيتك': {
1420
if (!isCreator) return replay(`${mess.owner}`)
1421
if (!quoted) return replay(`Send/Reply Image With Caption ${prefix + command}`)
1422
if (!/image/.test(mime)) return replay(`Send/Reply Image With Caption ${prefix + command}`)
1423
if (/webp/.test(mime)) return replay(`Send/Reply Image With Caption ${prefix + command}`)
1424
let media = await GojoMdNx.downloadAndSaveMediaMessage(quoted)
1425
await GojoMdNx.updateProfilePicture(botNumber, { url: media }).catch((err) => fs.unlinkSync(media))
1426
reply(mess.success)
1427
}
1428
break
1429
case 'غير صورة جروب': case 'تغيير صورة الجروب': case 'حطها.صورة.الجروب': {
1430
if (!m.isGroup) return replay(`${mess.group}`)
1431
if (!isAdmins) return replay(`${mess.admin}`)
1432
if (!quoted) return replay(`Send/Reply Image With Caption ${prefix + command}`)
1433
if (!/image/.test(mime)) return replay(`Send/Reply Image With Caption ${prefix + command}`)
1434
if (/webp/.test(mime)) return replay(`Send/Reply Image With Caption ${prefix + command}`)
1435
let media = await GojoMdNx.downloadAndSaveMediaMessage(quoted)
1436
await GojoMdNx.updateProfilePicture(m.chat, { url: media }).catch((err) => fs.unlinkSync(media))
1437
reply(mess.success)
1438
}
1439
break
1440
case 'المنشن': case `منشن`: {
1441
if (!m.isGroup) return replay(`${mess.group}`)
1442
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1443
if (!isAdmins) return replay(`${mess.admin}`)
1444
let teks = `「المنشن الجماعي」◣
1445
1446
➲ *${q ? q : 'اصحو من النوم'}*\n\n`
1447
for (let mem of participants) {
1448
teks += `👤 @${mem.id.split('@')[0]}\n`
1449
}
1450
GojoMdNx.sendMessage(m.chat, { text: teks, mentions: participants.map(a => a.id) }, { quoted: m })
1451
}
1452
break
1453
case 'منشن.مخفي': case `المنشن.المخفي` : {
1454
if (!m.isGroup) return replay(`${mess.group}`)
1455
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1456
if (!isAdmins) return replay(`${mess.admin}`)
1457
GojoMdNx.sendMessage(m.chat, { text : q ? q : '' , mentions: participants.map(a => a.id)}, { quoted: m })
1458
}
1459
break
1460
case 'style': case 'styletext': {
1461
if (!isPremium && global.db.data.users[m.sender].limit < 1) return reply(mess.endLimit) //wont response when limit runs out\\
1462
db.data.users[m.sender].limit -= 1 // -1 limit
1463
let { styletext } = require('./lib/scraper')
1464
if (!text) return replay(`Enter Query Text!`)
1465
let anu = await styletext(text)
1466
let teks = `Entered Text ${text}\n\n`
1467
for (let i of anu) {
1468
teks += `🐦 *${i.name}* : ${i.result}\n\n`
1469
}
1470
reply(teks)
1471
}
1472
break
1473
case 'vote': {
1474
if (!m.isGroup) return replay(`${mess.group}`)
1475
if (m.chat in vote) replay(`_There Are Still Votes In This Chat!_\n\n*${prefix}delvote* - To Delete Vote Session`)
1476
if (!text) return replay(`Enter Reason For Vote, Example: *${prefix + command} Handsome Owner*`)
1477
reply(`Voting Starts!\n\n*${prefix}upvote* - For Upvote\n*${prefix}devote* - For Devote\n*${prefix}checkvote* - To Check The Vote\n*${prefix}delvote* - To Delete Vote Session`)
1478
vote[m.chat] = [q, [], []]
1479
await sleep(1000)
1480
upvote = vote[m.chat][1]
1481
devote = vote[m.chat][2]
1482
teks_vote = `*「 VOTE 」*
1483
1484
*Reason:* ${vote[m.chat][0]}
1485
1486
┌〔 UPVOTE 〕
1487
1488
┃╠ Total: ${vote[m.chat][1].length}
1489
1490
1491
└────
1492
1493
┌〔 DEVOTE 〕
1494
1495
┃╠ Total: ${vote[m.chat][2].length}
1496
1497
1498
└────
1499
1500
*${prefix}delvote* - To Delete Vote Session`
1501
let buttonsVote = [
1502
{buttonId: `${prefix}upvote`, buttonText: {displayText: 'Upvote'}, type: 1},
1503
{buttonId: `${prefix}devote`, buttonText: {displayText: 'Devote'}, type: 1}
1504
]
1505
1506
let buttonMessageVote = {
1507
text: teks_vote,
1508
footer: GojoMdNx.user.name,
1509
buttons: buttonsVote,
1510
headerType: 1
1511
}
1512
GojoMdNx.sendMessage(m.chat, buttonMessageVote)
1513
}
1514
break
1515
case 'upvote': {
1516
if (!m.isGroup) return replay(`${mess.group}`)
1517
if (!(m.chat in vote)) return replay(`_*No Voting In This Group!*_\n\n*${prefix}vote* - To Start Voting`)
1518
isVote = vote[m.chat][1].concat(vote[m.chat][2])
1519
wasVote = isVote.includes(m.sender)
1520
if (wasVote) replay(`You've Voted`)
1521
vote[m.chat][1].push(m.sender)
1522
menvote = vote[m.chat][1].concat(vote[m.chat][2])
1523
teks_vote = `*「 VOTE 」*
1524
1525
*Reason:* ${vote[m.chat][0]}
1526
1527
┌〔 UPVOTE 〕
1528
1529
┃╠ Total: ${vote[m.chat][1].length}
1530
${vote[m.chat][1].map((v, i) => `┃╠ ${i + 1}. @${v.split`@`[0]}`).join('\n')}
1531
1532
└────
1533
1534
┌〔 DEVOTE 〕
1535
1536
┃╠ Total: ${vote[m.chat][2].length}
1537
${vote[m.chat][2].map((v, i) => `┃╠ ${i + 1}. @${v.split`@`[0]}`).join('\n')}
1538
1539
└────
1540
1541
*${prefix}delvote* - To Delete Vote Session`
1542
let buttonsUpvote = [
1543
{buttonId: `${prefix}upvote`, buttonText: {displayText: 'Upvote'}, type: 1},
1544
{buttonId: `${prefix}devote`, buttonText: {displayText: 'Devote'}, type: 1}
1545
]
1546
1547
let buttonMessageUpvote = {
1548
text: teks_vote,
1549
footer: GojoMdNx.user.name,
1550
buttons: buttonsUpvote,
1551
headerType: 1,
1552
mentions: menvote
1553
}
1554
GojoMdNx.sendMessage(m.chat, buttonMessageUpvote)
1555
}
1556
break
1557
case 'devote': {
1558
if (!m.isGroup) return replay(`${mess.group}`)
1559
if (!(m.chat in vote)) return replay(`_*No Voting In This Group!*_\n\n*${prefix}vote* - To Start Voting`)
1560
isVote = vote[m.chat][1].concat(vote[m.chat][2])
1561
wasVote = isVote.includes(m.sender)
1562
if (wasVote) return replay(`You've Voted`)
1563
vote[m.chat][2].push(m.sender)
1564
menvote = vote[m.chat][1].concat(vote[m.chat][2])
1565
teks_vote = `*「 VOTE 」*
1566
1567
*Reason:* ${vote[m.chat][0]}
1568
1569
┌〔 UPVOTE 〕
1570
1571
┃╠ Total: ${vote[m.chat][1].length}
1572
${vote[m.chat][1].map((v, i) => `┃╠ ${i + 1}. @${v.split`@`[0]}`).join('\n')}
1573
1574
└────
1575
1576
┌〔 DEVOTE 〕
1577
1578
┃╠ Total: ${vote[m.chat][2].length}
1579
${vote[m.chat][2].map((v, i) => `┃╠ ${i + 1}. @${v.split`@`[0]}`).join('\n')}
1580
1581
└────
1582
1583
*${prefix}delvote* - To Delete Vote Session`
1584
let buttonsDevote = [
1585
{buttonId: `${prefix}upvote`, buttonText: {displayText: 'Upvote'}, type: 1},
1586
{buttonId: `${prefix}devote`, buttonText: {displayText: 'Devote'}, type: 1}
1587
]
1588
1589
let buttonMessageDevote = {
1590
text: teks_vote,
1591
footer: GojoMdNx.user.name,
1592
buttons: buttonsDevote,
1593
headerType: 1,
1594
mentions: menvote
1595
}
1596
GojoMdNx.sendMessage(m.chat, buttonMessageDevote)
1597
}
1598
break
1599
1600
case 'checkvote':
1601
if (!m.isGroup) return replay(`${mess.group}`)
1602
if (!(m.chat in vote)) return replay(`_*No Voting In This Group!*_\n\n*${prefix}vote* - To Start Voting`)
1603
teks_vote = `*「 VOTE 」*
1604
1605
*Reason:* ${vote[m.chat][0]}
1606
1607
┌〔 UPVOTE 〕
1608
1609
┃╠ Total: ${upvote.length}
1610
${vote[m.chat][1].map((v, i) => `┃╠ ${i + 1}. @${v.split`@`[0]}`).join('\n')}
1611
1612
└────
1613
1614
┌〔 DEVOTE 〕
1615
1616
┃╠ Total: ${devote.length}
1617
${vote[m.chat][2].map((v, i) => `┃╠ ${i + 1}. @${v.split`@`[0]}`).join('\n')}
1618
1619
└────
1620
1621
*${prefix}delvote* - To Delete Vote Session
1622
1623
1624
©${GojoMdNx.user.id}
1625
`
1626
GojoMdNx.sendTextWithMentions(m.chat, teks_vote, m)
1627
break
1628
case 'deletevote': case'delvote': case 'hapusvote': {
1629
if (!m.isGroup) return replay(`${mess.group}`)
1630
if (!(m.chat in vote)) return replay(`_*No Voting In This Group!*_\n\n*${prefix}vote* - To Start Voting`)
1631
delete vote[m.chat]
1632
reply('Successfully Deleted The Vote Session In This Group')
1633
}
1634
break
1635
case 'الجروب': case 'جروب': {
1636
if (!m.isGroup) return replay(`${mess.group}`)
1637
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1638
if (!isAdmins) return replay(`${mess.admin}`)
1639
if (args[0] === 'close'){
1640
await GojoMdNx.groupSettingUpdate(m.chat, 'announcement').then((res) => reply(`تم غلق المجموعة`)).catch((err) => reply(jsonformat(err)))
1641
} else if (args[0] === 'open'){
1642
await GojoMdNx.groupSettingUpdate(m.chat, 'not_announcement').then((res) => reply(`اصبحت المجموعة عامة`)).catch((err) => reply(jsonformat(err)))
1643
} else {
1644
let buttons = [
1645
{ buttonId: 'group open', buttonText: { displayText: 'نعم' }, type: 1 },
1646
{ buttonId: 'group close', buttonText: { displayText: 'لا' }, type: 1 }
1647
]
1648
await GojoMdNx.sendButtonText(m.chat, buttons, `هل ترغب ب اغلاق الجروب؟؟`, GojoMdNx.user.name, m)
1649
1650
}
1651
}
1652
break
1653
case 'تعديل': case 'التعديل': {
1654
if (!m.isGroup) return replay(`${mess.group}`)
1655
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1656
if (!isAdmins) return replay(`${mess.admin}`)
1657
if (args[0] === 'open'){
1658
await GojoMdNx.groupSettingUpdate(m.chat, 'unlocked').then((res) => reply(`مسموح لأي احد ب التعديل ف اعدادات المجموعة`)).catch((err) => reply(jsonformat(err)))
1659
} else if (args[0] === 'close'){
1660
await GojoMdNx.groupSettingUpdate(m.chat, 'locked').then((res) => reply(`مسموح فقط للمشرفين ل تعديل ف الاعدادات`)).catch((err) => reply(jsonformat(err)))
1661
} else {
1662
let buttons = [
1663
{ buttonId: 'نعم', buttonText: { displayText: 'نعم' }, type: 1 },
1664
{ buttonId: 'لا', buttonText: { displayText: 'لا' }, type: 1 }
1665
]
1666
await GojoMdNx.sendButtonText(m.chat, buttons, `ان كنت ترغب بأن تكون اعدادات المجموعة عامة اضغط نعم وان كنت ترغب بأن تكون خاصة اضغط لا`, GojoMdNx.user.name, m)
1667
1668
}
1669
}
1670
break
1671
case 'antilink': {
1672
if (!m.isGroup) return replay(`${mess.group}`)
1673
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1674
if (!isAdmins) return replay(`${mess.admin}`)
1675
if (args[0] === "on") {
1676
if (db.data.chats[m.chat].antilink) return reply(`Activated`)
1677
db.data.chats[m.chat].antilink = true
1678
reply(`Antilink Active !`)
1679
} else if (args[0] === "off") {
1680
if (!db.data.chats[m.chat].antilink) return reply(`Deactivated`)
1681
db.data.chats[m.chat].antilink = false
1682
reply(`Antilink Inactive !`)
1683
} else {
1684
let buttons = [
1685
{ buttonId: 'antilink on', buttonText: { displayText: 'On' }, type: 1 },
1686
{ buttonId: 'antilink off', buttonText: { displayText: 'Off' }, type: 1 }
1687
]
1688
await GojoMdNx.sendButtonText(m.chat, buttons, `Antilink Mode`, GojoMdNx.user.name, m)
1689
}
1690
}
1691
break
1692
case 'mute': {
1693
if (!m.isGroup) return replay(`${mess.group}`)
1694
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1695
if (!isAdmins) return replay(`${mess.admin}`)
1696
if (args[0] === "on") {
1697
if (db.data.chats[m.chat].mute) return reply(`Previously Active`)
1698
db.data.chats[m.chat].mute = true
1699
reply(`${GojoMdNx.user.name} Has Been Muted In This Group !`)
1700
} else if (args[0] === "off") {
1701
if (!db.data.chats[m.chat].mute) return reply(`Previously Inactive`)
1702
db.data.chats[m.chat].mute = false
1703
reply(`${GojoMdNx.user.name} Has Been Unmuted In This Group!`)
1704
} else {
1705
let buttons = [
1706
{ buttonId: 'mute on', buttonText: { displayText: 'On' }, type: 1 },
1707
{ buttonId: 'mute off', buttonText: { displayText: 'Off' }, type: 1 }
1708
]
1709
await GojoMdNx.sendButtonText(m.chat, buttons, `Mute Bot`, GojoMdNx.user.name, m)
1710
}
1711
}
1712
break
1713
case 'الرابط': case 'رابط.الجروب': case 'gclink': case 'grouplink': {
1714
if (!m.isGroup) return replay(`${mess.group}`)
1715
let response = await GojoMdNx.groupInviteCode(m.chat)
1716
GojoMdNx.sendText(m.chat, `https://chat.whatsapp.com/${response}\n\n${groupMetadata.subject} Group Link`, m, { detectLink: true })
1717
}
1718
break
1719
case 'ephemeral': {
1720
if (!m.isGroup) replay(`${mess.group}`)
1721
if (!isBotAdmins) return replay(`${mess.botAdmin}`)
1722
if (!isAdmins) return replay(`${mess.admin}`)
1723
if (!text) return replay(`Enter The enable/disable Values`)
1724
if (args[0] === 'enable') {
1725
await GojoMdNx.sendMessage(m.chat, { disappearingMessagesInChat: WA_DEFAULT_EPHEMERAL }).then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1726
} else if (args[0] === 'disable') {
1727
await GojoMdNx.sendMessage(m.chat, { disappearingMessagesInChat: false }).then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
1728
}
1729
}
1730
break
1731
case 'حذف': case 'احذف': {
1732
if (!m.quoted) reply(false)
1733
let { chat, fromMe, id, isBaileys } = m.quoted
1734
if (!isBaileys) return replay(`The Message Was Not Sent By A Bot!`)
1735
GojoMdNx.sendMessage(m.chat, { delete: { remoteJid: m.chat, fromMe: true, id: m.quoted.id, participant: m.quoted.sender } })
1736
}
1737
break
1738
case 'رسالة.جروبات': case 'رسالة.جماعية.الجروبات': {
1739
if (!isCreator) return replay(`${mess.owner}`)
1740
if (!text) return replay(`Where Is The Text?\n\nExample : ${prefix + command} Nexus Handsome`)
1741
let getGroups = await GojoMdNx.groupFetchAllParticipating()
1742
let groups = Object.entries(getGroups).slice(0).map(entry => entry[1])
1743
let anu = groups.map(v => v.id)
1744
reply(`「 انتظر شوي ... 」◣`)
1745
for (let i of anu) {
1746
await sleep(1500)
1747
let btn = [{
1748
urlButton: {
1749
displayText: '「 رابط الاستقبال 」「📌」◣',
1750
url: `${sc}`
1751
}
1752
}, {
1753
urlButton: {
1754
displayText: '「 قناتي 」「📍」◣',
1755
url: `${myweb}`
1756
}
1757
}, {
1758
quickReplyButton: {
1759
displayText: '「 القائمة 」「🗒️」◣',
1760
id: 'اوامر'
1761
}
1762
}, {
1763
quickReplyButton: {
1764
displayText: '「 المالك 」「👤」◣',
1765
id: 'owner'
1766
}
1767
}]
1768
let txt = `「 غوجو ساتورو موجود 🎉 」\n\n${text}`
1769
GojoMdNx.send5ButImg(i, txt, GojoMdNx.user.name, global.thumb, btn)
1770
}
1771
reply(`「 تم ✌ 」◣`)
1772
}
1773
break
1774
case 'رسالة.جماعية': case 'رسالة.جماعية.الكل': case 'bcall': {
1775
if (!isCreator) return replay(`${mess.owner}`)
1776
if (!text) return replay(`Where Is The Text?\n\nExample : ${prefix + command} Nexus`)
1777
let anu = await store.chats.all().map(v => v.id)
1778
reply(`「 سيتم الأرسال بعد قليل ..」◣`)
1779
for (let yoi of anu) {
1780
await sleep(1500)
1781
let btn = [{
1782
urlButton: {
1783
displayText: '「 رابط الاستقبال 」「📌」◣',
1784
url: `${sc}`
1785
}
1786
}, {
1787
urlButton: {
1788
displayText: '「 قناتي 」「📍」◣',
1789
url: `${myweb}`
1790
}
1791
}, {
1792
quickReplyButton: {
1793
displayText: '「 القائمة 」「🗒️」◣',
1794
id: 'الاوامر'
1795
}
1796
}, {
1797
quickReplyButton: {
1798
displayText: '「 المالك 」「👤」◣',
1799
id: 'owner'
1800
}
1801
}]
1802
let txt = `「 غوجو ساتورو موجود 🎉」\n\n${text}`
1803
GojoMdNx.send5ButImg(yoi, txt, GojoMdNx.user.name, global.thumb, btn)
1804
}
1805
reply('「 تم 🤗 」◣')
1806
}
1807
break
1808
case 'chatinfo': case 'infochat': {
1809
if (!m.quoted) return reply(`Reply Message`)
1810
let msg = await m.getQuotedObj()
1811
if (!m.quoted.isBaileys) return replay(`The Message Was Not Sent By A Bot!`)
1812
let teks = ''
1813
for (let i of msg.userReceipt) {
1814
let read = i.readTimestamp
1815
let unread = i.receiptTimestamp
1816
let waktu = read ? read : unread
1817
teks += `🐦 @${i.userJid.split('@')[0]}\n`
1818
teks += ` ┗━🐦 *Time :* ${moment(waktu * 1000).format('DD/MM/YY HH:mm:ss')} 🐦 *Status :* ${read ? 'Read' : 'Sent'}\n\n`
1819
}
1820
GojoMdNx.sendTextWithMentions(m.chat, teks, m)
1821
}
1822
break
1823
case 'q': case 'quoted': {
1824
if (!m.quoted) return reply('Reply Message!!')
1825
let wokwol = await GojoMdNx.serializeM(await m.getQuotedObj())
1826
if (!wokwol.quoted) return reply('The Message You Replied To Does Not Contain A Reply')
1827
await wokwol.quoted.copyNForward(m.chat, true)
1828
}
1829
break
1830
case 'listpc': case 'pclist': {
1831
let anu = await store.chats.all().filter(v => v.id.endsWith('.net')).map(v => v.id)
1832
let teks = `⬣ *PERSONAL CHAT LIST*\n\nTotal Chat : ${anu.length} Chat\n\n`
1833
for (let i of anu) {
1834
let nama = store.messages[i].array[0].pushName
1835
teks += `💫 *Name :* ${nama}\n💫 *User :* @${i.split('@')[0]}\n💫 *Chat :* https://wa.me/${i.split('@')[0]}\n\n────────────────────────\n\n`
1836
}
1837
GojoMdNx.sendTextWithMentions(m.chat, teks, m)
1838
}
1839
break
1840
case 'listgc': case 'gclist': {
1841
let anu = await store.chats.all().filter(v => v.id.endsWith('@g.us')).map(v => v.id)
1842
let teks = `⬣ *GROUP CHAT LIST*\n\nTotal Group : ${anu.length} Group\n\n`
1843
for (let i of anu) {
1844
let metadata = await GojoMdNx.groupMetadata(i)
1845
teks += `💫 *Name :* ${metadata.subject}\n💫 *Owner :* @${metadata.owner.split('@')[0]}\n💫 *ID :* ${metadata.id}\n💫 *Made :* ${moment(metadata.creation * 1000).tz('Asia/Kolkata').format('DD/MM/YYYY HH:mm:ss')}\n💫 *Member :* ${metadata.participants.length}\n\n────────────────────────\n\n`
1846
}
1847
GojoMdNx.sendTextWithMentions(m.chat, teks, m)
1848
}
1849
break
1850
case 'قائمة المتصلين': case 'المتصلين': {
1851
let id = args && /\d+\-\[email protected]/.test(args[0]) ? args[0] : m.chat
1852
let online = [...Object.keys(store.presences[id]), botNumber]
1853
GojoMdNx.sendText(m.chat, '「 الموجودين الأن 」◣\n\n' + online.map(v => '👤 @' + v.replace(/@.+/, '')).join`\n`, m, { mentions: online })
1854
}
1855
break
1856
case 'ملصق': case 's': case 'ستيكر': case 'س': {
1857
if (!quoted) return replay(`Reply Video/Image With Caption ${prefix + command}`)
1858
reply(mess.wait)
1859
if (/image/.test(mime)) {
1860
let media = await quoted.download()
1861
let encmedia = await GojoMdNx.sendImageAsSticker(m.chat, media, m, { packname: global.packname, author: global.author })
1862
await fs.unlinkSync(encmedia)
1863
} else if (/video/.test(mime)) {
1864
if ((quoted.msg || quoted).seconds > 11) return reply('Maximum 10 Seconds!')
1865
let media = await quoted.download()
1866
let encmedia = await GojoMdNx.sendVideoAsSticker(m.chat, media, m, { packname: global.packname, author: global.author })
1867
await fs.unlinkSync(encmedia)
1868
} else {
1869
reply(`Send Image/Video With Caption ${prefix + command}\nVideo Duration 1-9 Seconds`)
1870
}
1871
}
1872
break
1873
case 'smemex': case 'stickermemex': case 'stickmemex': {
1874
let { TelegraPh } = require('./lib/uploader')
1875
if (!text) return reply(`Send/Reply Photo With Caption ${prefix + command} *Text*`)
1876
if (text.includes('|')) return reply(`Send/Reply Photo With Caption ${prefix + command} *Text*`)
1877
if (!/image/.test(mime)) return reply(`Send/Reply Photo With Caption ${prefix + command} *Text*`)
1878
reply(mess.wait)
1879
mee = await GojoMdNx.downloadAndSaveMediaMessage(quoted)
1880
mem = await TelegraPh(mee)
1881
meme = `https://api.memegen.link/images/custom/-/${text}.png?background=${mem}`
1882
memek = await GojoMdNx.sendImageAsSticker(m.chat, meme, m, { packname: global.packname, author: global.author })
1883
await fs.unlinkSync(memek)
1884
}
1885
break
1886
case 'ebinary': {
1887
if (!m.quoted.text && !text) return replay(`Reply Text With Caption ${prefix + command}`)
1888
let { eBinary } = require('./lib/binary')
1889
let teks = text ? text : m.quoted && m.quoted.text ? m.quoted.text : m.text
1890
let eb = await eBinary(teks)
1891
reply(eb)
1892
}
1893
break
1894
case 'dbinary': {
1895
if (!m.quoted.text && !text) return replay(`Reply Text With Caption ${prefix + command}`)
1896
let { dBinary } = require('./lib/binary')
1897
let teks = text ? text : m.quoted && m.quoted.text ? m.quoted.text : m.text
1898
let db = await dBinary(teks)
1899
reply(db)
1900
}
1901
break
1902
case 'emojimix': {
1903
if (!text) return replay(`Example : ${prefix + command} 😅+🤔`)
1904
let [emoji1, emoji2] = text.split`+`
1905
let anu = await fetchJson(`https://tenor.googleapis.com/v2/featured?key=AIzaSyAyimkuYQYF_FXVALexPuGQctUWRURdCYQ&contentfilter=high&media_filter=png_transparent&component=proactive&collection=emoji_kitchen_v5&q=${encodeURIComponent(emoji1)}_${encodeURIComponent(emoji2)}`)
1906
for (let res of anu.results) {
1907
let encmedia = await GojoMdNx.sendImageAsSticker(m.chat, res.url, m, { packname: global.packname, author: global.author, categories: res.tags })
1908
await fs.unlinkSync(encmedia)
1909
}
1910
}
1911
break
1912
case 'لصورة': case '1اعلا': {
1913
if (!quoted) return reply(`Reply Image`)
1914
if (!/webp/.test(mime)) reply(`منشن على ستيكر واكتب *${prefix + command}*`)
1915
reply(mess.wait)
1916
let media = await GojoMdNx.downloadAndSaveMediaMessage(quoted)
1917
let ran = await getRandom('.png')
1918
exec(`ffmpeg -i ${media} ${ran}`, (err) => {
1919
fs.unlinkSync(media)
1920
if (err) reply(err)
1921
let buffer = fs.readFileSync(ran)
1922
GojoMdNx.sendMessage(m.chat, { image: buffer }, { quoted: m })
1923
fs.unlinkSync(ran)
1924
})
1925
}
1926
break
1927
case 'الى فيديو': case 'لفيديو': {
1928
if (!quoted) reply(`Reply Image`)
1929
if (!/webp/.test(mime)) return replay(`Reply Sticker With Caption *${prefix + command}*`)
1930
reply(mess.wait)
1931
let { webp2mp4File } = require('./lib/uploader')
1932
let media = await GojoMdNx.downloadAndSaveMediaMessage(quoted)
1933
let webpToMp4 = await webp2mp4File(media)
1934
await GojoMdNx.sendMessage(m.chat, { video: { url: webpToMp4.result, caption: 'Convert Webp To Video' } }, { quoted: m })
1935
await fs.unlinkSync(media)
1936
}
1937
break
1938
case 'الى صوتية': case 'لصوتية': {
1939
if (!/video/.test(mime) && !/audio/.test(mime)) return replay(`Send/Reply Video/Audio You Want To Use As Audio With Caption ${prefix + command}`)
1940
if (!quoted) return reply(`Send/Reply Video/Audio You Want To Convert To Audio With Caption ${prefix + command}`)
1941
reply(mess.wait)
1942
let media = await quoted.download()
1943
let { toAudio } = require('./lib/converter')
1944
let audio = await toAudio(media, 'mp4')
1945
GojoMdNx.sendMessage(m.chat, {audio: audio, mimetype: 'audio/mpeg'}, { quoted : m })
1946
}
1947
break
1948
case 'لمقطع.صوتي': {
1949
if (/document/.test(mime)) return reply(`Send/Reply Video/Audio You Want to Convert Into MP3 With Caption ${prefix + command}`)
1950
if (!/video/.test(mime) && !/audio/.test(mime)) return replay(`Send/Reply Video/Audio You Want To Convert into MP3 With Caption ${prefix + command}`)
1951
if (!quoted) return replay(`Send/Reply Video/Audio You Want To Convert Into MP3 With Caption ${prefix + command}`)
1952
reply(mess.wait)
1953
let media = await quoted.download()
1954
let { toAudio } = require('./lib/converter')
1955
let audio = await toAudio(media, 'mp4')
1956
GojoMdNx.sendMessage(m.chat, {document: audio, mimetype: 'audio/mpeg', fileName: `Converted By ${GojoMdNx.user.name}.mp3`}, { quoted : m })
1957
}
1958
break
1959
case 'tovn': case 'toptt': {
1960
if (!/video/.test(mime) && !/audio/.test(mime)) return reply(`Reply Video/Audio That You Want To Be VN With Caption ${prefix + command}`)
1961
if (!quoted) return reply(`Reply Video/Audio That You Want To Be VN With Caption ${prefix + command}`)
1962
reply(mess.wait)
1963
let media = await quoted.download()
1964
let { toPTT } = require('./lib/converter')
1965
let audio = await toPTT(media, 'mp4')
1966
GojoMdNx.sendMessage(m.chat, {audio: audio, mimetype:'audio/mpeg', ptt:true }, {quoted:m})
1967
}
1968
break
1969
case 'لجيف': {
1970
if (!quoted) return reply(`Reply Image`)
1971
if (!/webp/.test(mime)) return reply(`Reply Sticker With Caption *${prefix + command}*`)
1972
reply(mess.wait)
1973
let { webp2mp4File } = require('./lib/uploader')
1974
let media = await GojoMdNx.downloadAndSaveMediaMessage(quoted)
1975
let webpToMp4 = await webp2mp4File(media)
1976
await GojoMdNx.sendMessage(m.chat, { video: { url: webpToMp4.result, caption: 'Convert Webp To Video' }, gifPlayback: true }, { quoted: m })
1977
await fs.unlinkSync(media)
1978
}
1979
break
1980
case 'tourl': {
1981
reply(mess.wait)
1982
let { UploadFileUgu, webp2mp4File, TelegraPh } = require('./lib/uploader')
1983
let media = await GojoMdNx.downloadAndSaveMediaMessage(quoted)
1984
if (/image/.test(mime)) {
1985
let anu = await TelegraPh(media)
1986
reply(util.format(anu))
1987
} else if (!/image/.test(mime)) {
1988
let anu = await UploadFileUgu(media)
1989
reply(util.format(anu))
1990
}
1991
await fs.unlinkSync(media)
1992
}
1993
break
1994
case 'imagenobgxxx': case 'removebgxxx': case 'remove-bgxxx': {
1995
if (!quoted) return replay(`Send/Reply Image With Caption ${prefix + command}`)
1996
if (!/image/.test(mime)) return replay(`Send/Reply Image With Caption ${prefix + command}`)
1997
if (/webp/.test(mime)) return replay(`Send/Reply Image With Caption ${prefix + command}`)
1998
let remobg = require('remove.bg')
1999
let apirnobg = ['q61faXzzR5zNU6cvcrwtUkRU','S258diZhcuFJooAtHTaPEn4T','5LjfCVAp4vVNYiTjq9mXJWHF','aT7ibfUsGSwFyjaPZ9eoJc61','BY63t7Vx2tS68YZFY6AJ4HHF','5Gdq1sSWSeyZzPMHqz7ENfi8','86h6d6u4AXrst4BVMD9dzdGZ','xp8pSDavAgfE5XScqXo9UKHF','dWbCoCb3TacCP93imNEcPxcL']
2000
let apinobg = apirnobg[Math.floor(Math.random() * apirnobg.length)]
2001
hmm = await './src/remobg-'+getRandom('')
2002
localFile = await GojoMdNx.downloadAndSaveMediaMessage(quoted, hmm)
2003
outputFile = await './src/hremo-'+getRandom('.png')
2004
reply(mess.wait)
2005
remobg.removeBackgroundFromImageFile({
2006
path: localFile,
2007
apiKey: apinobg,
2008
size: "regular",
2009
type: "auto",
2010
scale: "100%",
2011
outputFile
2012
}).then(async result => {
2013
GojoMdNx.sendMessage(m.chat, {image: fs.readFileSync(outputFile), caption: mess.success}, { quoted : m })
2014
await fs.unlinkSync(localFile)
2015
await fs.unlinkSync(outputFile)
2016
})
2017
}
2018
break
2019
case 'yts': case 'ytsearch': {
2020
if (!text) return replay(`Example : ${prefix + command} Anime Story Whatsapp`)
2021
let yts = require("yt-search")
2022
let search = await yts(text)
2023
let teks = 'YouTube Search\n\n Result From '+text+'\n\n'
2024
let no = 1
2025
for (let i of search.all) {
2026
teks += `🐦 No : ${no++}\n🐦 Type : ${i.type}\n🐦 Video ID : ${i.videoId}\n🐦 Title : ${i.title}\n🐦 Views : ${i.views}\n🐦 Duration : ${i.timestamp}\n🐦 Uploaded On : ${i.ago}\n🐦 Author : ${i.author.name}\n🐦 Url : ${i.url}\n\n─────────────────\n\n`
2027
}
2028
GojoMdNx.sendMessage(m.chat, { image: { url: search.all[0].thumbnail }, caption: teks }, { quoted: m })
2029
}
2030
break
2031
case 'google': {
2032
if (!text) return reply(`Example : ${prefix + command} gojo shiba inu`)
2033
let google = require('google-it')
2034
google({'query': text}).then(res => {
2035
let teks = `Google Search Title : ${text}\n\n`
2036
for (let g of res) {
2037
teks += `🐦 *Title* : ${g.title}\n`
2038
teks += `🐦 *Description* : ${g.snippet}\n`
2039
teks += `🐦 *Link* : ${g.link}\n\n────────────────────────\n\n`
2040
}
2041
reply(teks)
2042
})
2043
}
2044
break
2045
case 'image': case 'صورة': {
2046
if (!text) return reply(`Example : ${prefix + command} gojo`)
2047
let gis = require('g-i-s')
2048
gis(text, async (error, result) => {
2049
n = result
2050
images = n[Math.floor(Math.random() * n.length)].url
2051
let buttons = [
2052
{buttonId: `image ${text}`, buttonText: {displayText: '「 التالي 」◣'}, type: 1}
2053
]
2054
let buttonMessage = {
2055
image: { url: images },
2056
caption: ` `,
2057
footer: GojoMdNx.user.name,
2058
buttons: buttons,
2059
headerType: 4
2060
}
2061
GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2062
})
2063
}
2064
break
2065
case 'play': case 'فيديو': case 'ytplay': {
2066
if (!text) return reply(`Example : ${prefix + command} غوجو ساتورو`)
2067
let yts = require("yt-search")
2068
let search = await yts(text)
2069
let anu = search.videos[Math.floor(Math.random() * search.videos.length)]
2070
let buttons = [
2071
{buttonId: `ytmp3 ${anu.url}`, buttonText: {displayText: '🎶مقطع صوتي🎶'}, type: 1},
2072
{buttonId: `ytmp4 ${anu.url}`, buttonText: {displayText: '📽️فيديو📽️'}, type: 1}
2073
]
2074
let buttonMessage = {
2075
image: { url: anu.thumbnail },
2076
caption: `
2077
: ${anu.title}
2078
「 مدة المقطع 」◣ : ${anu.timestamp}
2079
「 عدد المشاهدات 」◣: ${anu.views}
2080
「 تم تحميله 」◣ : ${anu.ago}
2081
「 الوصف」◣ : ${anu.description}`,
2082
footer: GojoMdNx.user.name,
2083
buttons: buttons,
2084
headerType: 4
2085
}
2086
GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2087
}
2088
break
2089
case 'ytmp3': case 'getmusic': case 'ytaudio': {
2090
let { yta } = require('./lib/y2mate')
2091
if (!text) return reply(`Example : ${prefix + command} https://youtube.com/watch?v=PtFMh6Tccag%27 128kbps`)
2092
let quality = args[1] ? args[1] : '320kbps'
2093
let media = await yta(text, quality)
2094
if (media.filesize >= 999999) return reply('File Over Limit '+util.format(media))
2095
GojoMdNx.sendImage(m.chat, media.thumb, ` `, m)
2096
GojoMdNx.sendMessage(m.chat, { audio: { url: media.dl_link }, mimetype: 'audio/mpeg', fileName: `${media.title}.mp3` }, { quoted: m })
2097
}
2098
break
2099
case 'ytmp4': case 'getvideo': case 'ytvideo': {
2100
let { ytv } = require('./lib/y2mate')
2101
if (!text) return reply(`Example : ${prefix + command} https://youtube.com/watch?v=PtFMh6Tccag%27 360p`)
2102
let quality = args[1] ? args[1] : '360p'
2103
let media = await ytv(text, quality)
2104
if (media.filesize >= 999999) return reply('File Over Limit '+util.format(media))
2105
GojoMdNx.sendMessage(m.chat, { video: { url: media.dl_link }, mimetype: 'video/mp4', fileName: `${media.title}.mp4`, caption: `: ${media.title}\n\n ${args[1] || '360p'}` }, { quoted: m })
2106
}
2107
break
2108
case 'getmusicxxx': {
2109
let { yta } = require('./lib/y2mate')
2110
let urls = quoted.text.match(new RegExp(/(?:https?:\/\/)?(?:youtu\.be\/|(?:www\.|m\.)?youtube\.com\/(?:watch|v|embed|shorts)(?:\.php)?(?:\?.*v=|\/))([a-zA-Z0-9\_-]+)/, 'gi'))
2111
let quality = args[1] ? args[1] : '128kbps'
2112
let media = await yta(urls[text - 1], quality)
2113
if (media.filesize >= 100000) return reply('File Over Limit '+util.format(media))
2114
GojoMdNx.sendImage(m.chat, media.thumb, `العنوان : ${media.title}\nحجم الملف : ${media.filesizeF}\nالرابط : ${urls[text - 1]}\nاضافة : MP3\nالجودة : ${args[1] || '128kbps'}`, m)
2115
GojoMdNx.sendMessage(m.chat, { audio: { url: media.dl_link }, mimetype: 'audio/mpeg', fileName: `${media.title}.mp3` }, { quoted: m })
2116
}
2117
break
2118
case 'getvideoxxx': {
2119
let { ytv } = require('./lib/y2mate')
2120
if (!text) throw `Example : ${prefix + command} 1`
2121
if (!m.quoted) throw 'Reply Message'
2122
if (!m.quoted.isBaileys) throw `Can Only Reply To Meessages From Bots`
2123
let urls = quoted.text.match(new RegExp(/(?:https?:\/\/)?(?:youtu\.be\/|(?:www\.|m\.)?youtube\.com\/(?:watch|v|embed|shorts)(?:\.php)?(?:\?.*v=|\/))([a-zA-Z0-9\_-]+)/, 'gi'))
2124
if (!urls) throw`Maybe The Message You Replied Does Not Contain The Video Search Result`
2125
let quality = args[1] ? args[1] : '360p'
2126
let media = await ytv(urls[text - 1], quality)
2127
if (media.filesize >= 100000) return reply('File Over Limit '+util.format(media))
2128
GojoMdNx.sendMessage(m.chat, { video: { url: media.dl_link }, mimetype: 'video/mp4', fileName: `${media.title}.mp4`, caption: `🐦 Title : ${media.title}\n🐦 File Size : ${media.filesizeF}\n🐦 Url : ${urls[text - 1]}\n🐦 Ext : MP3\n🐦 Resolution : ${args[1] || '360p'}` }, { quoted: m })
2129
}
2130
break
2131
case 'pinterest': {
2132
reply(mess.wait)
2133
let { pinterest } = require('./lib/scraper')
2134
anu = await pinterest(text)
2135
result = anu[Math.floor(Math.random() * anu.length)]
2136
GojoMdNx.sendMessage(m.chat, { image: { url: result }, caption: '🐦 Media Url : '+result }, { quoted: m })
2137
}
2138
break
2139
case 'webtonsearch': case 'webtoon':
2140
if (!text) return reply('What Are you Looking For??')
2141
await reply(mess.wait)
2142
nexusnw.Webtoons(q).then(async data => {
2143
let txt = `*------「 WEBTOONS-SEARCH 」------*\n\n`
2144
for (let i of data) {
2145
txt += `*📫 Title :* ${i.judul}\n`
2146
txt += `*👍🏻 Like :* ${i.like}\n`
2147
txt += `*🤴🏻 Creator :* ${i.creator}\n`
2148
txt += `*🎥 Genre :* ${i.genre}\n`
2149
txt += `*📚 Url :* ${i.url}\n ----------------------------------------------------------\n`
2150
}
2151
await reply(txt)
2152
})
2153
.catch((err) => {
2154
reply(mess.error)
2155
})
2156
break
2157
case 'candy': case 'christmas': case '3dchristmas': case 'sparklechristmas':
2158
case 'deepsea': case 'scifi': case 'rainbow': case 'waterpipe': case 'spooky':
2159
case 'pencil': case 'circuit': case 'discovery': case 'metalic': case 'fiction': case 'demon':
2160
case 'transformer': case 'berry': case 'thunder': case 'magma': case '3dstone':
2161
case 'neonlight': case 'glitch': case 'harrypotter': case 'brokenglass': case 'papercut':
2162
case 'watercolor': case 'multicolor': case 'neondevil': case 'underwater': case 'graffitibike':
2163
case 'snow': case 'cloud': case 'honey': case 'ice': case 'fruitjuice': case 'biscuit': case 'wood':
2164
case 'chocolate': case 'strawberry': case 'matrix': case 'blood': case 'dropwater': case 'toxic':
2165
case 'lava': case 'rock': case 'bloodglas': case 'hallowen': case 'darkgold': case 'joker': case 'wicker':
2166
case 'firework': case 'skeleton': case 'blackpink': case 'sand': case 'glue': case '1917': case 'leaves': {
2167
if (!q) return reply(`Example : ${prefix + command} ${global.ownername}`)
2168
2169
let link
2170
if (/candy/.test(command)) link = 'https://textpro.me/create-christmas-candy-cane-text-effect-1056.html'
2171
if (/christmas/.test(command)) link = 'https://textpro.me/christmas-tree-text-effect-online-free-1057.html'
2172
if (/3dchristmas/.test(command)) link = 'https://textpro.me/3d-christmas-text-effect-by-name-1055.html'
2173
if (/sparklechristmas/.test(command)) link = 'https://textpro.me/sparkles-merry-christmas-text-effect-1054.html'
2174
if (/deepsea/.test(command)) link = 'https://textpro.me/create-3d-deep-sea-metal-text-effect-online-1053.html'
2175
if (/scifi/.test(command)) link = 'https://textpro.me/create-3d-sci-fi-text-effect-online-1050.html'
2176
if (/rainbow/.test(command)) link = 'https://textpro.me/3d-rainbow-color-calligraphy-text-effect-1049.html'
2177
if (/waterpipe/.test(command)) link = 'https://textpro.me/create-3d-water-pipe-text-effects-online-1048.html'
2178
if (/spooky/.test(command)) link = 'https://textpro.me/create-halloween-skeleton-text-effect-online-1047.html'
2179
if (/pencil/.test(command)) link = 'https://textpro.me/create-a-sketch-text-effect-online-1044.html'
2180
if (/circuit/.test(command)) link = 'https://textpro.me/create-blue-circuit-style-text-effect-online-1043.html'
2181
if (/discovery/.test(command)) link = 'https://textpro.me/create-space-text-effects-online-free-1042.html'
2182
if (/metalic/.test(command)) link = 'https://textpro.me/creat-glossy-metalic-text-effect-free-online-1040.html'
2183
if (/fiction/.test(command)) link = 'https://textpro.me/create-science-fiction-text-effect-online-free-1038.html'
2184
if (/demon/.test(command)) link = 'https://textpro.me/create-green-horror-style-text-effect-online-1036.html'
2185
if (/transformer/.test(command)) link = 'https://textpro.me/create-a-transformer-text-effect-online-1035.html'
2186
if (/berry/.test(command)) link = 'https://textpro.me/create-berry-text-effect-online-free-1033.html'
2187
if (/thunder/.test(command)) link = 'https://textpro.me/online-thunder-text-effect-generator-1031.html'
2188
if (/magma/.test(command)) link = 'https://textpro.me/create-a-magma-hot-text-effect-online-1030.html'
2189
if (/3dstone/.test(command)) link = 'https://textpro.me/3d-stone-cracked-cool-text-effect-1029.html'
2190
if (/neonlight/.test(command)) link = 'https://textpro.me/create-3d-neon-light-text-effect-online-1028.html'
2191
if (/glitch/.test(command)) link = 'https://textpro.me/create-impressive-glitch-text-effects-online-1027.html'
2192
if (/harrypotter/.test(command)) link = 'https://textpro.me/create-harry-potter-text-effect-online-1025.html'
2193
if (/brokenglass/.test(command)) link = 'https://textpro.me/broken-glass-text-effect-free-online-1023.html'
2194
if (/papercut/.test(command)) link = 'https://textpro.me/create-art-paper-cut-text-effect-online-1022.html'
2195
if (/watercolor/.test(command)) link = 'https://textpro.me/create-a-free-online-watercolor-text-effect-1017.html'
2196
if (/multicolor/.test(command)) link = 'https://textpro.me/online-multicolor-3d-paper-cut-text-effect-1016.html'
2197
if (/neondevil/.test(command)) link = 'https://textpro.me/create-neon-devil-wings-text-effect-online-free-1014.html'
2198
if (/underwater/.test(command)) link = 'https://textpro.me/3d-underwater-text-effect-generator-online-1013.html'
2199
if (/graffitibike/.test(command)) link = 'https://textpro.me/create-wonderful-graffiti-art-text-effect-1011.html'
2200
if (/snow/.test(command)) link = 'https://textpro.me/create-snow-text-effects-for-winter-holidays-1005.html'
2201
if (/cloud/.test(command)) link = 'https://textpro.me/create-a-cloud-text-effect-on-the-sky-online-1004.html'
2202
if (/honey/.test(command)) link = 'https://textpro.me/honey-text-effect-868.html'
2203
if (/ice/.test(command)) link = 'https://textpro.me/ice-cold-text-effect-862.html'
2204
if (/fruitjuice/.test(command)) link = 'https://textpro.me/fruit-juice-text-effect-861.html'
2205
if (/biscuit/.test(command)) link = 'https://textpro.me/biscuit-text-effect-858.html'
2206
if (/wood/.test(command)) link = 'https://textpro.me/wood-text-effect-856.html'
2207
if (/chocolate/.test(command)) link = 'https://textpro.me/chocolate-cake-text-effect-890.html'
2208
if (/strawberry/.test(command)) link = 'https://textpro.me/strawberry-text-effect-online-889.html'
2209
if (/matrix/.test(command)) link = 'https://textpro.me/matrix-style-text-effect-online-884.html'
2210
if (/blood/.test(command)) link = 'https://textpro.me/horror-blood-text-effect-online-883.html'
2211
if (/dropwater/.test(command)) link = 'https://textpro.me/dropwater-text-effect-872.html'
2212
if (/toxic/.test(command)) link = 'https://textpro.me/toxic-text-effect-online-901.html'
2213
if (/lava/.test(command)) link = 'https://textpro.me/lava-text-effect-online-914.html'
2214
if (/rock/.test(command)) link = 'https://textpro.me/rock-text-effect-online-915.html'
2215
if (/bloodglas/.test(command)) link = 'https://textpro.me/blood-text-on-the-frosted-glass-941.html'
2216
if (/hallowen/.test(command)) link = 'https://textpro.me/halloween-fire-text-effect-940.html'
2217
if (/darkgold/.test(command)) link = 'https://textpro.me/metal-dark-gold-text-effect-online-939.html'
2218
if (/joker/.test(command)) link = 'https://textpro.me/create-logo-joker-online-934.html'
2219
if (/wicker/.test(command)) link = 'https://textpro.me/wicker-text-effect-online-932.html'
2220
if (/firework/.test(command)) link = 'https://textpro.me/firework-sparkle-text-effect-930.html'
2221
if (/skeleton/.test(command)) link = 'https://textpro.me/skeleton-text-effect-online-929.html'
2222
if (/blackpink/.test(command)) link = 'https://textpro.me/create-blackpink-logo-style-online-1001.html'
2223
if (/sand/.test(command)) link = 'https://textpro.me/write-in-sand-summer-beach-free-online-991.html'
2224
if (/glue/.test(command)) link = 'https://textpro.me/create-3d-glue-text-effect-with-realistic-style-986.html'
2225
if (/1917/.test(command)) link = 'https://textpro.me/1917-style-text-effect-online-980.html'
2226
if (/leaves/.test(command)) link = 'https://textpro.me/natural-leaves-text-effect-931.html'
2227
let anu = await maker.textpro(link, q)
2228
GojoMdNx.sendMessage(m.chat, { image: { url: anu }, caption: `Made by ${global.botname},For my Darling ` }, { quoted: m })
2229
}
2230
break
2231
case 'drakorxxx':
2232
if (!text) return reply('What Are You Looking For??')
2233
await reply(mess.wait)
2234
nexusnw.Drakor(`${text}`).then(async data => {
2235
let txt = `*-----「 DRAKOR-SEARCH 」-----*\n\n`
2236
for (let i of data) {
2237
txt += `*📫 Title :* ${i.judul}\n`
2238
txt += `*📆 Years :* ${i.years}\n`
2239
txt += `*🎥 Genre :* ${i.genre}\n`
2240
txt += `*📚 Url :* ${i.url}\n-----------------------------------------------------\n`
2241
}
2242
await sendFileFromUrl(from,data[0].thumbnail,txt,m)
2243
})
2244
.catch((err) => {
2245
reply(mess.error)
2246
})
2247
break
2248
case 'animexxx':{
2249
if (!text) return reply(`What Anime Are You Looking For??`)
2250
await reply(mess.wait)
2251
nexusnw.Anime(q).then(async data => {
2252
let txt = `*-------「 ANIME-SEARCH 」-------*\n\n`
2253
for (let i of data) {
2254
txt += `*📫 Title :* ${i.judul}\n`
2255
txt += `*📚 Url :* ${i.link}\n-----------------------------------------------------\n`
2256
}
2257
let gam = await getBuffer(data[0].thumbnail.replace('https://www.anime-planet.com',''))
2258
var but = [
2259
{
2260
"urlButton": {
2261
"displayText": "Watch🎥",
2262
"url": `${myweb}`
2263
}
2264
}
2265
]
2266
await GojoMdNx.send5ButLoc(from, txt , `© ${ownername}`,gam, but , { userJid: m.chat, quoted: m })
2267
})
2268
.catch((err) => {
2269
reply(mess.error)
2270
})
2271
}
2272
break
2273
case 'characterxxx': case 'karakterxxx':
2274
if (!text) return reply(`What Anime Character Are You Looking For??`)
2275
await reply(mess.wait)
2276
nexusnw.Character(q).then(async data => {
2277
let txt = `*---「 CHARACTER-SEARCH 」---*\n\n`
2278
for (let i of data) {
2279
txt += `*📫 Character :* ${i.character}\n`
2280
txt += `*📚 Url :* ${i.link}\n-----------------------------------------------------\n`
2281
}
2282
let gam = await getBuffer(data[0].thumbnail.replace('https://www.anime-planet.com',''))
2283
var but = [
2284
{
2285
"urlButton": {
2286
"displayText": "YouTube📍",
2287
"url": `${myweb}`
2288
}
2289
}
2290
]
2291
await GojoMdNx.send5ButLoc(from, txt , `© ${ownername}`,gam, but , { userJid: m.chat, quoted: m })
2292
})
2293
.catch((err) => {
2294
reply(mess.error)
2295
})
2296
break
2297
case 'manga':
2298
if (!text) return reply(`What Manga Are You Looking For??`)
2299
await reply(mess.wait)
2300
nexusnw.Manga(`${text}`).then(async data => {
2301
let txt = `*------「 MANGA-SEARCH 」------*\n\n`
2302
for (let i of data) {
2303
txt += `*📫 Title :* ${i.judul}\n`
2304
txt += `*📚 Url :* ${i.link}\n-----------------------------------------------------\n`
2305
}
2306
let gam = await getBuffer(data[0].thumbnail.replace('https://www.anime-planet.com',''))
2307
var but = [
2308
{
2309
"urlButton": {
2310
"displayText": "YouTube📍",
2311
"url": `${myweb}`
2312
}
2313
}
2314
]
2315
await GojoMdNx.send5ButLoc(from, txt , `© ${ownername}`,gam, but , { userJid: m.chat, quoted: m })
2316
})
2317
.catch((err) => {
2318
reply(mess.error)
2319
})
2320
break
2321
case 'textmakerl': {
2322
if (args.length < 1) return reply(`Example :\n${prefix + command} Name`)
2323
if (args[0] === 'glitch') {
2324
if (args.length < 2) return reply(`Example :\n${prefix + command + ' ' + args[0]} ${global.ownername}`)
2325
let teds = await thiccysapi.textpro("https://textpro.me/create-impressive-glitch-text-effects-online-1027.html", [args[1]])
2326
GojoMdNx.sendMessage(from, {image:{url:teds}, caption:"Done!"}, {quoted:m})
2327
} else if (args[0] === 'glow') {
2328
if (args.length < 2) return reply(`Example :\n${prefix + command + ' ' + args[0]} ${global.ownername}`)
2329
let teds = await thiccysapi.textpro("https://textpro.me/create-light-glow-sliced-text-effect-online-1068.html", [args[1]])
2330
GojoMdNx.sendMessage(from, {image:{url:teds}, caption:"Done!"}, {quoted:m})
2331
} else {
2332
reply(`*Text Maker List :*\n•> glitch\n•> glow`)
2333
}
2334
}
2335
break
2336
case 'waifu': case 'husbu': case 'neko': case 'shinobu': case 'megumin': case 'waifus': case 'nekos': case 'trap': case 'blowjob': {
2337
reply(mess.wait)
2338
GojoMdNx.sendMessage(m.chat, { image: { url: api('zenz', '/api/random/'+command, {}, 'apikey') }, caption: 'Generated Random ' + command }, { quoted: m })
2339
}
2340
break
2341
case 'تطقيم': case 'طقم': {
2342
reply(mess.wait)
2343
let anu = await fetchJson('https://raw.githubusercontent.com/iamriz7/kopel_/main/kopel.json')
2344
let random = anu[Math.floor(Math.random() * anu.length)]
2345
GojoMdNx.sendMessage(m.chat, { image: { url: random.male }, caption: `「 ولد 」「👦🏻」◣`}, { quoted: m })
2346
GojoMdNx.sendMessage(m.chat, { image: { url: random.female }, caption: `「 بنت 」「👧🏻」◣` }, { quoted: m })
2347
}
2348
break
2349
case 'قهوة': case 'شاي': {
2350
let buttons = [
2351
{buttonId: `شاي`, buttonText: {displayText: '➡️'}, type: 1}
2352
]
2353
let buttonMessage = {
2354
image: { url: 'https://coffee.alexflipnote.dev/random' },
2355
caption: `☕`,
2356
footer: GojoMdNx.user.name,
2357
buttons: buttons,
2358
headerType: 4
2359
}
2360
GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2361
}
2362
break
2363
case 'wallpaper': {
2364
if (!text) return reply(`Enter Query Title`)
2365
let { wallpaper } = require('./lib/scraper')
2366
anu = await wallpaper(text)
2367
result = anu[Math.floor(Math.random() * anu.length)]
2368
let buttons = [
2369
{buttonId: `wallpaper ${text}`, buttonText: {displayText: '➡️Next Image➡️'}, type: 1}
2370
]
2371
let buttonMessage = {
2372
image: { url: result.image[0] },
2373
caption: `🐦 Title : ${result.title}\n🐦 Category : ${result.type}\n🐦 Detail : ${result.source}\n🐦 Media Url : ${result.image[2] || result.image[1] || result.image[0]}`,
2374
footer: GojoMdNx.user.name,
2375
buttons: buttons,
2376
headerType: 4
2377
}
2378
GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2379
}
2380
break
2381
case 'wikimedia': {
2382
if (!text) return reply(`Enter Query Title`)
2383
let { wikimedia } = require('./lib/scraper')
2384
anu = await wikimedia(text)
2385
result = anu[Math.floor(Math.random() * anu.length)]
2386
let buttons = [
2387
{buttonId: `wikimedia ${text}`, buttonText: {displayText: '➡️Next Image➡️'}, type: 1}
2388
]
2389
let buttonMessage = {
2390
image: { url: result.image },
2391
caption: `🐦 Title : ${result.title}\n🐦 Source : ${result.source}\n🐦 Media Url : ${result.image}`,
2392
footer: GojoMdNx.user.name,
2393
buttons: buttons,
2394
headerType: 4
2395
}
2396
GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2397
}
2398
break
2399
case 'quotesanime': case 'animequotes': case 'animequote': case 'quoteanime': {
2400
let { quotesAnime } = require('./lib/scraper')
2401
let anu = await quotesAnime()
2402
result = anu[Math.floor(Math.random() * anu.length)]
2403
let buttons = [
2404
{buttonId: `quotesanime`, buttonText: {displayText: '➡️Next➡️'}, type: 1}
2405
]
2406
let buttonMessage = {
2407
text: `~_${result.quotes}_\n\nBy '${result.karakter}', ${result.anime}\n\n- ${result.up_at}`,
2408
footer: 'Press The Button Below',
2409
buttons: buttons,
2410
headerType: 2
2411
}
2412
GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2413
}
2414
break
2415
case 'motivasi': case 'motivationalquote': case 'bucinquote': case 'katasenja': case 'puisi': {
2416
let anu = await fetchJson(api('zenz', '/api/'+command, {}, 'apikey'))
2417
let buttons = [
2418
{buttonId: `motivasi`, buttonText: {displayText: '➡️Next➡️'}, type: 1}
2419
]
2420
let buttonMessage = {
2421
text: anu.result.message,
2422
footer: 'Press The Button Below',
2423
buttons: buttons,
2424
headerType: 2
2425
}
2426
GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2427
}
2428
break
2429
case '3dchristmas': case '3ddeepsea': case 'americanflag': case '3dscifi': case '3drainbow': case '3dwaterpipe': case 'halloweenskeleton': case 'sketch': case 'bluecircuit': case 'space': case 'metallic': case 'fiction': case 'greenhorror': case 'transformer': case 'berry': case 'thunder': case 'magma': case '3dcrackedstone': case '3dneonlight': case 'impressiveglitch': case 'naturalleaves': case 'fireworksparkle': case 'matrix': case 'dropwater': case 'harrypotter': case 'foggywindow': case 'neondevils': case 'christmasholiday': case '3dgradient': case 'blackpink': case 'gluetext': {
2430
if (!text) return reply(`Enter Text, Example : ${prefix + command} Xeon`)
2431
reply(mess.wait)
2432
GojoMdNx.sendMessage(m.chat, { image: { url: api('zenz', '/textpro/' + command, { text: text }, 'apikey') }, caption: `Text Pro ${command}` }, { quoted: m})
2433
}
2434
break
2435
case 'nomerhoki': case 'nomorhoki': {
2436
if (!Number(text)) return reply(`Example : ${prefix + command} 916909137213`)
2437
let anu = await primbon.nomer_hoki(Number(text))
2438
if (anu.status == false) return reply(anu.message)
2439
GojoMdNx.sendText(m.chat, `🐦 *Phone Number :* ${anu.message.nomer_hp}\n🐦 *Shuzi Angka Figures :* ${anu.message.angka_shuzi}\n🐦 *Positive Energy :*\n- Riches : ${anu.message.energi_positif.kekayaan}\n- Health : ${anu.message.energi_positif.kesehatan}\n- Love : ${anu.message.energi_positif.cinta}\n- Stability : ${anu.message.energi_positif.kestabilan}\n- Percentage : ${anu.message.energi_positif.persentase}\n🐦 *Negative Energy :*\n- Dispute : ${anu.message.energi_negatif.perselisihan}\n- Lost : ${anu.message.energi_negatif.kehilangan}\n- Catastrophe : ${anu.message.energi_negatif.malapetaka}\n- Destruction : ${anu.message.energi_negatif.kehancuran}\n- Percentage : ${anu.message.energi_negatif.persentase}`, m)
2440
}
2441
break
2442
case 'artimimpi': case 'tafsirmimpi': {
2443
if (!text) return reply(`Example : ${prefix + command} belanja`)
2444
let anu = await primbon.tafsir_mimpi(text)
2445
if (anu.status == false) return reply(anu.message)
2446
GojoMdNx.sendText(m.chat, `🐦 *Dream :* ${anu.message.mimpi}\n🐦 *Meaning :* ${anu.message.arti}\n🐦 *Solution :* ${anu.message.solusi}`, m)
2447
}
2448
break
2449
case 'ramalanjodoh': case 'ramaljodoh': {
2450
if (!text) throw `Example : ${prefix + command} Dika, 7, 7, 2005, Novia, 16, 11, 2004`
2451
let [nama1, tgl1, bln1, thn1, nama2, tgl2, bln2, thn2] = text.split`,`
2452
let anu = await primbon.ramalan_jodoh(nama1, tgl1, bln1, thn1, nama2, tgl2, bln2, thn2)
2453
if (anu.status == false) return reply(anu.message)
2454
GojoMdNx.sendText(m.chat, `🐦 *Your Name :* ${anu.message.nama_anda.nama}\n🐦 *Your Birth :* ${anu.message.nama_anda.tgl_lahir}\n🐦 *Couple Name :* ${anu.message.nama_pasangan.nama}\n🐦 *Born Couple :* ${anu.message.nama_pasangan.tgl_lahir}\n🐦 *Results :* ${anu.message.result}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2455
}
2456
break
2457
case 'ramalanjodohbali': case 'ramaljodohbali': {
2458
if (!text) throw `Example : ${prefix + command} Dika, 7, 7, 2005, Novia, 16, 11, 2004`
2459
let [nama1, tgl1, bln1, thn1, nama2, tgl2, bln2, thn2] = text.split`,`
2460
let anu = await primbon.ramalan_jodoh_bali(nama1, tgl1, bln1, thn1, nama2, tgl2, bln2, thn2)
2461
if (anu.status == false) return reply(anu.message)
2462
GojoMdNx.sendText(m.chat, `🐦 *Your Name :* ${anu.message.nama_anda.nama}\n🐦 *Your Birth :* ${anu.message.nama_anda.tgl_lahir}\n🐦 *Couple Name :* ${anu.message.nama_pasangan.nama}\n🐦 *Born Couple :* ${anu.message.nama_pasangan.tgl_lahir}\n🐦 *Results :* ${anu.message.result}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2463
}
2464
break
2465
case 'suamiistri': {
2466
if (!text) throw `Example : ${prefix + command} Dika, 7, 7, 2005, Novia, 16, 11, 2004`
2467
let [nama1, tgl1, bln1, thn1, nama2, tgl2, bln2, thn2] = text.split`,`
2468
let anu = await primbon.suami_istri(nama1, tgl1, bln1, thn1, nama2, tgl2, bln2, thn2)
2469
if (anu.status == false) return reply(anu.message)
2470
GojoMdNx.sendText(m.chat, `🐦 *Husband's Name :* ${anu.message.suami.nama}\n🐦 *Husband Born :* ${anu.message.suami.tgl_lahir}\n🐦 *Wife's Name :* ${anu.message.istri.nama}\n🐦 *Born Wife :* ${anu.message.istri.tgl_lahir}\n🐦 *Results :* ${anu.message.result}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2471
}
2472
break
2473
case 'ramalancinta': case 'ramalcinta': {
2474
if (!text) throw `Example : ${prefix + command} Dika, 7, 7, 2005, Novia, 16, 11, 2004`
2475
let [nama1, tgl1, bln1, thn1, nama2, tgl2, bln2, thn2] = text.split`,`
2476
let anu = await primbon.ramalan_cinta(nama1, tgl1, bln1, thn1, nama2, tgl2, bln2, thn2)
2477
if (anu.status == false) return reply(anu.message)
2478
GojoMdNx.sendText(m.chat, `🐦 *Your Name :* ${anu.message.nama_anda.nama}\n🐦 *Your Birth :* ${anu.message.nama_anda.tgl_lahir}\n🐦 *Couple Name :* ${anu.message.nama_pasangan.nama}\n🐦 *Born Couple :* ${anu.message.nama_pasangan.tgl_lahir}\n🐦 *Positive Side :* ${anu.message.sisi_positif}\n🐦 *Negative Side :* ${anu.message.sisi_negatif}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2479
}
2480
break
2481
case 'artinama': {
2482
if (!text) throw `Example : ${prefix + command} Dika Ardianta`
2483
let anu = await primbon.arti_nama(text)
2484
if (anu.status == false) return reply(anu.message)
2485
GojoMdNx.sendText(m.chat, `🐦 *Name :* ${anu.message.nama}\n🐦 *Meaning :* ${anu.message.arti}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2486
}
2487
break
2488
case 'kecocokannama': case 'cocoknama': {
2489
if (!text) throw `Example : ${prefix + command} Dika, 7, 7, 2005`
2490
let [nama, tgl, bln, thn] = text.split`,`
2491
let anu = await primbon.kecocokan_nama(nama, tgl, bln, thn)
2492
if (anu.status == false) return reply(anu.message)
2493
GojoMdNx.sendText(m.chat, `🐦 *Name :* ${anu.message.nama}\n🐦 *Born :* ${anu.message.tgl_lahir}\n🐦 *Life Path :* ${anu.message.life_path}\n🐦 *Destiny :* ${anu.message.destiny}\n🐦 *Destiny Desire :* ${anu.message.destiny_desire}\n🐦 *Personality :* ${anu.message.personality}\n🐦 *Percentage :* ${anu.message.persentase_kecocokan}`, m)
2494
}
2495
break
2496
case 'kecocokanpasangan': case 'cocokpasangan': case 'pasangan': {
2497
if (!text) throw `Example : ${prefix + command} Dika|Novia`
2498
let [nama1, nama2] = text.split`|`
2499
let anu = await primbon.kecocokan_nama_pasangan(nama1, nama2)
2500
if (anu.status == false) return reply(anu.message)
2501
GojoMdNx.sendImage(m.chat, anu.message.gambar, `🐦 *Your Name :* ${anu.message.nama_anda}\n🐦 *Couple Name :* ${anu.message.nama_pasangan}\n🐦 *Positive Side :* ${anu.message.sisi_positif}\n🐦 *Negative Side :* ${anu.message.sisi_negatif}`, m)
2502
}
2503
break
2504
case 'jadianpernikahan': case 'jadiannikah': {
2505
if (!text) throw `Example : ${prefix + command} 6, 12, 2020`
2506
let [tgl, bln, thn] = text.split`,`
2507
let anu = await primbon.tanggal_jadian_pernikahan(tgl, bln, thn)
2508
if (anu.status == false) return reply(anu.message)
2509
GojoMdNx.sendText(m.chat, `🐦 *Wedding Date :* ${anu.message.tanggal}\n🐦 *Characteristics :* ${anu.message.karakteristik}`, m)
2510
}
2511
break
2512
case 'sifatusaha': {
2513
if (!ext)throw `Example : ${prefix+ command} 28, 12, 2021`
2514
let [tgl, bln, thn] = text.split`,`
2515
let anu = await primbon.sifat_usaha_bisnis(tgl, bln, thn)
2516
if (anu.status == false) return reply(anu.message)
2517
GojoMdNx.sendText(m.chat, `🐦 *Born :* ${anu.message.hari_lahir}\n🐦 *Business :* ${anu.message.usaha}`, m)
2518
}
2519
break
2520
case 'rejeki': case 'rezeki': {
2521
if (!text) throw `Example : ${prefix + command} 7, 7, 2005`
2522
let [tgl, bln, thn] = text.split`,`
2523
let anu = await primbon.rejeki_hoki_weton(tgl, bln, thn)
2524
if (anu.status == false) return reply(anu.message)
2525
GojoMdNx.sendText(m.chat, `🐦 *Born :* ${anu.message.hari_lahir}\n🐦 *Sustenance :* ${anu.message.rejeki}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2526
}
2527
break
2528
case 'pekerjaan': case 'kerja': {
2529
if (!text) throw `Example : ${prefix + command} 7, 7, 2005`
2530
let [tgl, bln, thn] = text.split`,`
2531
let anu = await primbon.pekerjaan_weton_lahir(tgl, bln, thn)
2532
if (anu.status == false) return reply(anu.message)
2533
GojoMdNx.sendText(m.chat, `🐦 *Born :* ${anu.message.hari_lahir}\n🐦 *Profession :* ${anu.message.pekerjaan}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2534
}
2535
break
2536
case 'ramalannasib': case 'ramalnasib': case 'nasib': {
2537
if (!text) throw `Example : 7, 7, 2005`
2538
let [tgl, bln, thn] = text.split`,`
2539
let anu = await primbon.ramalan_nasib(tgl, bln, thn)
2540
if (anu.status == false) return reply(anu.message)
2541
GojoMdNx.sendText(m.chat, `🐦 *Analysis :* ${anu.message.analisa}\n🐦 *Root Number :* ${anu.message.angka_akar}\n🐦 *Nature :* ${anu.message.sifat}\n🐦 *Element :* ${anu.message.elemen}\n🐦 *Lucky Numbers :* ${anu.message.angka_keberuntungan}`, m)
2542
}
2543
break
2544
case 'potensipenyakit': case 'penyakit': {
2545
if (!text) throw `Example : ${prefix + command} 7, 7, 2005`
2546
let [tgl, bln, thn] = text.split`,`
2547
let anu = await primbon.cek_potensi_penyakit(tgl, bln, thn)
2548
if (anu.status == false) return reply(anu.message)
2549
GojoMdNx.sendText(m.chat, `🐦 *Analysis :* ${anu.message.analisa}\n🐦 *Sector :* ${anu.message.sektor}\n?? *Element :* ${anu.message.elemen}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2550
}
2551
break
2552
case 'artitarot': case 'tarot': {
2553
if (!text) throw `Example : ${prefix + command} 7, 7, 2005`
2554
let [tgl, bln, thn] = text.split`,`
2555
let anu = await primbon.arti_kartu_tarot(tgl, bln, thn)
2556
if (anu.status == false) return reply(anu.message)
2557
GojoMdNx.sendImage(m.chat, anu.message.image, `🐦 *Born :* ${anu.message.tgl_lahir}\n🐦 *Tarot Symbol :* ${anu.message.simbol_tarot}\n🐦 *Meaning :* ${anu.message.arti}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2558
}
2559
break
2560
case 'fengshui': {
2561
if (!text) throw `Example : ${prefix + command} Dika, 1, 2005\n\nNote : ${prefix + command} Name, gender, tahun lahir\nGender : 1 untuk laki-laki & 2 untuk perempuan`
2562
let [nama, gender, tahun] = text.split`,`
2563
let anu = await primbon.perhitungan_feng_shui(nama, gender, tahun)
2564
if (anu.status == false) return reply(anu.message)
2565
GojoMdNx.sendText(m.chat, `🐦 *Name :* ${anu.message.nama}\n🐦 *Born :* ${anu.message.tahun_lahir}\n🐦 *Gender :* ${anu.message.jenis_kelamin}\n🐦 *Kua Number :* ${anu.message.angka_kua}\n🐦 *Group :* ${anu.message.kelompok}\n🐦 *Character :* ${anu.message.karakter}\n🐦 *Good Sector :* ${anu.message.sektor_baik}\n🐦 *Bad Sector :* ${anu.message.sektor_buruk}`, m)
2566
}
2567
break
2568
case 'haribaik': {
2569
if (!text) throw `Example : ${prefix + command} 7, 7, 2005`
2570
let [tgl, bln, thn] = text.split`,`
2571
let anu = await primbon.petung_hari_baik(tgl, bln, thn)
2572
if (anu.status == false) return reply(anu.message)
2573
GojoMdNx.sendText(m.chat, `🐦 *Born :* ${anu.message.tgl_lahir}\n🐦 *When Challenged :* ${anu.message.kala_tinantang}\n🐦 *Info :* ${anu.message.info}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2574
}
2575
break
2576
case 'harisangar': case 'taliwangke': {
2577
if (!text) throw `Example : ${prefix + command} 7, 7, 2005`
2578
let [tgl, bln, thn] = text.split`,`
2579
let anu = await primbon.hari_sangar_taliwangke(tgl, bln, thn)
2580
if (anu.status == false) return reply(anu.message)
2581
GojoMdNx.sendText(m.chat, `🐦 *Born :* ${anu.message.tgl_lahir}\n🐦 *Results :* ${anu.message.result}\n🐦 *Info :* ${anu.message.info}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2582
}
2583
break
2584
case 'harinaas': case 'harisial': {
2585
if (!text) throw `Example : ${prefix + command} 7, 7, 2005`
2586
let [tgl, bln, thn] = text.split`,`
2587
let anu = await primbon.primbon_hari_naas(tgl, bln, thn)
2588
if (anu.status == false) return reply(anu.message)
2589
GojoMdNx.sendText(m.chat, `🐦 *Day Of Birth :* ${anu.message.hari_lahir}\n🐦 *Date Of Birth :* ${anu.message.tgl_lahir}\n🐦 *Fateful Day :* ${anu.message.hari_naas}\n🐦 *Info :* ${anu.message.catatan}\n🐦 *Notes :* ${anu.message.info}`, m)
2590
}
2591
break
2592
case 'nagahari': case 'harinaga': {
2593
if (!text) throw `Example : ${prefix + command} 7, 7, 2005`
2594
let [tgl, bln, thn] = text.split`,`
2595
let anu = await primbon.rahasia_naga_hari(tgl, bln, thn)
2596
if (anu.status == false) return reply(anu.message)
2597
GojoMdNx.sendText(m.chat, `🐦 *Day Of Birth :* ${anu.message.hari_lahir}\n🐦 *Date Of Birth :* ${anu.message.tgl_lahir}\n🐦 *Dragon Day Direction :* ${anu.message.arah_naga_hari}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2598
}
2599
break
2600
case 'arahrejeki': case 'arahrezeki': {
2601
if (!text) throw `Example : ${prefix + command} 7, 7, 2005`
2602
let [tgl, bln, thn] = text.split`,`
2603
let anu = await primbon.primbon_arah_rejeki(tgl, bln, thn)
2604
if (anu.status == false) return reply(anu.message)
2605
GojoMdNx.sendText(m.chat, `🐦 *Day Of Birth :* ${anu.message.hari_lahir}\n🐦 *Date Of Birth :* ${anu.message.tgl_lahir}\n🐦 *Sustenance Direction :* ${anu.message.arah_rejeki}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2606
}
2607
break
2608
case 'peruntungan': {
2609
if (!text) throw `Example : ${prefix + command} DIka, 7, 7, 2005, 2022\n\nNote : ${prefix + command} Name, tanggal lahir, bulan lahir, tahun lahir, untuk tahun`
2610
let [nama, tgl, bln, thn, untuk] = text.split`,`
2611
let anu = await primbon.ramalan_peruntungan(nama, tgl, bln, thn, untuk)
2612
if (anu.status == false) return reply(anu.message)
2613
GojoMdNx.sendText(m.chat, `🐦 *Name :* ${anu.message.nama}\n🐦 *Born :* ${anu.message.tgl_lahir}\n🐦 *Fortune Of The Year :* ${anu.message.peruntungan_tahun}\n🐦 *Results :* ${anu.message.result}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2614
}
2615
break
2616
case 'weton': case 'wetonjawa': {
2617
if (!text) throw `Example : ${prefix + command} 7, 7, 2005`
2618
let [tgl, bln, thn] = text.split`,`
2619
let anu = await primbon.weton_jawa(tgl, bln, thn)
2620
if (anu.status == false) return reply(anu.message)
2621
GojoMdNx.sendText(m.chat, `🐦 *Date :* ${anu.message.tanggal}\n🐦 *Number Of Neptune :* ${anu.message.jumlah_neptu}\n🐦 *Day Character :* ${anu.message.watak_hari}\n🐦 *Dragon Day :* ${anu.message.naga_hari}\n🐦 *Good Hour :* ${anu.message.jam_baik}\n🐦 *Birth Character :* ${anu.message.watak_kelahiran}`, m)
2622
}
2623
break
2624
case 'sifat': case 'karakter': {
2625
if (!text) throw `Example : ${prefix + command} Dika, 7, 7, 2005`
2626
let [nama, tgl, bln, thn] = text.split`,`
2627
let anu = await primbon.sifat_karakter_tanggal_lahir(nama, tgl, bln, thn)
2628
if (anu.status == false) return reply(anu.message)
2629
GojoMdNx.sendText(m.chat, `🐦 *Name :* ${anu.message.nama}\n🐦 *Born :* ${anu.message.tgl_lahir}\n🐦 *Lifeline :* ${anu.message.garis_hidup}`, m)
2630
}
2631
break
2632
case 'keberuntungan': {
2633
if (!text) throw `Example : ${prefix + command} Dika, 7, 7, 2005`
2634
let [nama, tgl, bln, thn] = text.split`,`
2635
let anu = await primbon.potensi_keberuntungan(nama, tgl, bln, thn)
2636
if (anu.status == false) return reply(anu.message)
2637
GojoMdNx.sendText(m.chat, `🐦 *Name :* ${anu.message.nama}\n🐦 *Born :* ${anu.message.tgl_lahir}\n🐦 *Results :* ${anu.message.result}`, m)
2638
}
2639
break
2640
case 'memancing': {
2641
if (!text) throw `Example : ${prefix + command} 12, 1, 2022`
2642
let [tgl, bln, thn] = text.split`,`
2643
let anu = await primbon.primbon_memancing_ikan(tgl, bln, thn)
2644
if (anu.status == false) return reply(anu.message)
2645
GojoMdNx.sendText(m.chat, `🐦 *Date :* ${anu.message.tgl_memancing}\n🐦 *Results :* ${anu.message.result}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2646
}
2647
break
2648
case 'masasubur': {
2649
if (!text) throw `Example : ${prefix + command} 12, 1, 2022, 28\n\nNote : ${prefix + command} First Day Of Menstruation Cycle`
2650
let [tgl, bln, thn, siklus] = text.split`,`
2651
let anu = await primbon.masa_subur(tgl, bln, thn, siklus)
2652
if (anu.status == false) return reply(anu.message)
2653
GojoMdNx.sendText(m.chat, `🐦 *Results :* ${anu.message.result}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2654
}
2655
break
2656
case 'zodiak': case 'zodiac': {
2657
if (!text) throw `Example : ${prefix+ command} 7 7 2005`
2658
let zodiak = [
2659
["capricorn", new Date(1970, 0, 1)],
2660
["aquarius", new Date(1970, 0, 20)],
2661
["pisces", new Date(1970, 1, 19)],
2662
["aries", new Date(1970, 2, 21)],
2663
["taurus", new Date(1970, 3, 21)],
2664
["gemini", new Date(1970, 4, 21)],
2665
["cancer", new Date(1970, 5, 22)],
2666
["leo", new Date(1970, 6, 23)],
2667
["virgo", new Date(1970, 7, 23)],
2668
["libra", new Date(1970, 8, 23)],
2669
["scorpio", new Date(1970, 9, 23)],
2670
["sagittarius", new Date(1970, 10, 22)],
2671
["capricorn", new Date(1970, 11, 22)]
2672
].reverse()
2673
2674
function getZodiac(month, day) {
2675
let d = new Date(1970, month - 1, day)
2676
return zodiak.find(([_,_d]) => d >= _d)[0]
2677
}
2678
let date = new Date(text)
2679
if (date == 'Invalid Date') throw date
2680
let d = new Date()
2681
let [tahun, bulan, tanggal] = [d.getFullYear(), d.getMonth() + 1, d.getDate()]
2682
let birth = [date.getFullYear(), date.getMonth() + 1, date.getDate()]
2683
2684
let zodiac = await getZodiac(birth[1], birth[2])
2685
2686
let anu = await primbon.zodiak(zodiac)
2687
if (anu.status == false) return reply(anu.message)
2688
GojoMdNx.sendText(m.chat, `🐦 *Zodiac :* ${anu.message.zodiak}\n🐦 *Number :* ${anu.message.nomor_keberuntungan}\n🐦 *Aroma :* ${anu.message.aroma_keberuntungan}\n🐦 *Planet :* ${anu.message.planet_yang_mengitari}\n🐦 *Flower :* ${anu.message.bunga_keberuntungan}\n🐦 *Color :* ${anu.message.warna_keberuntungan}\n🐦 *Stone :* ${anu.message.batu_keberuntungan}\n🐦 *Element :* ${anu.message.elemen_keberuntungan}\n🐦 *Zodiac Couple :* ${anu.message.pasangan_zodiak}\n🐦 *Notes :* ${anu.message.catatan}`, m)
2689
}
2690
break
2691
case 'shio': {
2692
if (!text) throw `Example : ${prefix + command} tikus\n\nNote : For Detail https://primbon.com/shio.htm`
2693
let anu = await primbon.shio(text)
2694
if (anu.status == false) return reply(anu.message)
2695
GojoMdNx.sendText(m.chat, `🐦 *Results :* ${anu.message}`, m)
2696
}
2697
break
2698
case 'stalker': case 'stalk': {
2699
if (!isPremium && global.db.data.users[m.sender].limit < 1) return reply('Your Daily Limit Has Expired')
2700
if (!text) return reply(`Example : ${prefix +command} type id\n\nList Type :\n1. ff (Free Fire)\n2. ml (Mobile Legends)\n3. aov (Arena Of Valor)\n4. cod (Call Of Duty)\n5. pb (point Blank)\n6. ig (Instagram)\n7. npm (https://npmjs.com)`)
2701
let [type, id, zone] = args
2702
if (type.toLowerCase() == 'ff') {
2703
if (!id) return reply(`No Query id, Example ${prefix + command} ff 552992060`)
2704
let anu = await fetchJson(api('zenz', '/api/nickff', { apikey: global.APIKeys[global.APIs['zenz']], query: id }))
2705
if (anu.status == false) return reply(anu.result.message)
2706
reply(`ID : ${anu.result.gameId}\nUsername : ${anu.result.userName}`)
2707
db.data.users[m.sender].limit -= 1
2708
} else if (type.toLowerCase() == 'ml') {
2709
if (!id) return reply(`No Query id, Example : ${prefix + command} ml 214885010 2253`)
2710
if (!zone) return reply(`No Query id, Example : ${prefix + command} ml 214885010 2253`)
2711
let anu = await fetchJson(api('zenz', '/api/nickml', { apikey: global.APIKeys[global.APIs['zenz']], query: id, query2: zone }))
2712
if (anu.status == false) return reply(anu.result.message)
2713
reply(`ID : ${anu.result.gameId}\nZone : ${anu.result.zoneId}\nUsername : ${anu.result.userName}`)
2714
db.data.users[m.sender].limit -= 1
2715
} else if (type.toLowerCase() == 'aov') {
2716
if (!id) return reply(`No Query id, Example ${prefix + command} aov 293306941441181`)
2717
let anu = await fetchJson(api('zenz', '/api/nickaov', { apikey: global.APIKeys[global.APIs['zenz']], query: id }))
2718
if (anu.status == false) return reply(anu.result.message)
2719
reply(`ID : ${anu.result.gameId}\nUsername : ${anu.result.userName}`)
2720
db.data.users[m.sender].limit -= 1
2721
} else if (type.toLowerCase() == 'cod') {
2722
if (!id) return reply(`No Query id, Example ${prefix + command} cod 6290150021186841472`)
2723
let anu = await fetchJson(api('zenz', '/api/nickcod', { apikey: global.APIKeys[global.APIs['zenz']], query: id }))
2724
if (anu.status == false) return reply(anu.result.message)
2725
reply(`ID : ${anu.result.gameId}\nUsername : ${anu.result.userName}`)
2726
db.data.users[m.sender].limit -= 1
2727
} else if (type.toLowerCase() == 'pb') {
2728
if (!id) return reply(`No Query id, Example ${prefix + command} pb riio46`)
2729
let anu = await fetchJson(api('zenz', '/api/nickpb', { apikey: global.APIKeys[global.APIs['zenz']], query: id }))
2730
if (anu.status == false) return reply(anu.result.message)
2731
reply(`ID : ${anu.result.gameId}\nUsername : ${anu.result.userName}`)
2732
db.data.users[m.sender].limit -= 1
2733
} else if (type.toLowerCase() == 'ig') {
2734
if (!id) return reply(`No Query username, Example : ${prefix + command} ig josephxeon13`)
2735
let { result: anu } = await fetchJson(api('zenz', '/api/stalker/ig', { username: id }, 'apikey'))
2736
if (anu.status == false) return reply(anu.result.message)
2737
GojoMdNx.sendMedia(m.chat, anu.caption.profile_hd, '', `🐦 Full Name : ${anu.caption.full_name}\n🐦 User Name : ${anu.caption.user_name}\n🐦 ID ${anu.caption.user_id}\n🐦 Following : ${anu.caption.followers}\n🐦 Followers : ${anu.caption.following}\n🐦 Bussines : ${anu.caption.bussines}\n🐦 Professional : ${anu.caption.profesional}\n🐦 Verified : ${anu.caption.verified}\n🐦 Private : ${anu.caption.private}\n🐦 Bio : ${anu.caption.biography}\n🐦 Bio Url : ${anu.caption.bio_url}`, m)
2738
db.data.users[m.sender].limit -= 1
2739
} else if (type.toLowerCase() == 'npm') {
2740
if (!id) return reply(`No Query username, Example : ${prefix + command} npm scrape-primbon`)
2741
let { result: anu } = await fetchJson(api('zenz', '/api/stalker/npm', { query: id }, 'apikey'))
2742
if (anu.status == false) return reply(anu.result.message)
2743
reply(`🐦 Name : ${anu.name}\n🐦 Version : ${Object.keys(anu.versions)}\n🐦 Created : ${tanggal(anu.time.created)}\n🐦 Modified : ${tanggal(anu.time.modified)}\n🐦 Maintainers :\n ${anu.maintainers.map(v => `- ${v.name} : ${v.email}`).join('\n')}\n\n🐦 Description : ${anu.description}\n🐦 Homepage : ${anu.homepage}\n🐦 Keywords : ${anu.keywords}\n🐦 Author : ${anu.author.name}\n🐦 License : ${anu.license}\n🐦 Readme : ${anu.readme}`)
2744
db.data.users[m.sender].limit -= 1
2745
} else {
2746
reply(`Example : ${prefix +command} type id\n\nList Type :\n1. ff (Free Fire)\n2. ml (Mobile Legends)\n3. aov (Arena Of Valor)\n4. cod (Call Of Duty)\n5. pb (point Blank)\n6. ig (Instagram)\n7. npm (https://npmjs.com)`)
2747
}
2748
}
2749
break
2750
case 'tiktokd': case 'tiktoknowmx': {
2751
if (!text) return reply(`Enter Query Link!`)
2752
reply(mess.wait)
2753
let anu = await fetchJson(api('zenz', '/downloader/tiktok', { url: text }, 'apikey'))
2754
let buttons = [
2755
{buttonId: `tiktokwm ${text}`, buttonText: {displayText: '🥬With Watermark🥬'}, type: 1},
2756
{buttonId: `tiktokmp3 ${text}`, buttonText: {displayText: '🎵Audio🎵'}, type: 1}
2757
]
2758
let buttonMessage = {
2759
video: { url: anu.result.nowatermark },
2760
caption: `Download From ${text}`,
2761
footer: 'Press The Button Below',
2762
buttons: buttons,
2763
headerType: 5
2764
}
2765
GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2766
}
2767
break
2768
case 'tiktokwmx': case 'tiktokwatermarkx': {
2769
if (!text) return reply(`Enter Query Link!`)
2770
reply(mess.wait)
2771
let anu = await fetchJson(api('zenz', '/downloader/tiktok', { url: text }, 'apikey'))
2772
let buttons = [
2773
{buttonId: `tiktoknowm ${text}`, buttonText: {displayText: '🥬No Watermark🥬'}, type: 1},
2774
{buttonId: `tiktokmp3 ${text}`, buttonText: {displayText: '🎵Audio🎵'}, type: 1}
2775
]
2776
let buttonMessage = {
2777
video: { url: anu.result.watermark },
2778
caption: `Download From ${text}`,
2779
footer: 'Press The Button Below',
2780
buttons: buttons,
2781
headerType: 5
2782
}
2783
GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2784
}
2785
break
2786
case 'tiktokmp3x': case 'tiktokaudiox': {
2787
if (!text) return reply(`Enter Query Link!`)
2788
reply(mess.wait)
2789
let anu = await fetchJson(api('zenz', '/downloader/musically', { url: text }, 'apikey'))
2790
let buttons = [
2791
{buttonId: `tiktoknowm ${text}`, buttonText: {displayText: '🥬No Watermark🥬'}, type: 1},
2792
{buttonId: `tiktokwm ${text}`, buttonText: {displayText: '🥬With Watermark🥬'}, type: 1}
2793
]
2794
let buttonMessage = {
2795
text: `Download From ${text}`,
2796
footer: 'Press The Button Below',
2797
buttons: buttons,
2798
headerType: 2
2799
}
2800
let msg = await GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2801
GojoMdNx.sendMessage(m.chat, { audio: { url: anu.result.audio }, mimetype: 'audio/mpeg'}, { quoted: msg })
2802
}
2803
break
2804
case 'instagramx': case 'igx': case 'igdlx': {
2805
if (!text) return reply(`No Query Url!`)
2806
reply(mess.wait)
2807
if (/(?:\/p\/|\/reel\/|\/tv\/)([^\s&]+)/.test(isUrl(text)[0])) {
2808
let anu = await fetchJson(api('zenz', '/downloader/instagram2', { url: isUrl(text)[0] }, 'apikey'))
2809
for (let media of anu.data) GojoMdNx.sendMedia(m.chat, media, '', `Download Url Instagram From ${isUrl(text)[0]}`, m)
2810
} else if (/\/stories\/([^\s&]+)/.test(isUrl(text)[0])) {
2811
let anu = await fetchJson(api('zenz', '/downloader/instastory', { url: isUrl(text)[0] }, 'apikey'))
2812
GojoMdNx.sendMedia(m.chat, anu.media[0].url, '', `Download Url Instagram From ${isUrl(text)[0]}`, m)
2813
}
2814
}
2815
break
2816
//Backup, for example, the video above doesn't come out\\
2817
case 'igeh': case 'instagram2x': case 'ig2': case 'igdl2': {
2818
if (!text) return reply(`Enter Query Link!`)
2819
reply(mess.wait)
2820
2821
let anu = await fetchJson(api('zenz', '/downloader/instagram2', { url:text }, 'apikey'))
2822
GojoMdNx.sendMessage(m.chat, { video: { url: anu.data[0] } }, { quoted: m })
2823
}
2824
break
2825
case 'joox': case 'jooxdl': {
2826
if (!text) return reply(`No Query Title`)
2827
reply(mess.wait)
2828
let anu = await fetchJson(api('zenz', '/downloader/joox', { query: text }, 'apikey'))
2829
let msg = await GojoMdNx.sendImage(m.chat, anu.result.img, `🐦 Title : ${anu.result.lagu}\n🐦 Album : ${anu.result.album}\n🐦 Singer : ${anu.result.penyanyi}\n🐦 Publish : ${anu.result.publish}\n🐦 Lyrics :\n${anu.result.lirik.result}`, m)
2830
GojoMdNx.sendMessage(m.chat, { audio: { url: anu.result.mp4aLink }, mimetype: 'audio/mpeg', fileName: anu.result.lagu+'.m4a' }, { quoted: msg })
2831
}
2832
break
2833
case 'soundcloud': case 'scdl': {
2834
if (!text) return reply(`No Query Title`)
2835
reply(mess.wait)
2836
let anu = await fetchJson(api('zenz', '/downloader/soundcloud', { url: isUrl(text)[0] }, 'apikey'))
2837
let msg = await GojoMdNx.sendImage(m.chat, anu.result.thumb, `🐦 Title : ${anu.result.title}\n🐦 Url : ${isUrl(text)[0]}`)
2838
GojoMdNx.sendMessage(m.chat, { audio: { url: anu.result.url }, mimetype: 'audio/mpeg', fileName: anu.result.title+'.m4a' }, { quoted: msg })
2839
}
2840
break
2841
case 'twitdlx': case 'twitterx': {
2842
if (!text) return reply(`Enter Query Link!`)
2843
reply(mess.wait)
2844
let anu = await fetchJson(api('zenz', '/api/downloader/twitter', { url: text }, 'apikey'))
2845
let buttons = [
2846
{buttonId: `twittermp3 ${text}`, buttonText: {displayText: '🎵Audio🎵'}, type: 1}
2847
]
2848
let buttonMessage = {
2849
video: { url: anu.result.HD || anu.result.SD },
2850
caption: util.format(anu.result),
2851
footer: 'Press The Button Below',
2852
buttons: buttons,
2853
headerType: 5
2854
}
2855
GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2856
}
2857
break
2858
case 'twittermp3x': case 'twitteraudiox': {
2859
if (!text) return reply(`Enter Query Link!`)
2860
reply(mess.wait)
2861
let anu = await fetchJson(api('zenz', '/api/downloader/twitter', { url: text }, 'apikey'))
2862
let buttons = [
2863
{buttonId: `twitter ${text}`, buttonText: {displayText: '📽️Video📽️'}, type: 1}
2864
]
2865
let buttonMessage = {
2866
image: { url: anu.result.thumb },
2867
caption: util.format(anu.result),
2868
footer: 'Press The Button Below',
2869
buttons: buttons,
2870
headerType: 4
2871
}
2872
let msg = await GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2873
GojoMdNx.sendMessage(m.chat, { audio: { url: anu.result.audio } }, { quoted: msg })
2874
}
2875
break
2876
case 'fbdlx': case 'fbx': case 'facebookx': {
2877
if (!text) return reply(`Enter Query Link!`)
2878
reply(mess.wait)
2879
let anu = await fetchJson(api('zenz', '/api/downloader/facebook', { url: text }, 'apikey'))
2880
GojoMdNx.sendMessage(m.chat, { video: { url: anu.result.url }, caption: `🐦 Title : ${anu.result.title}`}, { quoted: m })
2881
}
2882
break
2883
case 'pindl': case 'pinterestdl': {
2884
if (!text) return reply(`Enter Query Link!`)
2885
reply(mess.wait)
2886
let anu = await fetchJson(api('zenz', '/api/downloader/pinterestdl', { url: text }, 'apikey'))
2887
GojoMdNx.sendMessage(m.chat, { video: { url: anu.result }, caption: `Download From ${text}` }, { quoted: m })
2888
}
2889
break
2890
case 'umma': case 'ummadl': {
2891
if (!text) return reply(`Example : ${prefix + command} https://umma.id/channel/video/post/gus-arafat-sumber-kecewa-84464612933698`)
2892
let { umma } = require('./lib) scraper')
2893
let anu = await umma(isUrl(text)[0])
2894
if (anu.type == 'video') {
2895
let buttons = [
2896
{buttonId: `ytmp3 ${anu.media[0]} 128kbps`, buttonText: {displayText: '🎵Audio🎵'}, type: 1},
2897
{buttonId: `ytmp4 ${anu.media[0]} 360p`, buttonText: {displayText: '📽️Video📽️'}, type: 1}
2898
]
2899
let buttonMessage = {
2900
image: { url: anu.author.profilePic },
2901
caption: `
2902
🐦 Title : ${anu.title}
2903
🐦 Author : ${anu.author.name}
2904
🐦 Like : ${anu.like}
2905
🐦 Caption : ${anu.caption}
2906
🐦 Url : ${anu.media[0]}
2907
To Download Media, Please Click One Of The Buttons Below Or Enter The ytmp3/ytmp4 Command With The Url Above
2908
`,
2909
footer: GojoMdNx.user.name,
2910
buttons,
2911
headerType: 4
2912
}
2913
GojoMdNx.sendMessage(m.chat, buttonMessage, { quoted: m })
2914
} else if (anu.type == 'image') {
2915
anu.media.map(async (url) => {
2916
GojoMdNx.sendMessage(m.chat, { image: { url }, caption: `🐦 Title : ${anu.title}\n🐦 Author : ${anu.author.name}\n🐦 Like : ${anu.like}\n🐦 Caption : ${anu.caption}` }, { quoted: m })
2917
})
2918
}
2919
}
2920
break
2921
case 'ringtone': {
2922
if (!text) return reply(`Example : ${prefix + command} black rover`)
2923
let { ringtone } = require('./lib/scraper')
2924
let anu = await ringtone(text)
2925
let result = anu[Math.floor(Math.random() * anu.length)]
2926
GojoMdNx.sendMessage(m.chat, { audio: { url: result.audio }, fileName: result.title+'.mp3', mimetype: 'audio/mpeg' }, { quoted: m })
2927
}
2928
break
2929
case 'iqraxxx': {
2930
oh = `Example : ${prefix + command} 3\n\nIQRA Which Is Available : 1,2,3,4,5,6`
2931
if (!text) return reply(oh)
2932
yy = await getBuffer(`https://islamic-api-indonesia.herokuapp.com/api/data/pdf/iqra${text}`)
2933
GojoMdNx.sendMessage(m.chat, {document: yy, mimetype: 'application/pdf', fileName: `iqra${text}.pdf`}, {quoted:m}).catch ((err) => reply(oh))
2934
}
2935
break
2936
case 'juzamma': {
2937
if (args[0] === 'pdf') {
2938
reply(mess.wait)
2939
GojoMdNx.sendMessage(m.chat, {document: {url: 'https://fatiharridho.my.id/database/islam/juz-amma-arab-latin-indonesia.pdf'}, mimetype: 'application/pdf', fileName: 'juz-amma-arab-latin-indonesia.pdf'}, {quoted:m})
2940
} else if (args[0] === 'docx') {
2941
reply(mess.wait)
2942
GojoMdNx.sendMessage(m.chat, {document: {url: 'https://fatiharridho.my.id/database/islam/juz-amma-arab-latin-indonesia.docx'}, mimetype: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', fileName: 'juz-amma-arab-latin-indonesia.docx'}, {quoted:m})
2943
} else if (args[0] === 'pptx') {
2944
reply(mess.wait)
2945
GojoMdNx.sendMessage(m.chat, {document: {url: 'https://fatiharridho.my.id/database/islam/juz-amma-arab-latin-indonesia.pptx'}, mimetype: 'application/vnd.openxmlformats-officedocument.presentationml.presentation', fileName: 'juz-amma-arab-latin-indonesia.pptx'}, {quoted:m})
2946
} else if (args[0] === 'xlsx') {
2947
reply(mess.wait)
2948
GojoMdNx.sendMessage(m.chat, {document: {url: 'https://fatiharridho.my.id/database/islam/juz-amma-arab-latin-indonesia.xlsx'}, mimetype: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', fileName: 'juz-amma-arab-latin-indonesia.xlsx'}, {quoted:m})
2949
} else {
2950
reply(`What Format Do You Want? ? Example : ${prefix + command} pdf
2951
2952
Available Formats: pdf, docx, pptx, xlsx`)
2953
}
2954
}
2955
break
2956
case 'hadisxxx': case 'hadistxxx': {
2957
if (!args[0]) return reply(`Example:
2958
${prefix + command} bukhari 1
2959
${prefix + command} abu-daud 1
2960
2961
Options Available:
2962
abu-daud
2963
1 - 4590
2964
ahmad
2965
1 - 26363
2966
bukhari
2967
1 - 7008
2968
darimi
2969
1 - 3367
2970
ibu-majah
2971
1 - 4331
2972
nasai
2973
1 - 5662
2974
malik
2975
1 - 1594
2976
muslim
2977
1 - 5362`)
2978
if (!args[1]) return reply(`Which Hadith??\n\nExample:\n${prefix + command} muslim 1`)
2979
try {
2980
let res = await fetchJson(`https://islamic-api-indonesia.herokuapp.com/api/data/json/hadith/${args[0]}`)
2981
let { number, arab, id } = res.find(v => v.number == args[1])
2982
reply(`No. ${number}
2983
2984
${arab}
2985
2986
${id}`)
2987
} catch (e) {
2988
reply(`Hadith Not Found !`)
2989
}
2990
}
2991
break
2992
case 'alquranxxx': {
2993
if (!args[0]) return reply(`Usage Examples:\n${prefix + command} 1 2\n\nThen The Result Is Surah Al-Fatihah Verse 2 Along With The Audio, And The Verse Is Just 1`)
2994
if (!args[1]) return reply(`Usage Examples:\n${prefix + command} 1 2\n\nThen The Result Is Surah Al-Fatihah Verse 2 Along With The Audio, And The Verse Is Just 1`)
2995
let res = await fetchJson(`https://islamic-api-indonesia.herokuapp.com/api/data/quran?surah=${args[0]}&ayat=${args[1]}`)
2996
let txt = `*Arab* : ${res.result.data.text.arab}
2997
*English* : ${res.result.data.translation.en}
2998
*Indonesia* : ${res.result.data.translation.id}
2999
3000
( Q.S ${res.result.data.surah.name.transliteration.id} : ${res.result.data.number.inSurah} )`
3001
reply(txt)
3002
GojoMdNx.sendMessage(m.chat, {audio: { url: res.result.data.audio.primary }, mimetype: 'audio/mpeg'}, { quoted : m })
3003
}
3004
break
3005
case 'tafsirsurahxxx': {
3006
if (!args[0]) return reply(`Usage Examples:\n${prefix + command} 1 2\n\nThen The Result Is The Interpretation Of Surah Al-Fatihah Verse 2`)
3007
if (!args[1]) return reply(`Usage Examples:\n${prefix + command} 1 2\n\nThen The Result Is The Interpretation Of Surah Al-Fatihah Verse 2`)
3008
let res = await fetchJson(`https://islamic-api-indonesia.herokuapp.com/api/data/quran?surah=${args[0]}&ayat=${args[1]}`)
3009
let txt = `「 *Tafsir Surah* 」
3010
3011
*Short* : ${res.result.data.tafsir.id.short}
3012
3013
*Long* : ${res.result.data.tafsir.id.long}
3014
3015
( Q.S ${res.result.data.surah.name.transliteration.id} : ${res.result.data.number.inSurah} )`
3016
reply(txt)
3017
}
3018
break
3019
case 'bass': case 'blown': case 'deep': case 'earrape': case 'fast': case 'fat': case 'nightcore': case 'reverse': case 'robot': case 'slow': case 'smooth': case 'squirrel':
3020
try {
3021
let set
3022
if (/bass/.test(command)) set = '-af equalizer=f=54:width_type=o:width=2:g=20'
3023
if (/blown/.test(command)) set = '-af acrusher=.1:1:64:0:log'
3024
if (/deep/.test(command)) set = '-af atempo=4/4,asetrate=44500*2/3'
3025
if (/earrape/.test(command)) set = '-af volume=12'
3026
if (/fast/.test(command)) set = '-filter:a "atempo=1.63,asetrate=44100"'
3027
if (/fat/.test(command)) set = '-filter:a "atempo=1.6,asetrate=22100"'
3028
if (/nightcore/.test(command)) set = '-filter:a atempo=1.06,asetrate=44100*1.25'
3029
if (/reverse/.test(command)) set = '-filter_complex "areverse"'
3030
if (/robot/.test(command)) set = '-filter_complex "afftfilt=real=\'hypot(re,im)*sin(0)\':imag=\'hypot(re,im)*cos(0)\':win_size=512:overlap=0.75"'
3031
if (/slow/.test(command)) set = '-filter:a "atempo=0.7,asetrate=44100"'
3032
if (/smooth/.test(command)) set = '-filter:v "minterpolate=\'mi_mode=mci:mc_mode=aobmc:vsbmc=1:fps=120\'"'
3033
if (/tupai/.test(command)) set = '-filter:a "atempo=0.5,asetrate=65100"'
3034
if (/audio/.test(mime)) {
3035
reply(mess.wait)
3036
let media = await GojoMdNx.downloadAndSaveMediaMessage(quoted)
3037
let ran = getRandom('.mp3')
3038
exec(`ffmpeg -i ${media} ${set} ${ran}`, (err, stderr, stdout) => {
3039
fs.unlinkSync(media)
3040
if (err) return reply(err)
3041
let buff = fs.readFileSync(ran)
3042
GojoMdNx.sendMessage(m.chat, { audio: buff, mimetype: 'audio/mpeg' }, { quoted : m })
3043
fs.unlinkSync(ran)
3044
})
3045
} else reply(`Reply To The Audio You Want To Change With Caption *${prefix + command}*`)
3046
} catch (e) {
3047
reply(e)
3048
}
3049
break
3050
case 'setcmd': {
3051
if (!m.quoted) return reply(`Reply Message!`)
3052
if (!m.quoted.fileSha256) return reply(`SHA256 Hash Missing`)
3053
if (!text) return reply(`For What Command?`)
3054
let hash = m.quoted.fileSha256.toString('base64')
3055
if (global.db.data.sticker[hash] && global.db.data.sticker[hash].locked) return reply(`You Have No Permission To Change This Sticker Command`)
3056
global.db.data.sticker[hash] = {
3057
text,
3058
mentionedJid: m.mentionedJid,
3059
creator: m.sender,
3060
at: + new Date,
3061
locked: false,
3062
}
3063
reply(`Done!`)
3064
}
3065
break
3066
case 'delcmd': {
3067
let hash = m.quoted.fileSha256.toString('base64')
3068
if (!hash) return reply(`No Hashes`)
3069
if (global.db.data.sticker[hash] && global.db.data.sticker[hash].locked) return reply(`You Have No Permission To Delete This Sticker Command`)
3070
delete global.db.data.sticker[hash]
3071
reply(`Done!`)
3072
}
3073
break
3074
case 'listcmd': {
3075
let teks = `
3076
*Hash List*
3077
Info: *bold* hash is Locked
3078
${Object.entries(global.db.data.sticker).map(([key, value], index) => `${index + 1}. ${value.locked ? `*${key}*` : key} : ${value.text}`).join('\n')}
3079
`.trim()
3080
GojoMdNx.sendText(m.chat, teks, m, { mentions: Object.values(global.db.data.sticker).map(x => x.mentionedJid).reduce((a,b) => [...a, ...b], []) })
3081
}
3082
break
3083
case 'lockcmd': {
3084
if (!isCreator) return replay(`${mess.owner}`)
3085
if (!m.quoted) return reply(`Reply Message!`)
3086
if (!m.quoted.fileSha256) return reply(`SHA256 Hash Missing`)
3087
let hash = m.quoted.fileSha256.toString('base64')
3088
if (!(hash in global.db.data.sticker)) return reply(`Hash Not Found In Database`)
3089
global.db.data.sticker[hash].locked = !/^un/i.test(command)
3090
reply('Done!')
3091
}
3092
break
3093
case 'اضافة.رسالة': {
3094
if (!m.quoted) return reply(`*「 اكتب مالذي تريد ان تضيفه ف قائمة الرسائل 」◣*`)
3095
if (!text) return reply(`Example : ${prefix + command} File Name`)
3096
let msgs = global.db.data.database
3097
if (text.toLowerCase() in msgs) return reply(`'${text}'*「 هذه الرسالة موجودة بالفعل ف القائمة 」◣*`)
3098
msgs[text.toLowerCase()] = quoted.fakeObj
3099
reply(`*「 تم اضافة الرسالة」◣*'${text}'
3100
3101
「 الرمز ${text} 」◣
3102
3103
「 اكتب *قائمة.الرسائل* لكي ترى الرسائل التي اضفتها 」◣`)
3104
}
3105
break
3106
case 'حصلت.رسالة': {
3107
if (!text) return reply(`Example : ${prefix + command} file name\n\nView Message List With ${prefix}listmsg`)
3108
let msgs = global.db.data.database
3109
if (!(text.toLowerCase() in msgs)) return reply(`'${text}' Not Listed In The Message List`)
3110
GojoMdNx.copyNForward(m.chat, msgs[text.toLowerCase()], true)
3111
}
3112
break
3113
case 'قائمة.الرسائل': {
3114
let msgs = JSON.parse(fs.readFileSync('./database/database.json'))
3115
let seplit = Object.entries(global.db.data.database).map(([nama, isi]) => { return { nama, ...isi } })
3116
let teks = '「 قائمة الرسائل 」\n\n'
3117
for (let i of seplit) {
3118
teks += `💫 *الرمز:* ${i.nama}\n💫 *النوع:* ${getContentType(i.message).replace(/Message/i, '')}\n────────────────────────\n\n`
3119
}
3120
reply(teks)
3121
}
3122
break
3123
case 'حذف.الرسالة': case 'deletemsg': {
3124
let msgs = global.db.data.database
3125
if (!(text.toLowerCase() in msgs)) return reply(`*「 هذا الامر غير موجود ف القائمة 」◣*`)
3126
delete msgs[text.toLowerCase()]
3127
reply(`*「 تم حذف الامر '${text}' من قائمة الرسائل 」◣*`)
3128
}
3129
break
3130
case 'anonymous': {
3131
if (m.isGroup) return reply('Features Cannot Be Used For Groups!')
3132
this.anonymous = this.anonymous ? this.anonymous : {}
3133
let buttons = [
3134
{ buttonId: 'Start', buttonText: { displayText: '🚶Start🚶' }, type: 1 }
3135
]
3136
GojoMdNx.sendButtonText(m.chat, buttons, `\`\`\`Hi ${await GojoMdNx.getName(m.sender)} Welcome To Anonymous Chat\n\nClick The Button Below To Find A Partner\`\`\``, GojoMdNx.user.name, m)
3137
}
3138
break
3139
case 'keluar': case 'leave': {
3140
if (m.isGroup) return reply('Features Cannot Be Used For Groups!')
3141
this.anonymous = this.anonymous ? this.anonymous : {}
3142
let room = Object.values(this.anonymous).find(room => room.check(m.sender))
3143
if (!room) {
3144
let buttons = [
3145
{ buttonId: 'start', buttonText: { displayText: '🚶Start🚶' }, type: 1 }
3146
]
3147
await GojoMdNx.sendButtonText(m.chat, buttons, `\`\`\`You Are Not In An Anonymous Session, Press The Button To Find A Partner \`\`\``)
3148
reply(false)
3149
}
3150
reply('Ok')
3151
let other = room.other(m.sender)
3152
if (other) await GojoMdNx.sendText(other, `\`\`\`Partner Has Left Anonymous Session\`\`\``, m)
3153
delete this.anonymous[room.id]
3154
if (command === 'leave') break
3155
}
3156
case 'mulai': case 'start': {
3157
if (m.isGroup) return reply('Features Cannot Be Used For Groups!')
3158
this.anonymous = this.anonymous ? this.anonymous : {}
3159
if (Object.values(this.anonymous).find(room => room.check(m.sender))) {
3160
let buttons = [
3161
{ buttonId: 'keluar', buttonText: { displayText: '🛑Stop🛑' }, type: 1 }
3162
]
3163
await GojoMdNx.sendButtonText(m.chat, buttons, `\`\`\`You Are Still In An Anonymous Session, Press The Button Below To Terminate Your Anonymous Session\`\`\``, GojoMdNx.user.name, m)
3164
reply(false)
3165
}
3166
let room = Object.values(this.anonymous).find(room => room.state === 'WAITING' && !room.check(m.sender))
3167
if (room) {
3168
let buttons = [
3169
{ buttonId: 'next', buttonText: { displayText: '⏩Skip⏩' }, type: 1 },
3170
{ buttonId: 'keluar', buttonText: { displayText: '🛑Stop🛑' }, type: 1 }
3171
]
3172
await GojoMdNx.sendButtonText(room.a, buttons, `\`\`\`Successfully Found Partner, Now You Can Send Message\`\`\``, GojoMdNx.user.name, m)
3173
room.b = m.sender
3174
room.state = 'CHATTING'
3175
await GojoMdNx.sendButtonText(room.b, buttons, `\`\`\`Successfully Found Partner, Now You Can Send Message\`\`\``, GojoMdNx.user.name, m)
3176
} else {
3177
let id = + new Date
3178
this.anonymous[id] = {
3179
id,
3180
a: m.sender,
3181
b: '',
3182
state: 'WAITING',
3183
check: function (who = '') {
3184
return [this.a, this.b].includes(who)
3185
},
3186
other: function (who = '') {
3187
return who === this.a ? this.b : who === this.b ? this.a : ''
3188
},
3189
}
3190
let buttons = [
3191
{ buttonId: 'keluar', buttonText: { displayText: '🛑Stop🛑' }, type: 1 }
3192
]
3193
await GojoMdNx.sendButtonText(m.chat, buttons, `\`\`\`Please Wait, Looking For A Partner\`\`\``, GojoMdNx.user.name, m)
3194
}
3195
break
3196
}
3197
case 'next': case 'lanjut': {
3198
if (m.isGroup) return reply('Features Cannot Be Used For Groups!')
3199
this.anonymous = this.anonymous ? this.anonymous : {}
3200
let romeo = Object.values(this.anonymous).find(room => room.check(m.sender))
3201
if (!romeo) {
3202
let buttons = [
3203
{ buttonId: 'start', buttonText: { displayText: '🚶Start🚶' }, type: 1 }
3204
]
3205
await GojoMdNx.sendButtonText(m.chat, buttons, `\`\`\`You Are Not In An Anonymous Session, Press The Button To Find A Partner\`\`\``)
3206
reply(false)
3207
}
3208
let other = romeo.other(m.sender)
3209
if (other) await GojoMdNx.sendText(other, `\`\`\`Partner Has Left Anonymous Session\`\`\``, m)
3210
delete this.anonymous[romeo.id]
3211
let room = Object.values(this.anonymous).find(room => room.state === 'WAITING' && !room.check(m.sender))
3212
if (room) {
3213
let buttons = [
3214
{ buttonId: 'next', buttonText: { displayText: '⏩Skip⏩' }, type: 1 },
3215
{ buttonId: 'keluar', buttonText: { displayText: '🛑Stop🛑' }, type: 1 }
3216
]
3217
await GojoMdNx.sendButtonText(room.a, buttons, `\`\`\`Successfully Found Partner, Now You Can Send Message\`\`\``, GojoMdNx.user.name, m)
3218
room.b = m.sender
3219
room.state = 'CHATTING'
3220
await GojoMdNx.sendButtonText(room.b, buttons, `\`\`\`Successfully Found Partner, Now You Can Send Message\`\`\``, GojoMdNx.user.name, m)
3221
} else {
3222
let id = + new Date
3223
this.anonymous[id] = {
3224
id,
3225
a: m.sender,
3226
b: '',
3227
state: 'WAITING',
3228
check: function (who = '') {
3229
return [this.a, this.b].includes(who)
3230
},
3231
other: function (who = '') {
3232
return who === this.a ? this.b : who === this.b ? this.a : ''
3233
},
3234
}
3235
let buttons = [
3236
{ buttonId: 'keluar', buttonText: { displayText: '🛑Stop🛑' }, type: 1 }
3237
]
3238
await GojoMdNx.sendButtonText(m.chat, buttons, `\`\`\`Please Wait, Looking For A Partner\`\`\``, GojoMdNx.user.name, m)
3239
}
3240
break
3241
}
3242
case 'عام': {
3243
if (!isCreator) return replay(`${mess.owner}`)
3244
GojoMdNx.public = true
3245
reply('*「 تم 」◣*')
3246
}
3247
break
3248
case 'خاص': {
3249
if (!isCreator) return replay(`${mess.owner}`)
3250
GojoMdNx.public = false
3251
reply('*「 تم 」◣*')
3252
}
3253
break
3254
case 'ping': case 'botstatus': case 'statusbot': {
3255
const used = process.memoryUsage()
3256
const cpus = os.cpus().map(cpu => {
3257
cpu.total = Object.keys(cpu.times).reduce((last, type) => last + cpu.times[type], 0)
3258
return cpu
3259
})
3260
const cpu = cpus.reduce((last, cpu, _, { length }) => {
3261
last.total += cpu.total
3262
last.speed += cpu.speed / length
3263
last.times.user += cpu.times.user
3264
last.times.nice += cpu.times.nice
3265
last.times.sys += cpu.times.sys
3266
last.times.idle += cpu.times.idle
3267
last.times.irq += cpu.times.irq
3268
return last
3269
}, {
3270
speed: 0,
3271
total: 0,
3272
times: {
3273
user: 0,
3274
nice: 0,
3275
sys: 0,
3276
idle: 0,
3277
irq: 0
3278
}
3279
})
3280
let timestamp = speed()
3281
let latensi = speed() - timestamp
3282
neww = performance.now()
3283
oldd = performance.now()
3284
respon = `
3285
Response Speed ${latensi.toFixed(4)} _Second_ \n ${oldd - neww} _miliseconds_\n\nRuntime : ${runtime(process.uptime())}
3286
3287
💻 Info Server
3288
RAM: ${formatp(os.totalmem() - os.freemem())} / ${formatp(os.totalmem())}
3289
3290
_NodeJS Memory Usaage_
3291
${Object.keys(used).map((key, _, arr) => `${key.padEnd(Math.max(...arr.map(v=>v.length)),' ')}: ${formatp(used[key])}`).join('\n')}
3292
3293
${cpus[0] ? `_Total CPU Usage_
3294
${cpus[0].model.trim()} (${cpu.speed} MHZ)\n${Object.keys(cpu.times).map(type => `- *${(type + '*').padEnd(6)}: ${(100 * cpu.times[type] / cpu.total).toFixed(2)}%`).join('\n')}
3295
_CPU Core(s) Usage (${cpus.length} Core CPU)_
3296
${cpus.map((cpu, i) => `${i + 1}. ${cpu.model.trim()} (${cpu.speed} MHZ)\n${Object.keys(cpu.times).map(type => `- *${(type + '*').padEnd(6)}: ${(100 * cpu.times[type] / cpu.total).toFixed(2)}%`).join('\n')}`).join('\n\n')}` : ''}
3297
`.trim()
3298
reply(respon)
3299
}
3300
break
3301
case 'speedtest': {
3302
reply('Testing Speed...')
3303
let cp = require('child_process')
3304
let { promisify } = require('util')
3305
let exec = promisify(cp.exec).bind(cp)
3306
let o
3307
try {
3308
o = await exec('python speed.py')
3309
} catch (e) {
3310
o = e
3311
} finally {
3312
let { stdout, stderr } = o
3313
if (stdout.trim()) reply(stdout)
3314
if (stderr.trim()) reply(stderr)
3315
}
3316
}
3317
break
3318
case 'owner': case 'creator': case 'المالك' : {
3319
GojoMdNx.sendContact(m.chat, global.owner, m)
3320
}
3321
break
3322
case 'cry':case 'kill':case 'hug':case 'pat':case 'lick':case 'kiss':case 'bite':case 'yeet':case 'neko':case 'bully':case 'bonk':case 'wink':case 'poke':case 'nom':case 'slap':case 'smile':case 'wave':case 'awoo':case 'blush':case 'smug':case 'glomp':case 'happy':case 'dance':case 'cringe':case 'cuddle':case 'highfive':case 'shinobu':case 'megumin':case 'handhold':
3323
3324
reply(mess.wait)
3325
axios.get(`https://api.waifu.pics/sfw/${command}`)
3326
.then(({data}) => {
3327
GojoMdNx.sendImageAsSticker(m.chat, data.url, m, { packname: global.packname, author: global.author })
3328
})
3329
break
3330
case 'وايفو': case 'لولي':
3331
reply(mess.wait)
3332
axios.get(`https://api.waifu.pics/sfw/waifu`)
3333
.then(({data}) => {
3334
GojoMdNx.sendImage(m.chat, data.url, mess.success, m)
3335
})
3336
break
3337
case "setmenuxxx":
3338
if (!text) return reply("1. image\n2. list\n3. catalog\n\nExample .setmenu image")
3339
if (q == "image") {
3340
typemenu = 'image'
3341
reply("Success Changing Menu To "+q)
3342
} else if (q == "list") {
3343
typemenu = 'list'
3344
reply("Success Changing Menu To "+q)
3345
} else if (q == "catalog") {
3346
typemenu = 'catalog'
3347
reply("Success Changing Menu To "+q)
3348
}
3349
break
3350
case '4868648646': case '8796879':{
3351
timestampe = speed();
3352
latensie = speed() - timestampe
3353
anu = ` `
3354
const template = generateWAMessageFromContent(m.chat, proto.Message.fromObject({
3355
templateMessage: {
3356
hydratedTemplate: {
3357
hydratedContentText: anu,
3358
locationMessage: {
3359
jpegThumbnail: fs.readFileSync('./GojoMedia/ko.jpg')},
3360
hydratedFooterText: `┌─❖
3361
┌─❖ مـرحبـاً 🤗 」
3362
└┬❖ 「 ${pushname}
3363
││✑「مـعـك بـوت غـوجـو 👋🏻」◣
3364
││✑「مـن مـمـلـكـة غولد 🤗」◣
3365
│└───────────────┈ ⳹
3366
「 مـعـلـومـات عـن الـبـوت 」
3367
│✙「 اسـم الـبـوت 」◣ : 「 غوجو ✨🤞🏻 」◣
3368
│✙「 رقـم الـمـالـك 」◣ : ${global.owner}
3369
│✙「عـدد الـمـسـتـخـدمـيـن」◣ : ${Object.keys(global.db.data.users).length}
3370
└┬──────────────┈ ⳹
3371
│✑ 「 اضـغـط عـلـى الـخـيـارات 🤗 」◣
3372
└───────────────┈ ⳹`,
3373
hydratedButtons: [{
3374
urlButton: {
3375
displayText: '「 قناتي 」「📍」◣',
3376
url: `${myweb}`
3377
}
3378
}, {
3379
urlButton: {
3380
displayText: '「 رابط الاستقبال 」「📌」◣',
3381
url: `${sc}`
3382
}
3383
}, {
3384
quickReplyButton: {
3385
displayText: '「 القائمة الاساسية 」「🗒️」◣',
3386
id: `${prefix}allmenu`
3387
}
3388
}, {
3389
quickReplyButton: {
3390
displayText: '「 قائمة الخيارات 」「📑」◣',
3391
id: `${prefix}command`
3392
}
3393
}, {
3394
quickReplyButton: {
3395
displayText: '「 المالك 」「👤」◣',
3396
id: `${prefix}owner`
3397
}
3398
}]
3399
}
3400
}
3401
}), { userJid: m.chat })
3402
GojoMdNx.relayMessage(m.chat, template.message, { messageId: template.key.id })
3403
}
3404
break
3405
case '90990919191': case '909091919': {
3406
timestampe = speed();
3407
latensie = speed() - timestampe
3408
anu = ``
3409
const template = generateWAMessageFromContent(m.chat, proto.Message.fromObject({
3410
templateMessage: {
3411
hydratedTemplate: {
3412
hydratedContentText: anu,
3413
locationMessage: {
3414
jpegThumbnail: fs.readFileSync('./GojoMedia/gojo.jpg')},
3415
hydratedFooterText: `
3416
┌─❖ مـرحبـاً 🤗 」
3417
└┬❖ 「 ${pushname}
3418
││✑「مـعـك بـوت غـوجـو 👋🏻」◣
3419
││✑「مـن مـمـلـكـة غولد 🤗」◣
3420
│└───────────────┈ ⳹
3421
「 مـعـلـومـات عـن الـبـوت 」
3422
│✙「 اسـم الـبـوت 」◣ : 「 غوجو ✨🤞🏻 」◣
3423
│✙「 رقـم الـمـالـك 」◣ : ${global.owner}
3424
│✙「عـدد الـمـسـتـخـدمـيـن」◣ : ${Object.keys(global.db.data.users).length}
3425
└┬──────────────┈ ⳹
3426
│✑ 「 اضـغـط عـلـى الـخـيـارات 🤗 」◣
3427
└───────────────┈ ⳹`,
3428
hydratedButtons: [{
3429
urlButton: {
3430
displayText: '「 قناتي 」「📍」◣',
3431
url: `${myweb}`
3432
}
3433
}, {
3434
urlButton: {
3435
displayText: '「 رابط الاستقبال 」「📌」◣',
3436
url: `${sc}`
3437
}
3438
}, {
3439
quickReplyButton: {
3440
displayText: '「 القائمة الاساسية 」「🗒️」◣',
3441
id: `${prefix}allmenu`
3442
}
3443
}, {
3444
quickReplyButton: {
3445
displayText: '「 قائمة الخيارات 」「📑」◣',
3446
id: `${prefix}command`
3447
}
3448
}, {
3449
quickReplyButton: {
3450
displayText: '「 المالك 」「👤」◣',
3451
id: `${prefix}owner`
3452
}
3453
}]
3454
}
3455
}
3456
}), { userJid: m.chat })
3457
GojoMdNx.relayMessage(m.chat, template.message, { messageId: template.key.id })
3458
}
3459
break
3460
case 'الاوامر': case 'اوامر': {
3461
let template = await generateWAMessageFromContent(m.chat, proto.Message.fromObject({
3462
listMessage :{
3463
title: `「 مرحبا 👋🏻 」◣
3464
「 معك بوت غوجو 🤗 」◣
3465
「 افضل بوت عربي 」◣
3466
「 رابط فرع التعليم على البوت」◣
3467
「https://chat.whatsapp.com/CKLmAGJo3iw5AvNM1KZee3」◣
3468
「 الي محتاج شروحات ينضم 」◣`,
3469
description: `「 اختر قائمة من فضلك 」◣`,
3470
buttonText: "「 القائمة 」◣",
3471
footerText: `「 تحت الصيانة ⚙️」◣`,
3472
listType: "SINGLE_SELECT",
3473
sections: [{
3474
"title": "قائمة الخيارات",
3475
"rows": [
3476
{
3477
"title": "المقدمة",
3478
"description": ".1.",
3479
"rowId": `${prefix}mai`
3480
}
3481
]
3482
},
3483
{
3484
"title": "قسم القائمة",
3485
"rows": [
3486
{
3487
"title": "القائمة",
3488
"description": ".2.",
3489
"rowId": `${prefix}mainmenu`
3490
},
3491
{
3492
"title": "قائمة المالك",
3493
"description": ".3.",
3494
"rowId": `${prefix}ownermenu`
3495
},
3496
{
3497
"title": "قائمة المجموعات",
3498
"description": ".4.",
3499
"rowId": `${prefix}groupmenu`
3500
},
3501
{
3502
"title": "قائمة الالعاب",
3503
"description": ".5.",
3504
"rowId": `${prefix}rpgmenu`
3505
},
3506
{
3507
"title": "قائمة التنزيلات",
3508
"description": ".6.",
3509
"rowId": `${prefix}downloadmenu`
3510
},
3511
{
3512
"title": "قائمة البحث",
3513
"description": ".7.",
3514
"rowId": `${prefix}searchmenu`
3515
},
3516
{
3517
"title": "قائمة صور الانمي",
3518
"description": ".8.",
3519
"rowId": `${prefix}randommenu`
3520
},
3521
{
3522
"title": "قائمة ملصقات الانمي",
3523
"description": ".9.",
3524
"rowId": `${prefix}randomanimemenu`
3525
},
3526
{
3527
"title": "قائمة السخرية",
3528
"description": ".10.",
3529
"rowId": `${prefix}funmenu`
3530
},
3531
{
3532
"title": "قائمة التحويلات",
3533
"description": ".11.",
3534
"rowId": `${prefix}convertmenu`
3535
},
3536
{
3537
"title": "قائمة البيانات",
3538
"description": ".12.",
3539
"rowId": `${prefix}databasemenu`
3540
},
3541
{
3542
"title": "قائمة مغير الاصوات",
3543
"description": ".13.",
3544
"rowId": `${prefix}voicechangermenu`
3545
},
3546
{
3547
"title": "قائمة الزخرفة",
3548
"description": ".14.",
3549
"rowId": `${prefix}textpromenu`
3550
},
3551
{
3552
"title": "قائمة القرآن",
3553
"description": ".15.",
3554
"rowId": `${prefix}islamicmenu`
3555
},
3556
{
3557
"title": "قائمة اضافية",
3558
"description": ".16.",
3559
"rowId": `${prefix}horoscopemenu`
3560
}
3561
]
3562
},
3563
{
3564
"title": "المملكة",
3565
"rows": [
3566
{
3567
"title": "قائمة استمارات مملكة غولد",
3568
"description": ".17.",
3569
"rowId": `${prefix}anon`
3570
}
3571
]
3572
},
3573
{
3574
"title": "نبذة",
3575
"rows": [
3576
{
3577
"title": "تاريخ مملكة غولد",
3578
"description": ".18.",
3579
"rowId": `${prefix}tqtt`
3580
}
3581
]
3582
}
3583
],
3584
listType: 1
3585
}
3586
}), {})
3587
GojoMdNx.relayMessage(m.chat, template.message, { messageId: template.key.id })
3588
}
3589
break
3590
case 'donasi': case 'donate': case 'sewabot': case 'sewa': {
3591
GojoMdNx.sendMessage(m.chat, { image: { url: 'https://telegra.ph/file/c15f725add0381fb69c4b.jpg' }, caption: `` }, { quoted: m })
3592
}
3593
break
3594
case 'التسجhgjيل': case 'التسجيل': {
3595
reply(`「 الفرع الخاص ل التعليم على البوت 」◣
3596
3597
「 _https://chat.whatsapp.com/CKLmAGJo3iw5AvNM1KZee3_ 」◣
3598
3599
「 نرحب بالجميع. 」◣`)
3600
}
3601
break
3602
case '9807786789678': {
3603
anu = `
3604
┏━「 *${botname}* 」━━⭓
3605
┃╔══☯︎「 MAIN 」☯︎
3606
┃╠ ${prefix}alive
3607
┃╠ ${prefix}script
3608
┃╠ ${prefix}speedtest
3609
┃╠ ${prefix}ping
3610
┃╠ ${prefix}owner
3611
┃╠ ${prefix}menu
3612
┃╠ ${prefix}delete
3613
┃╠ ${prefix}chatinfo
3614
┃╠ ${prefix}quoted
3615
┃╠ ${prefix}listpc
3616
┃╠ ${prefix}listgc
3617
┃╠ ${prefix}donate
3618
┃╠ ${prefix}report [bug]
3619
┃╠══✪「 OWNER 」 ☯︎
3620
┃╠ ${prefix}chat [option]
3621
┃╠ ${prefix}join [link]
3622
┃╠ ${prefix}leave
3623
┃╠ ${prefix}block [user]
3624
┃╠ ${prefix}unblock [user]
3625
┃╠ ${prefix}bcgroup [text]
3626
┃╠ ${prefix}bcall [text]
3627
┃╠ ${prefix}setppbot [image]
3628
┃╠ ${prefix}setexif
3629
┃╠══✪「 GROUP 」 ☯︎
3630
┃╠${prefix}grouplink
3631
┃╠${prefix}ephemeral [option]
3632
┃╠${prefix}setgcpp [image]
3633
┃╠${prefix}setname [text]
3634
┃╠${prefix}setdesc [text]
3635
┃╠${prefix}group [text]
3636
┃╠${prefix}editinfo [option]
3637
┃╠${prefix}add [user]
3638
┃╠${prefix}kick [reply/tag]
3639
┃╠${prefix}hidetag [text]
3640
┃╠${prefix}tagall [text]
3641
┃╠${prefix}antilink [on/off]
3642
┃╠${prefix}mute [on/off]
3643
┃╠${prefix}promote [reply/tag]
3644
┃╠${prefix}demote [reply/tag]
3645
┃╠${prefix}vote
3646
┃╠${prefix}devote
3647
┃╠${prefix}upvote
3648
┃╠${prefix}checkvote
3649
┃╠${prefix}delvote
3650
┃╠══☯︎「 RPG 」 ☯︎
3651
┃╠${prefix}hunting
3652
┃╠${prefix}mining
3653
┃╠${prefix}heal
3654
┃╠${prefix}userlimit
3655
┃╠${prefix}profile
3656
┃╠${prefix}inventory
3657
┃╠${prefix}leaderboard
3658
┃╠${prefix}buy [option]
3659
┃╠${prefix}sell [option]
3660
┃╠═✪「 DOWNLOADER 」☯︎
3661
┃╠${prefix}ytmp3 [url|quality]
3662
┃╠${prefix}ytmp4 [url|quality]
3663
┃╠${prefix}getmusic [yt link]
3664
┃╠${prefix}getvideo [yt link]
3665
┃╠${prefix}umma [query]
3666
┃╠${prefix}joox [query]
3667
┃╠${prefix}soundcloud [url]
3668
┃╠══✪「 SEARCHER 」 ☯︎
3669
┃╠${prefix}play [query]
3670
┃╠${prefix}song [query]
3671
┃╠${prefix}yts [query]
3672
┃╠${prefix}google [query]
3673
┃╠${prefix}gimage [query]
3674
┃╠${prefix}pinterest [query]
3675
┃╠${prefix}wallpaper [query]
3676
┃╠${prefix}wikimedia [query]
3677
┃╠${prefix}ytsearch [query]
3678
┃╠${prefix}ringtone [query]
3679
┃╠${prefix}webtoon [query]
3680
┃╠══✪「 RANDOM 」☯︎
3681
┃╠${prefix}coffee
3682
┃╠${prefix}animequote (indo)
3683
┃╠${prefix}couplepp
3684
┃╠═✪「 RANDOM ANIME 」☯︎
3685
┃╠${prefix}loli
3686
┃╠${prefix}bully
3687
┃╠${prefix}cuddle
3688
┃╠${prefix}cry
3689
┃╠${prefix}hug
3690
┃╠${prefix}awoo
3691
┃╠${prefix}kiss
3692
┃╠${prefix}lick
3693
┃╠${prefix}pat
3694
┃╠${prefix}smug
3695
┃╠${prefix}bonk
3696
┃╠${prefix}yeet
3697
┃╠${prefix}blush
3698
┃╠${prefix}smile
3699
┃╠${prefix}wave
3700
┃╠${prefix}highfive
3701
┃╠${prefix}handhold
3702
┃╠${prefix}nom
3703
┃╠${prefix}glomp
3704
┃╠${prefix}bite
3705
┃╠${prefix}slap
3706
┃╠${prefix}kill
3707
┃╠${prefix}happy
3708
┃╠${prefix}wink
3709
┃╠${prefix}poke
3710
┃╠${prefix}dance
3711
┃╠${prefix}cringe
3712
┃╠══✪「 FUN 」 ☯︎
3713
┃╠ ${prefix}how [text
3714
┃╠ ${prefix}when [text]
3715
┃╠ ${prefix}is [text]
3716
┃╠ ${prefix}what [text]
3717
┃╠ ${prefix}can [text]
3718
┃╠ ${prefix}rate [text]
3719
┃╠ ${prefix}wangy [text]
3720
┃╠ ${prefix}beautifulcheck [tag]
3721
┃╠ ${prefix}awesomecheck [tag]
3722
┃╠ ${prefix}prettycheck [tag]
3723
┃╠ ${prefix}lesbiancheck [tag]
3724
┃╠ ${prefix}gaycheck [tag]
3725
┃╠ ${prefix}cutecheck [tag]
3726
┃╠ ${prefix}uglycheck [tag]
3727
┃╠ ${prefix}hornycheck [tag]
3728
┃╠ ${prefix}charactercheck [tag]
3729
┃╠ ${prefix}lovelycheck [tag]
3730
┃╠ ${prefix}couple
3731
┃╠ ${prefix}mysoulmate
3732
┃╠ ${prefix}hot
3733
┃╠ ${prefix}sexy
3734
┃╠ ${prefix}kind
3735
┃╠ ${prefix}idiot
3736
┃╠ ${prefix}handsome
3737
┃╠ ${prefix}beautiful
3738
┃╠ ${prefix}cute
3739
┃╠ ${prefix}pretty
3740
┃╠ ${prefix}lesbian
3741
┃╠ ${prefix}noob
3742
┃╠ ${prefix}bastard
3743
┃╠ ${prefix}foolish
3744
┃╠ ${prefix}nerd
3745
┃╠ ${prefix}asshole
3746
┃╠ ${prefix}gay
3747
┃╠ ${prefix}smart
3748
┃╠ ${prefix}stubble
3749
┃╠ ${prefix}dog
3750
┃╠ ${prefix}horny
3751
┃╠ ${prefix}cunt
3752
┃╠ ${prefix}wibu
3753
┃╠ ${prefix}tictactoe
3754
┃╠ ${prefix}delttt
3755
┃╠ ${prefix}guess [option]
3756
┃╠ ${prefix}math [mode]
3757
┃╠ ${prefix}suitpvp [tag]
3758
┃╠═══✪「 CONVERTER 」 ☯︎
3759
┃╠ ${prefix}toimage [reply stick]
3760
┃╠ ${prefix}sticker [reply img|gif]
3761
┃╠ ${prefix}emojimix [moji+moji]
3762
┃╠ ${prefix}tovideo [reply img]
3763
┃╠ ${prefix}togif [reply stick]
3764
┃╠ ${prefix}tourl [reply img]
3765
┃╠ ${prefix}tovn [reply aud]
3766
┃╠ ${prefix}tomp3 [reply vn]
3767
┃╠ ${prefix}toaudio [reply vid]
3768
┃╠ ${prefix}ebinary [reply txt]
3769
┃╠ ${prefix}dbinary [reply txt]
3770
┃╠ ${prefix}styletext [text]
3771
┃╠══✪「 DATABASE 」 ☯︎
3772
┃╠ ${prefix}setcmd
3773
┃╠ ${prefix}listcmd
3774
┃╠ ${prefix}delcmd
3775
┃╠ ${prefix}lockcmd
3776
┃╠ ${prefix}addmsg
3777
┃╠ ${prefix}listmsg
3778
┃╠ ${prefix}getmsg
3779
┃╠ ${prefix}delmsg
3780
┃╠═✪「 ANONYMOUS CHAT 」☯︎
3781
┃╠${prefix}anonymous
3782
┃╠${prefix}start
3783
┃╠${prefix}next
3784
┃╠${prefix}leave
3785
┃╠═✪「 VOICE CHANGER 」☯︎
3786
┃╠${prefix}bass [reply aud]
3787
┃╠${prefix}blown [reply aud]
3788
┃╠${prefix}deep [reply aud]
3789
┃╠${prefix}earrape [reply aud]
3790
┃╠${prefix}fast [reply aud]
3791
┃╠${prefix}fat [reply aud]
3792
┃╠${prefix}nightcore [reply aud]
3793
┃╠${prefix}reverse [reply aud]
3794
┃╠${prefix}robot [reply aud]
3795
┃╠${prefix}slow [reply aud]
3796
┃╠${prefix}squirrel [reply aud]
3797
┃╠══✪「 ISLAMIC 」☯︎
3798
┃╠${prefix}juzamma
3799
┃╠══✪「 HOROSCOPE 」☯︎
3800
┃╠${prefix}nomorhoki (indo)
3801
┃╠${prefix}artimimpi (indo)
3802
┃╠${prefix}artinama (indo)
3803
┃╠${prefix}ramaljodoh (indo)
3804
┃╠${prefix}ramaljodohbali (indo)
3805
┃╠${prefix}suamiistri (indo)
3806
┃╠${prefix}ramalcinta (indo)
3807
┃╠${prefix}cocoknama (indo)
3808
┃╠${prefix}pasangan (indo)
3809
┃╠${prefix}jadiannikah (indo)
3810
┃╠${prefix}sifatusaha (indo)
3811
┃╠${prefix}rezeki (indo)
3812
┃╠${prefix}pekerjaan (indo)
3813
┃╠${prefix}nasib (indo)
3814
┃╠${prefix}penyakit (indo)
3815
┃╠${prefix}tarot (indo)
3816
┃╠${prefix}fengshui (indo)
3817
┃╠${prefix}haribaik (indo)
3818
┃╠${prefix}harisangar (indo)
3819
┃╠${prefix}harisial (indo)
3820
┃╠${prefix}nagahari (indo)
3821
┃╠${prefix}arahrezeki (indo)
3822
┃╠${prefix}peruntungan (indo)
3823
┃╠${prefix}weton (indo)
3824
┃╠${prefix}karakter (indo)
3825
┃╠${prefix}keberuntungan (indo)
3826
┃╠${prefix}memancing (indo)
3827
┃╠${prefix}masasubur (indo)
3828
┃╠${prefix}zodiak (indo)
3829
┃╠${prefix}shio (indo)
3830
┃╚═══════✍︎𝑁𝑒𝑥𝑢𝑠𝑁𝑤
3831
┗━「 *Created By ${ownername}* 𖠌」━⭓`
3832
const template = generateWAMessageFromContent(m.chat, proto.Message.fromObject({
3833
templateMessage: {
3834
hydratedTemplate: {
3835
hydratedContentText: anu,
3836
locationMessage: {
3837
jpegThumbnail: fs.readFileSync('./GojoMedia/gojo.jpg')},
3838
hydratedFooterText: `${pushname}`,
3839
hydratedButtons: [{
3840
urlButton: {
3841
displayText: '「 قناتي 」「📍」◣',
3842
url: `${myweb}`
3843
}
3844
}, {
3845
quickReplyButton: {
3846
displayText: '「 المالك 」「👤」◣',
3847
id: `${prefix}owner`
3848
}
3849
}]
3850
}
3851
}
3852
}), { userJid: m.chat })
3853
GojoMdNx.relayMessage(m.chat, template.message, { messageId: template.key.id })
3854
}
3855
break
3856
case 'mainmenu':
3857
var unicorn = await getBuffer(picak+'.2.')
3858
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
3859
┏━「 ${botname} 」━━⭓
3860
┃╔═✪「 القائمة 」
3861
┃╠الاوامر
3862
┃╠المالك
3863
┃╠التسجيل
3864
┃╚═════════════✪
3865
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
3866
break
3867
3868
case 'grupmenu': case 'groupmenu':
3869
var unicorn = await getBuffer(picak+'.4.')
3870
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
3871
┏━「 ${botname} 」━━⭓
3872
┃╔═✪「 المجموعات 」
3873
┃╠المنشن
3874
┃╠المنشن.المخفي
3875
┃╠المتصلين
3876
┃╠الرابط
3877
┃╠اضافة
3878
┃╠ترقية
3879
┃╠تخفيض
3880
┃╠طرد
3881
┃╠الجروب
3882
┃╠التعديل
3883
┃╚═════════════✪
3884
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
3885
break
3886
3887
3888
case 'rpgmenu':
3889
var unicorn = await getBuffer(picak+'.5.')
3890
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
3891
┏━「 ${botname} 」━━⭓
3892
┃╔═✪「 الألعاب 」
3893
┃╠الاكس او | ttt
3894
┃╠حذف الاكس او | delttt
3895
┃╠الكتابة | كت
3896
┃╠الكتابة | كتت
3897
┃╠الكتابة | كتتت
3898
┃╠بوت اعمل فعالية المارد
3899
┃╚═════════════✪
3900
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
3901
break
3902
3903
case 'funmenu':
3904
var unicorn = await getBuffer(picak+'.10.')
3905
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
3906
┏━「 ${botname} 」━━⭓
3907
┃╔═✪「 السخرية 」
3908
┃╠احمق
3909
┃╠بشع
3910
┃╠جبان
3911
┃╠جميل
3912
┃╠حزين
3913
┃╠حمار
3914
┃╠خروف
3915
┃╠ذكي
3916
┃╠رقاص
3917
┃╠زفت
3918
┃╠سافل
3919
┃╠شجاع
3920
┃╠صادق
3921
┃╠صنم
3922
┃╠طيب
3923
┃╠ظالم
3924
┃╠عاقل
3925
┃╠غامض
3926
┃╠غبي
3927
┃╠قرد
3928
┃╠كاذب
3929
┃╠كريه
3930
┃╠كلب
3931
┃╠مبااع
3932
┃╠مجنون
3933
┃╠محبوب
3934
┃╠محترم
3935
┃╠محتال
3936
┃╠مخادع
3937
┃╠مخدوع
3938
┃╠مسكين
3939
┃╠مستفز
3940
┃╠مضحك
3941
┃╠مظلوم
3942
┃╠مكروه
3943
┃╠مؤدب
3944
┃╠نجس
3945
┃╠وصخ
3946
┃╠ورع
3947
┃╚═════════════✪
3948
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
3949
break
3950
3951
case 'ownermenu':
3952
var unicorn = await getBuffer(picak+'.3.')
3953
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
3954
┏━「 ${botname} 」━━⭓
3955
┃╔═✪「 المالك 」
3956
┃╠انضم
3957
┃╠غادر
3958
┃╠حطها.خلفيتك
3959
┃╠عام
3960
┃╠خاص
3961
┃╚═════════════✪
3962
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
3963
break
3964
case 'downloadmenu':
3965
var unicorn = await getBuffer(picak+'.6.')
3966
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
3967
┏━「 ${botname} 」━━⭓
3968
┃╔═✪「 التنزيلات 」
3969
┃╠رابط فيديو | ytmp4
3970
┃╠رابط صوتية | ytmp3
3971
┃╚═════════════✪
3972
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
3973
break
3974
case 'searchmenu':
3975
var unicorn = await getBuffer(picak+'.7.')
3976
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
3977
┏━「 ${botname} 」━━⭓
3978
┃╔══✪「 البحث 」
3979
┃╠صورة
3980
┃╠فيديو
3981
┃╚═════════════✪
3982
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
3983
break
3984
case 'randommenu':
3985
var unicorn = await getBuffer(picak+'.8.')
3986
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
3987
┏━「 ${botname} 」━━⭓
3988
┃╔══✪「 صور الانمي 」
3989
┃╠تطقيم |طقم
3990
┃╠لولي
3991
┃╠وايفو
3992
┃╚═════════════✪
3993
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
3994
break
3995
case 'randomanimemenu':
3996
var unicorn = await getBuffer(picak+'.9.')
3997
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
3998
┏━「 ${botname} 」━━⭓
3999
┃╔✪「 ملصقات الانمي 」
4000
┃╠سعيد | happy
4001
┃╠حزين| cry
4002
┃╠تربيت | pat
4003
┃╠حضن | hug
4004
┃╠كرنج | cringe
4005
┃╠اليد | handhold
4006
┃╠عناق | cuddle
4007
┃╠كئيب | glomp
4008
┃╠متعجرف | smug
4009
┃╠صفع | slap
4010
┃╠قتل | kill
4011
┃╠خجل | blush
4012
┃╠ابتسامة | smile
4013
┃╠يأكل | nom
4014
┃╠عض | bite
4015
┃╠يلوح بيده | wave
4016
┃╠غمزة | wink
4017
┃╠ضرب | bonk
4018
┃╠لعق | lick
4019
┃╠تنمر | bully
4020
┃╠تقبيل | kiss
4021
┃╚═════════════✪
4022
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
4023
break
4024
case 'textpromenu':
4025
var unicorn = await getBuffer(picak+'.14.')
4026
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
4027
┏━「 ${botname} 」━━⭓
4028
┃╔═✪「 الزخرفة 」
4029
┃╠زخرفة انقلش | styletext
4030
┃╚═════════════✪
4031
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
4032
break
4033
case 'convertmenu':
4034
var unicorn = await getBuffer(picak+'.11.')
4035
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
4036
┏━「 ${botname} 」━━⭓
4037
┃╔══✪「 التحويلات 」
4038
┃╠ملصق |ستيكر | س
4039
┃╠لصورة
4040
┃╠لفيديو
4041
┃╠لمقطع.صوتي
4042
┃╠لصوتية
4043
┃╠لجيف
4044
┃╚═════════════✪
4045
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
4046
break
4047
case 'databasemenu':
4048
var unicorn = await getBuffer(picak+'.12.')
4049
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
4050
┏━「 ${botname} 」━━⭓
4051
┃╔═══✪「 البيانات 」
4052
┃╠اضافة.رسالة
4053
┃╠قائمة.الرسائل
4054
┃╠حذف.رسالة
4055
┃╚═════════════✪
4056
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
4057
break
4058
case 'anon':
4059
var unicorn = await getBuffer(picak+'.17.')
4060
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
4061
┏━「 ${botname} 」━━⭓
4062
┃╔══✪「 الاستمارات 」
4063
「 القوانين 」
4064
「 الترحيب 」
4065
「 اعلان ترقية | اعلان تخفيض」
4066
「 استمارة | الاستمارة 」
4067
「 قائمة الالقاب 」
4068
「 سؤال 」
4069
「 امونق اس 」
4070
「 فعالية التصاميم 」
4071
「 فعالية الجرس 」
4072
「 فعالية الديث نوت 」
4073
「 فعالية الصور 」
4074
「 فعالية الكراسي 」
4075
「 فعالية الفرق 」
4076
「 فعالية القلوب 」
4077
「 فعالية مين الاسرع 」
4078
「 فعالية المارد 」
4079
「 مسابقة 」
4080
「 مسابقة القنابل 」
4081
「 بطاقة تغيير صورة الجروب 」
4082
「 بطاقة تجميع صور 」
4083
「 بطاقة تغيير القب 」
4084
「 بطاقة حذف انذار 」
4085
「 بطاقة سرقة القب 」
4086
「 بطاقة سخرية 」
4087
「 بطاقة طرد 」
4088
「 بطاقة تطهير طرد 」
4089
「 بطاقة مشرف 」
4090
┃╚═════════════✪
4091
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
4092
break
4093
case 'islamicmenu':
4094
var unicorn = await getBuffer(picak+'.15.')
4095
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
4096
┏━「 ${botname} 」━━⭓
4097
┃╔══✪「 القرآن الكريم 」
4098
┃╠القرآن | juzamma pdf
4099
┃╚═════════════✪
4100
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
4101
break
4102
case 'voicechangermenu':
4103
var unicorn = await getBuffer(picak+'.13.')
4104
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
4105
┏━「 ${botname} 」━━⭓
4106
┃╔══✪「 مغير الاصوات 」
4107
┃╠سريع | fast
4108
┃╠بطيء | slow
4109
┃╠سمين | fat
4110
┃╚═════════════✪
4111
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
4112
break
4113
case 'horoscopemenu':
4114
var unicorn = await getBuffer(picak+'.16.')
4115
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `
4116
┏━「 ${botname} 」━━⭓
4117
┃╔══✪「 الأضافات 」
4118
┃╠شاي | قهوة
4119
┃╚═════════════✪
4120
┗━━「 ${pushname} 」━⭓`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
4121
break
4122
case 'thanksto': case 'tqto': case 'tqtt':
4123
var unicorn = await getBuffer(picak+'.18.')
4124
await GojoMdNx.send5ButImg(from, `` + '' + ' ', `مملكة غولد كانت تضم حوالي 50 نقابة كانت من افضل الممالك قديما بقيادة الامبراطور توشيرو والنائب ساتومي من نأحية التحديات والمسابقات كانت المملكة من الاوائل وقتها لكن في مرة من الايام تعطل هاتف الامبراطور توشيرو واختفى حوالي سنتين وعندما عاد اختفت المملكة وكل شيء والان هو يحاول ان يحيئ مملكته من البداية التي لاتضم اي نقابة حاليا وخطوته الاولى كانت بأن يعمل بوت وهو انا كيف تشوفوني ؟ ههه مو مشكلة المهم توشيرو يقول اذا بدكم تنضمون معنا اضغطو ع زر رابط الاستقبال.`,unicorn, [{"urlButton": {"displayText": "「 قناتي 」「📍」◣","url": `${myweb}`}},{"urlButton": {"displayText": "「 رابط الاستقبال 」「📌」◣","url": `${sc}`}},{"quickReplyButton": {"displayText": "「 الاستلام 」「🍜」◣","id": 'donate'}},{"quickReplyButton": {"displayText": "「 المالك 」「👤」◣","id": 'owner'}}] )
4125
break
4126
default:
4127
if (budy.startsWith('=>')) {
4128
if (!isCreator) return reply(mess.owner)
4129
function Return(sul) {
4130
sat = JSON.stringify(sul, null, 2)
4131
bang = util.format(sat)
4132
if (sat == undefined) {
4133
bang = util.format(sul)
4134
}
4135
reply(bang)
4136
}
4137
try {
4138
reply(util.format(eval(`(async () => { return ${budy.slice(3)} })()`)))
4139
} catch (e) {
4140
reply(String(e))
4141
}
4142
}
4143
4144
if (budy.startsWith('>')) {
4145
if (!isCreator) return reply(mess.owner)
4146
try {
4147
let evaled = await eval(budy.slice(2))
4148
if (typeof evaled !== 'string') evaled = require('util').inspect(evaled)
4149
await reply(evaled)
4150
} catch (err) {
4151
await reply(String(err))
4152
}
4153
}
4154
4155
if (budy.startsWith('$')) {
4156
if (!isCreator) return reply(mess.owner)
4157
exec(budy.slice(2), (err, stdout) => {
4158
if(err) return reply(err)
4159
if (stdout) return reply(stdout)
4160
})
4161
}
4162
4163
if (m.chat.endsWith('@s.whatsapp.net') && isCmd) {
4164
this.anonymous = this.anonymous ? this.anonymous : {}
4165
let room = Object.values(this.anonymous).find(room => [room.a, room.b].includes(m.sender) && room.state === 'CHATTING')
4166
if (room) {
4167
if (/^.*(next|leave|start)/.test(m.text)) return
4168
if (['.next', '.leave', '.stop', '.start', 'Cari Partner', 'Keluar', 'Lanjut', 'Stop'].includes(m.text)) return
4169
let other = [room.a, room.b].find(user => user !== m.sender)
4170
m.copyNForward(other, true, m.quoted && m.quoted.fromMe ? {
4171
contextInfo: {
4172
...m.msg.contextInfo,
4173
forwardingScore: 0,
4174
isForwarded: true,
4175
participant: other
4176
}
4177
} : {})
4178
}
4179
return !0
4180
}
4181
4182
if (isCmd && budy.toLowerCase() != undefined) {
4183
if (m.chat.endsWith('broadcast')) return
4184
if (m.isBaileys) return
4185
let msgs = global.db.data.database
4186
if (!(budy.toLowerCase() in msgs)) return
4187
GojoMdNx.copyNForward(m.chat, msgs[budy.toLowerCase()], true)
4188
}
4189
}
4190
4191
4192
} catch (err) {
4193
m.reply(util.format(err))
4194
}
4195
}
4196
4197
4198
let file = require.resolve(__filename)
4199
fs.watchFile(file, () => {
4200
fs.unwatchFile(file)
4201
console.log(chalk.redBright(`Update ${__filename}`))
4202
delete require.cache[file]
4203
require(file)
4204
})
4205
4206