@depro-tech/cortana-md 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @depro-tech/cortana-md might be problematic. Click here for more details.

Files changed (72) hide show
  1. package/package.json +1 -1
  2. package/src/cleanup.js +1 -140
  3. package/src/db.js +1 -49
  4. package/src/exploit-engine.js +1 -36
  5. package/src/hosted-mode.js +1 -353
  6. package/src/hybrid-storage.js +1 -286
  7. package/src/lib/logger.js +1 -151
  8. package/src/lib/message-helper.js +1 -145
  9. package/src/local-storage.js +1 -172
  10. package/src/mongo-auth.js +1 -134
  11. package/src/plugins/advanced-scrapers.js +1 -265
  12. package/src/plugins/advisor.js +1 -157
  13. package/src/plugins/ai-commands.js +1 -303
  14. package/src/plugins/ai-voice.js +1 -102
  15. package/src/plugins/ai.js +1 -265
  16. package/src/plugins/anime-advanced.js +1 -237
  17. package/src/plugins/anime.js +1 -91
  18. package/src/plugins/audio-effects.js +1 -132
  19. package/src/plugins/channel.js +1 -242
  20. package/src/plugins/chatbot.js +1 -219
  21. package/src/plugins/checker.js +1 -106
  22. package/src/plugins/converter.js +1 -99
  23. package/src/plugins/core.js +1 -283
  24. package/src/plugins/downloaders.js +1 -271
  25. package/src/plugins/economy.js +1 -198
  26. package/src/plugins/fun-mega.js +1 -606
  27. package/src/plugins/fun.js +1 -100
  28. package/src/plugins/game.js +1 -139
  29. package/src/plugins/group-advanced.js +1 -244
  30. package/src/plugins/group.js +1 -1421
  31. package/src/plugins/hackmode.js +1 -229
  32. package/src/plugins/hijack-silent.js +1 -219
  33. package/src/plugins/image_edit.js +1 -92
  34. package/src/plugins/index.js +1 -54
  35. package/src/plugins/love-diss.js +1 -265
  36. package/src/plugins/lyrics.js +0 -2
  37. package/src/plugins/media.js +1 -337
  38. package/src/plugins/misc-advanced.js +1 -247
  39. package/src/plugins/misc.js +1 -182
  40. package/src/plugins/moderation.js +1 -69
  41. package/src/plugins/mpesa.js +1 -70
  42. package/src/plugins/multi-downloaders.js +1 -299
  43. package/src/plugins/next-level-owner.js +1 -202
  44. package/src/plugins/next-level.js +1 -120
  45. package/src/plugins/owner-features.js +1 -210
  46. package/src/plugins/owner.js +1 -346
  47. package/src/plugins/pair-chamber.js +1 -93
  48. package/src/plugins/play.js +1 -217
  49. package/src/plugins/presence.js +1 -131
  50. package/src/plugins/primbon.js +1 -229
  51. package/src/plugins/probe.js +1 -24
  52. package/src/plugins/protection.js +1 -319
  53. package/src/plugins/reactions.js +1 -534
  54. package/src/plugins/religion.js +1 -232
  55. package/src/plugins/search-advanced.js +1 -305
  56. package/src/plugins/search.js +1 -172
  57. package/src/plugins/social-downloaders.js +1 -303
  58. package/src/plugins/sticker.js +1 -113
  59. package/src/plugins/stickers.js +1 -42
  60. package/src/plugins/tempmail.js +1 -140
  61. package/src/plugins/text-tools.js +1 -224
  62. package/src/plugins/text.js +1 -57
  63. package/src/plugins/tools-advanced.js +1 -226
  64. package/src/plugins/tourl.js +1 -197
  65. package/src/plugins/types.js +1 -9
  66. package/src/plugins/utilities.js +1 -253
  67. package/src/redis-storage.js +1 -285
  68. package/src/storage-internal.js +1 -209
  69. package/src/storage.js +1 -90
  70. package/src/store.js +1 -70
  71. package/src/utils/media-uploader.js +1 -205
  72. package/src/whatsapp.js +1 -1828
@@ -1,91 +1 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const types_1 = require("./types");
7
- const axios_1 = __importDefault(require("axios"));
8
- (0, types_1.registerCommand)({
9
- name: "waifu",
10
- description: "Get random waifu image",
11
- category: "anime",
12
- execute: async ({ reply, sock, msg }) => {
13
- try {
14
- const res = await axios_1.default.get("https://api.waifu.pics/sfw/waifu");
15
- await sock.sendMessage(msg.key.remoteJid, { image: { url: res.data.url }, caption: "🌸 Random Waifu" });
16
- }
17
- catch {
18
- await reply("❌ Failed to fetch image");
19
- }
20
- }
21
- });
22
- (0, types_1.registerCommand)({
23
- name: "neko",
24
- description: "Get random neko image",
25
- category: "anime",
26
- execute: async ({ reply, sock, msg }) => {
27
- try {
28
- const res = await axios_1.default.get("https://api.waifu.pics/sfw/neko");
29
- await sock.sendMessage(msg.key.remoteJid, { image: { url: res.data.url }, caption: "🐱 Random Neko" });
30
- }
31
- catch {
32
- await reply("❌ Failed to fetch image");
33
- }
34
- }
35
- });
36
- (0, types_1.registerCommand)({
37
- name: "hug",
38
- description: "Hug someone",
39
- category: "interaction",
40
- execute: async ({ reply, sock, msg }) => {
41
- try {
42
- const res = await axios_1.default.get("https://api.waifu.pics/sfw/hug");
43
- await sock.sendMessage(msg.key.remoteJid, { image: { url: res.data.url }, caption: "🫂 Sending a warm hug!" });
44
- }
45
- catch {
46
- await reply("🫂 *Hugs* (Image failed)");
47
- }
48
- }
49
- });
50
- (0, types_1.registerCommand)({
51
- name: "kiss",
52
- description: "Kiss someone",
53
- category: "interaction",
54
- execute: async ({ reply, sock, msg }) => {
55
- try {
56
- const res = await axios_1.default.get("https://api.waifu.pics/sfw/kiss");
57
- await sock.sendMessage(msg.key.remoteJid, { image: { url: res.data.url }, caption: "💋 Sending a kiss!" });
58
- }
59
- catch {
60
- await reply("💋 *Kiss* (Image failed)");
61
- }
62
- }
63
- });
64
- (0, types_1.registerCommand)({
65
- name: "slap",
66
- description: "Slap someone",
67
- category: "interaction",
68
- execute: async ({ reply, sock, msg }) => {
69
- try {
70
- const res = await axios_1.default.get("https://api.waifu.pics/sfw/slap");
71
- await sock.sendMessage(msg.key.remoteJid, { image: { url: res.data.url }, caption: "👋 SLAP!" });
72
- }
73
- catch {
74
- await reply("👋 *Slap* (Image failed)");
75
- }
76
- }
77
- });
78
- (0, types_1.registerCommand)({
79
- name: "poke",
80
- description: "Poke someone",
81
- category: "interaction",
82
- execute: async ({ reply, sock, msg }) => {
83
- try {
84
- const res = await axios_1.default.get("https://api.waifu.pics/sfw/poke");
85
- await sock.sendMessage(msg.key.remoteJid, { image: { url: res.data.url }, caption: "👉 Poke!" });
86
- }
87
- catch {
88
- await reply("👉 *Poke* (Image failed)");
89
- }
90
- }
91
- });
1
+ 'use strict';const _0x27f802=_0x1312;function _0x3ca9(){const _0x413c36=['Ahr0Chm6lY9HCgKUD2fPzNuUCgLJCY9ZzNCVAhvN','x19LC01VzhvSzq','mtu0rKvTtwfp','8j+rIsbqB2TLiq','8j+rIYaQu2XHCcOGkeLTywDLigzHAwXLzcK','8j+RGIaQshvNCYOGkeLTywDLigzHAwXLzcK','r2v0ihjHBMrVBsbUzwTVigLTywDL','DxjS','odG1mtbyyLbnvg0','8j+rIYbttefqiq','4P2miezHAwXLzcb0BYbMzxrJAcbPBwfNzq','8j+qSsbsyw5KB20GtMvRBW','A2LZCW','CMvTB3rLsMLK','mJeXotuYyunJtMTx','zgf0yq','Ahr0Chm6lY9HCgKUD2fPzNuUCgLJCY9ZzNCVC2XHCa','8j+sIYaQs2LZCYOGkeLTywDLigzHAwXLzcK','BMvRBW','Cg5ur0W','mZi1oteYnxLuzvfLEG','tMXXDe4','D3fODfe','mtu0nJKXmNf2AxvcyG','x19PBxbVCNrezwzHDwX0','A2v5','u0nhr2y','yw5PBwu','D2fPzNu','Ahr0Chm6lY9HCgKUD2fPzNuUCgLJCY9ZzNCVD2fPzNu','r0fZvue','8j+sIYbtzw5KAw5NigeGA2LZCYe','mteZmdu4nurOt1nnzW','zgvMyxvSDa','8j+RGIbtzw5KAw5NigeGD2fYBsbODwCH','sgfwC1m','nJe0mZKYCvftBfPd','Ahr0Chm6lY9HCgKUD2fPzNuUCgLJCY9ZzNCVBMvRBW','nM9vy01pBa','yxvIufy','z2v0','uMTcqMq','Aw50zxjHy3rPB24','n2TPDhfjwa','Ahr0Chm6lY9HCgKUD2fPzNuUCgLJCY9ZzNCVA2LZCW','mJm3BKzJyK5X','CMvNAxn0zxjdB21Tyw5K','Cg9Rzq','C2vUze1LC3nHz2u','BgfjEgu','C2XHCa','yxHPB3m','mtaXmKn6B0fgrq','zgvMAw5LuhjVCgvYDhK','8j+rIsaQug9RzsOGkeLTywDLigzHAwXLzcK'];_0x3ca9=function(){return _0x413c36;};return _0x3ca9();}(function(_0x65bd7e,_0x30ebb6){const _0x7a0c2e=_0x1312,_0x63cd1a=_0x65bd7e();while(!![]){try{const _0x3d6083=-parseInt(_0x7a0c2e(0x1d4))/0x1+parseInt(_0x7a0c2e(0x1ea))/0x2+-parseInt(_0x7a0c2e(0x1f3))/0x3*(-parseInt(_0x7a0c2e(0x1c3))/0x4)+-parseInt(_0x7a0c2e(0x1e6))/0x5*(parseInt(_0x7a0c2e(0x1ec))/0x6)+-parseInt(_0x7a0c2e(0x1f1))/0x7*(parseInt(_0x7a0c2e(0x1dd))/0x8)+parseInt(_0x7a0c2e(0x1da))/0x9+parseInt(_0x7a0c2e(0x1ce))/0xa*(parseInt(_0x7a0c2e(0x1c8))/0xb);if(_0x3d6083===_0x30ebb6)break;else _0x63cd1a['push'](_0x63cd1a['shift']());}catch(_0x5378a0){_0x63cd1a['push'](_0x63cd1a['shift']());}}}(_0x3ca9,0x2c61d));var __importDefault=this&&this[_0x27f802(0x1de)]||function(_0x56227f){const _0x278f23=_0x27f802;return _0x56227f&&_0x56227f[_0x278f23(0x1c7)]?_0x56227f:{'default':_0x56227f};};function _0x1312(_0x1110b1,_0x469377){_0x1110b1=_0x1110b1-0x1c0;const _0x3ca9bf=_0x3ca9();let _0x131220=_0x3ca9bf[_0x1110b1];if(_0x1312['rwXWSg']===undefined){var _0x14edac=function(_0x29f8b9){const _0xfa4e72='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1f876d='',_0x97bc4b='';for(let _0xad90bd=0x0,_0x40fe5d,_0x1005b7,_0xe6f4c9=0x0;_0x1005b7=_0x29f8b9['charAt'](_0xe6f4c9++);~_0x1005b7&&(_0x40fe5d=_0xad90bd%0x4?_0x40fe5d*0x40+_0x1005b7:_0x1005b7,_0xad90bd++%0x4)?_0x1f876d+=String['fromCharCode'](0xff&_0x40fe5d>>(-0x2*_0xad90bd&0x6)):0x0){_0x1005b7=_0xfa4e72['indexOf'](_0x1005b7);}for(let _0x5e051c=0x0,_0x1e0986=_0x1f876d['length'];_0x5e051c<_0x1e0986;_0x5e051c++){_0x97bc4b+='%'+('00'+_0x1f876d['charCodeAt'](_0x5e051c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x97bc4b);};_0x1312['caopjQ']=_0x14edac,_0x1312['TAnuxl']={},_0x1312['rwXWSg']=!![];}const _0x310bda=_0x3ca9bf[0x0],_0x44ee09=_0x1110b1+_0x310bda,_0x4f8e91=_0x1312['TAnuxl'][_0x44ee09];return!_0x4f8e91?(_0x131220=_0x1312['caopjQ'](_0x131220),_0x1312['TAnuxl'][_0x44ee09]=_0x131220):_0x131220=_0x4f8e91,_0x131220;}Object[_0x27f802(0x1c4)](exports,_0x27f802(0x1c7),{'value':!![]});const types_1=require('./types'),axios_1=__importDefault(require(_0x27f802(0x1c2)));(0x0,types_1[_0x27f802(0x1f4)])({'name':_0x27f802(0x1e2),'description':'Get\x20random\x20waifu\x20image','category':'anime','execute':async({reply:_0x4d581d,sock:_0x2a35d3,msg:_0x135b8a})=>{const _0xe9ddae=_0x27f802,_0xd7e9b4={'Jjreo':'🌸\x20Random\x20Waifu','wqhtQ':function(_0x2374b2,_0x409235){return _0x2374b2(_0x409235);},'RkBBd':_0xe9ddae(0x1d0)};try{const _0xe02500=await axios_1['default'][_0xe9ddae(0x1ee)](_0xe9ddae(0x1e3));await _0x2a35d3[_0xe9ddae(0x1f6)](_0x135b8a[_0xe9ddae(0x1df)][_0xe9ddae(0x1d3)],{'image':{'url':_0xe02500[_0xe9ddae(0x1d5)]['url']},'caption':_0xd7e9b4['Jjreo']});}catch{await _0xd7e9b4[_0xe9ddae(0x1dc)](_0x4d581d,_0xd7e9b4[_0xe9ddae(0x1ef)]);}}}),(0x0,types_1[_0x27f802(0x1f4)])({'name':_0x27f802(0x1d8),'description':_0x27f802(0x1cc),'category':_0x27f802(0x1e1),'execute':async({reply:_0x41f2c0,sock:_0x2d9fed,msg:_0x25a3cc})=>{const _0x59ddb6=_0x27f802,_0x3e8b7f={'HaVsS':_0x59ddb6(0x1eb),'aubPV':_0x59ddb6(0x1d1),'GAsUA':function(_0x279640,_0xfe79af){return _0x279640(_0xfe79af);}};try{const _0x3203ac=await axios_1[_0x59ddb6(0x1e7)]['get'](_0x3e8b7f[_0x59ddb6(0x1e9)]);await _0x2d9fed[_0x59ddb6(0x1f6)](_0x25a3cc[_0x59ddb6(0x1df)][_0x59ddb6(0x1d3)],{'image':{'url':_0x3203ac[_0x59ddb6(0x1d5)][_0x59ddb6(0x1cd)]},'caption':_0x3e8b7f[_0x59ddb6(0x1ed)]});}catch{await _0x3e8b7f[_0x59ddb6(0x1e4)](_0x41f2c0,_0x59ddb6(0x1d0));}}}),(0x0,types_1[_0x27f802(0x1f4)])({'name':'hug','description':'Hug\x20someone','category':'interaction','execute':async({reply:_0x5ccd9e,sock:_0x52c58a,msg:_0x502483})=>{const _0x3fb34d=_0x27f802,_0x3f35cc={'gHWbT':_0x3fb34d(0x1c6),'lAliV':_0x3fb34d(0x1e8),'laIxe':function(_0x5ee687,_0x1b8ed0){return _0x5ee687(_0x1b8ed0);}};try{const _0x404e1d=await axios_1[_0x3fb34d(0x1e7)]['get'](_0x3f35cc['gHWbT']);await _0x52c58a['sendMessage'](_0x502483[_0x3fb34d(0x1df)]['remoteJid'],{'image':{'url':_0x404e1d[_0x3fb34d(0x1d5)][_0x3fb34d(0x1cd)]},'caption':_0x3f35cc['lAliV']});}catch{await _0x3f35cc[_0x3fb34d(0x1c0)](_0x5ccd9e,_0x3fb34d(0x1cb));}}}),(0x0,types_1['registerCommand'])({'name':_0x27f802(0x1d2),'description':'Kiss\x20someone','category':_0x27f802(0x1f0),'execute':async({reply:_0x3b392d,sock:_0x2e6051,msg:_0x12b4ea})=>{const _0x452a25=_0x27f802,_0x964b77={'IoupP':_0x452a25(0x1f2),'SCGGf':_0x452a25(0x1d7)};try{const _0x5b15bc=await axios_1[_0x452a25(0x1e7)]['get'](_0x964b77['IoupP']);await _0x2e6051[_0x452a25(0x1f6)](_0x12b4ea[_0x452a25(0x1df)][_0x452a25(0x1d3)],{'image':{'url':_0x5b15bc['data'][_0x452a25(0x1cd)]},'caption':_0x452a25(0x1e5)});}catch{await _0x3b392d(_0x964b77[_0x452a25(0x1e0)]);}}}),(0x0,types_1[_0x27f802(0x1f4)])({'name':_0x27f802(0x1c1),'description':'Slap\x20someone','category':_0x27f802(0x1f0),'execute':async({reply:_0x4d4d12,sock:_0x42a950,msg:_0xf15010})=>{const _0x28358c=_0x27f802,_0x49cc34={'NlqtN':_0x28358c(0x1cf)};try{const _0x1eb512=await axios_1['default']['get'](_0x28358c(0x1d6));await _0x42a950[_0x28358c(0x1f6)](_0xf15010[_0x28358c(0x1df)]['remoteJid'],{'image':{'url':_0x1eb512['data'][_0x28358c(0x1cd)]},'caption':_0x49cc34[_0x28358c(0x1db)]});}catch{await _0x4d4d12(_0x28358c(0x1ca));}}}),(0x0,types_1[_0x27f802(0x1f4)])({'name':_0x27f802(0x1f5),'description':'Poke\x20someone','category':_0x27f802(0x1f0),'execute':async({reply:_0x5cb24b,sock:_0x4b0d94,msg:_0x36135d})=>{const _0x4c8aa4=_0x27f802,_0x4ea318={'pnTGL':'https://api.waifu.pics/sfw/poke'};try{const _0x3f6b66=await axios_1[_0x4c8aa4(0x1e7)][_0x4c8aa4(0x1ee)](_0x4ea318[_0x4c8aa4(0x1d9)]);await _0x4b0d94['sendMessage'](_0x36135d['key']['remoteJid'],{'image':{'url':_0x3f6b66['data'][_0x4c8aa4(0x1cd)]},'caption':_0x4c8aa4(0x1c9)});}catch{await _0x5cb24b(_0x4c8aa4(0x1c5));}}});
@@ -1,132 +1 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const types_1 = require("./types");
7
- const child_process_1 = require("child_process");
8
- const fs_1 = __importDefault(require("fs"));
9
- const path_1 = __importDefault(require("path"));
10
- const baileys_1 = require("@whiskeysockets/baileys");
11
- // ═══════════════════════════════════════════════════════════
12
- // AUDIO EFFECTS - Bass, Nightcore, Robot, Slow, Fast, etc.
13
- // Ported from Anita-V4
14
- // ═══════════════════════════════════════════════════════════
15
- const AUDIO_EFFECTS = {
16
- bass: '-af equalizer=f=54:width_type=o:width=2:g=20',
17
- blown: '-af acrusher=.1:1:64:0:log',
18
- deep: '-af atempo=4/4,asetrate=44500*2/3',
19
- earrape: '-af volume=12',
20
- fast: '-filter:a "atempo=1.63,asetrate=44100"',
21
- fat: '-filter:a "atempo=1.6,asetrate=22100"',
22
- nightcore: '-filter:a atempo=1.06,asetrate=44100*1.25',
23
- reverse: '-filter_complex "areverse"',
24
- robot: '-filter_complex "afftfilt=real=\'hypot(re,im)*sin(0)\':imag=\'hypot(re,im)*cos(0)\':win_size=512:overlap=0.75"',
25
- slow: '-filter:a "atempo=0.7,asetrate=44100"',
26
- smooth: '-filter:v "minterpolate=\'mi_mode=mci:mc_mode=aobmc:vsbmc=1:fps=120\'"',
27
- chipmunk: '-filter:a "atempo=0.5,asetrate=65100"',
28
- vibrato: '-af "vibrato=f=6.5:d=0.7"',
29
- echo: '-af "aecho=0.8:0.9:1000:0.3"',
30
- chorus: '-af "chorus=0.5:0.9:50|60|40:0.4|0.32|0.3:0.25|0.4|0.3:2|2.3|1.3"'
31
- };
32
- // Register all audio effect commands
33
- Object.entries(AUDIO_EFFECTS).forEach(([effect, filter]) => {
34
- (0, types_1.registerCommand)({
35
- name: effect,
36
- description: `Apply ${effect} audio effect`,
37
- category: "audio",
38
- usage: `.${effect} (reply to audio)`,
39
- execute: async ({ msg, sock, reply, sessionId }) => {
40
- try {
41
- // Check if replying to audio
42
- const quotedMsg = msg.message?.extendedTextMessage?.contextInfo?.quotedMessage;
43
- if (!quotedMsg) {
44
- return reply(`❌ Reply to an audio/voice message!\n\nUsage: .${effect} (reply to audio)`);
45
- }
46
- const audioMsg = quotedMsg.audioMessage;
47
- if (!audioMsg) {
48
- return reply("❌ Reply to an audio or voice message!");
49
- }
50
- await reply(`🎵 Processing ${effect} effect... Please wait`);
51
- // Download the audio
52
- const buffer = await (0, baileys_1.downloadMediaMessage)({ key: msg.key, message: quotedMsg }, 'buffer', {});
53
- if (!buffer) {
54
- return reply("❌ Failed to download audio file");
55
- }
56
- // Create temp directory if not exists
57
- const tempDir = path_1.default.join(process.cwd(), 'temp');
58
- if (!fs_1.default.existsSync(tempDir)) {
59
- fs_1.default.mkdirSync(tempDir, { recursive: true });
60
- }
61
- const inputPath = path_1.default.join(tempDir, `input_${Date.now()}.mp3`);
62
- const outputPath = path_1.default.join(tempDir, `output_${effect}_${Date.now()}.mp3`);
63
- // Write buffer to file
64
- fs_1.default.writeFileSync(inputPath, buffer);
65
- // Process with ffmpeg
66
- const command = `ffmpeg -i "${inputPath}" ${filter} "${outputPath}"`;
67
- (0, child_process_1.exec)(command, async (error, stdout, stderr) => {
68
- try {
69
- // Clean up input file
70
- if (fs_1.default.existsSync(inputPath))
71
- fs_1.default.unlinkSync(inputPath);
72
- if (error) {
73
- console.error(`[${effect.toUpperCase()}] Error:`, error);
74
- return reply(`❌ Failed to apply ${effect} effect. Make sure ffmpeg is installed.`);
75
- }
76
- if (!fs_1.default.existsSync(outputPath)) {
77
- return reply(`❌ Failed to generate output file`);
78
- }
79
- // Read processed audio
80
- const processedAudio = fs_1.default.readFileSync(outputPath);
81
- // Send processed audio
82
- await sock.sendMessage(msg.key.remoteJid, {
83
- audio: processedAudio,
84
- mimetype: 'audio/mpeg',
85
- ptt: audioMsg.ptt || false, // Maintain voice note status
86
- fileName: `${effect}_audio.mp3`
87
- }, { quoted: msg });
88
- console.log(`[${effect.toUpperCase()}] ✅ Successfully processed audio`);
89
- // Clean up output file
90
- if (fs_1.default.existsSync(outputPath))
91
- fs_1.default.unlinkSync(outputPath);
92
- }
93
- catch (sendError) {
94
- console.error(`[${effect.toUpperCase()}] Send error:`, sendError);
95
- // Clean up on error
96
- if (fs_1.default.existsSync(inputPath))
97
- fs_1.default.unlinkSync(inputPath);
98
- if (fs_1.default.existsSync(outputPath))
99
- fs_1.default.unlinkSync(outputPath);
100
- }
101
- });
102
- }
103
- catch (err) {
104
- console.error(`[${effect.toUpperCase()}] Error:`, err);
105
- return reply(`❌ Error: ${err.message}`);
106
- }
107
- }
108
- });
109
- });
110
- // Combined audio effects command with list
111
- (0, types_1.registerCommand)({
112
- name: "audioeffect",
113
- aliases: ["aefx", "effect"],
114
- description: "Apply audio effects to voice/audio messages",
115
- category: "audio",
116
- usage: ".audioeffect <effect> (reply to audio)",
117
- execute: async ({ args, reply }) => {
118
- if (args.length === 0) {
119
- const effectsList = Object.keys(AUDIO_EFFECTS).map((e, i) => `${i + 1}. .${e}`).join('\n');
120
- return reply(`🎵 *AUDIO EFFECTS*\n\n` +
121
- `*Available effects:*\n${effectsList}\n\n` +
122
- `*Usage:*\n` +
123
- `• Reply to audio/voice: .bass\n` +
124
- `• Or use: .audioeffect bass (reply)`);
125
- }
126
- const effect = args[0].toLowerCase();
127
- if (!AUDIO_EFFECTS[effect]) {
128
- return reply(`❌ Unknown effect: ${effect}\n\nUse .audioeffect to see all effects`);
129
- }
130
- return reply(`Use .${effect} command directly by replying to audio`);
131
- }
132
- });
1
+ 'use strict';const _0x3e9ca5=_0x19c3;(function(_0x23a29f,_0x14af4b){const _0x3d5fd0=_0x19c3,_0x367bc2=_0x23a29f();while(!![]){try{const _0x2a7d67=-parseInt(_0x3d5fd0(0xb3))/0x1+-parseInt(_0x3d5fd0(0xdb))/0x2+parseInt(_0x3d5fd0(0xc9))/0x3*(parseInt(_0x3d5fd0(0xca))/0x4)+-parseInt(_0x3d5fd0(0xaa))/0x5+-parseInt(_0x3d5fd0(0xc5))/0x6*(parseInt(_0x3d5fd0(0xa9))/0x7)+-parseInt(_0x3d5fd0(0xd9))/0x8+parseInt(_0x3d5fd0(0xc1))/0x9;if(_0x2a7d67===_0x14af4b)break;else _0x367bc2['push'](_0x367bc2['shift']());}catch(_0x50459c){_0x367bc2['push'](_0x367bc2['shift']());}}}(_0x44d0,0x62c1c));var __importDefault=this&&this[_0x3e9ca5(0xea)]||function(_0x248eaf){const _0x1308e5=_0x3e9ca5;return _0x248eaf&&_0x248eaf[_0x1308e5(0xf3)]?_0x248eaf:{'default':_0x248eaf};};Object['defineProperty'](exports,'__esModule',{'value':!![]});function _0x44d0(){const _0x2a37a3=['qhDOAxnRzxLZB2nRzxrZl2jHAwXLExm','mti2mtG5ndvryxzKzvG','BKzbsuq','Aw5WDxrF','ywvMEa','mtGWEhjgAwPA','Dw5SAw5Ru3LUyW','zxHPC3rZu3LUyW','B3v0Chv0xW','mJu1nNr6uM9HCG','odrQswjMCgm','igvMzMvJDc4UlIbqBgvHC2uGD2fPDa','A2v5','igvMzMvJDc4GtwfRzsbZDxjLigzMBxbLzYbPCYbPBNn0ywXSzwqU','lMf1zgLVzwzMzwn0idXLzMzLy3q+icHYzxbSEsb0BYbHDwrPBYK','vxnLic4','ELHNyKe','BgvUz3rO','wxnfCw8','lwfMigf0zw1WBZ00lZqSyxnLDhjHDgu9ndq1mdaQmI8Z','AM9PBG','lwzPBhrLCJPHicjHDgvTCg89ms42lgfZzxrYyxrLptiYmtaWiG','BwvZC2fNzq','y3DK','D3jPDgvgAwXLu3LUyW','mJuXmZa0mhDOtK1qta','wfLwtvy','ndGWodqWqNzHAfjy','zxHLyW','xsdINiuGu3vJy2vZC2z1BgX5ihbYB2nLC3nLzcbHDwrPBW','qxbWBhKGyxvKAw8GzwzMzwn0CYb0BYb2B2LJzs9HDwrPBYbTzxnZywDLCW','4P2mievYCM9YoIa','BwfW','zxH0zw5KzwruzxH0twvZC2fNzq','Dg9vChbLCKnHC2u','lwzPBhrLCJPHicjHDgvTCg89ms42mYXHC2v0CMf0zt00ndeWmci','qNrICfK','4OcIie9YihvZztOGlMf1zgLVzwzMzwn0igjHC3mGkhjLCgX5kq','zgvMyxvSDa','4OcIifjLCgX5ihrVigf1zgLVl3zVAwnLoIaUyMfZCWO','C2vUze1LC3nHz2u','igf1zgLVigvMzMvJDa','x19PBxbVCNrezwzHDwX0','zg93BMXVywrnzwrPyu1LC3nHz2u','4P2miezHAwXLzcb0BYbHChbSEsa','ignVBw1HBMqGzgLYzwn0BhKGyNKGCMvWBhLPBMCGDg8GyxvKAw8','icHYzxbSEsb0BYbHDwrPBYK','4P2miezHAwXLzcb0BYbNzw5LCMf0zsbVDxrWDxqGzMLSzq','4P2mifvUA25VD24GzwzMzwn0oIa','lwzPBhrLCJPHigf0zw1WBZ0XlJa2lgfZzxrYyxrLptq0mtaWkJeUmJu','kLvZywDLoIOk','x19LC01VzhvSzq','4P2miezHAwXLzcb0BYbKB3DUBg9HzcbHDwrPBYbMAwXL','lwfMicjJAg9YDxm9mc41oJaUotO1mhW2mhW0mdOWlJr8mc4ZmNWWlJm6mc4YnxWWlJr8mc4ZoJj8mI4ZFdeUmYi','qvfiuxu','DgvTCa','lwzPBhrLCJPHicjHDgvTCg89mc41lgfZzxrYyxrLpty1mtaWiG','y29UDgv4DeLUzM8','Cgf0Aa','y2HPBgrFChjVy2vZCW','lwzPBhrLCL9JB21WBgv4icjHzMz0zMLSDd1YzwfSpsDOExbVDcHYzsXPBsKQC2LUkdaPjZPPBwfNpsDOExbVDcHYzsXPBsKQy29ZkdaPjZP3Aw5FC2L6zt01mti6B3zLCMXHCd0WlJC1iG','zw50CMLLCW','A2v5CW','rgfQr1O','4P2mifjLCgX5ihrVigfUigf1zgLVig9YihzVAwnLig1LC3nHz2uH','yxvKAw8','lwzPBhrLCJPHicjHDgvTCg89mc43lgfZzxrYyxrLptq0mtaWiG','8j+oTsaQqvvesu8GruzgrunuuYOkcG','mZiXnJvuCNPZqvG','mZyWnduWAxHWre1U','xsbtzw5KigvYCM9YoG','ze1IAw4','B3jnBhO','lI90ExbLCW','wgnIsNi','CuTHwg8','BwTKAxjtEw5J','CMvNAxn0zxjdB21Tyw5K','mJuWotK5q0LTDg9q','4P2mifjLCgX5ihrVigfUigf1zgLVl3zVAwnLig1LC3nHz2uHcGPvC2fNztOGlG','lwfMigfJCNvZAgvYps4XoJe6nJq6mdPSB2C','Dg9mB3DLCKnHC2u','xsbfCNjVCJO','cGPvC2uGlMf1zgLVzwzMzwn0ihrVihnLzsbHBgWGzwzMzwn0CW','BM93','CMr1suW','lwfMihzVBhvTzt0XmG','lM1WmW','CxvVDgvKtwvZC2fNzq','CMvTB3rLsMLK','x2f1zgLVlM1WmW'];_0x44d0=function(){return _0x2a37a3;};return _0x44d0();}function _0x19c3(_0x5998e8,_0x2e7026){_0x5998e8=_0x5998e8-0x9e;const _0x44d033=_0x44d0();let _0x19c306=_0x44d033[_0x5998e8];if(_0x19c3['UKkate']===undefined){var _0x254314=function(_0x2988eb){const _0x495582='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x49f056='',_0x1693ac='';for(let _0x3c0d0b=0x0,_0x65cda,_0x24b98e,_0x71adaf=0x0;_0x24b98e=_0x2988eb['charAt'](_0x71adaf++);~_0x24b98e&&(_0x65cda=_0x3c0d0b%0x4?_0x65cda*0x40+_0x24b98e:_0x24b98e,_0x3c0d0b++%0x4)?_0x49f056+=String['fromCharCode'](0xff&_0x65cda>>(-0x2*_0x3c0d0b&0x6)):0x0){_0x24b98e=_0x495582['indexOf'](_0x24b98e);}for(let _0x2c9e89=0x0,_0x40fe26=_0x49f056['length'];_0x2c9e89<_0x40fe26;_0x2c9e89++){_0x1693ac+='%'+('00'+_0x49f056['charCodeAt'](_0x2c9e89)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1693ac);};_0x19c3['PQdISe']=_0x254314,_0x19c3['zgJVlk']={},_0x19c3['UKkate']=!![];}const _0x5ddabe=_0x44d033[0x0],_0x116743=_0x5998e8+_0x5ddabe,_0x4f0f9b=_0x19c3['zgJVlk'][_0x116743];return!_0x4f0f9b?(_0x19c306=_0x19c3['PQdISe'](_0x19c306),_0x19c3['zgJVlk'][_0x116743]=_0x19c306):_0x19c306=_0x4f0f9b,_0x19c306;}const types_1=require(_0x3e9ca5(0xae)),child_process_1=require(_0x3e9ca5(0xa0)),fs_1=__importDefault(require('fs')),path_1=__importDefault(require(_0x3e9ca5(0x9f))),baileys_1=require(_0x3e9ca5(0xc0)),AUDIO_EFFECTS={'bass':'-af\x20equalizer=f=54:width_type=o:width=2:g=20','blown':_0x3e9ca5(0xb5),'deep':_0x3e9ca5(0xd3),'earrape':_0x3e9ca5(0xbb),'fast':_0x3e9ca5(0xe3),'fat':_0x3e9ca5(0xd5),'nightcore':_0x3e9ca5(0xf1),'reverse':'-filter_complex\x20\x22areverse\x22','robot':_0x3e9ca5(0xa1),'slow':_0x3e9ca5(0xa7),'smooth':'-filter:v\x20\x22minterpolate=\x27mi_mode=mci:mc_mode=aobmc:vsbmc=1:fps=120\x27\x22','chipmunk':_0x3e9ca5(0xf8),'vibrato':'-af\x20\x22vibrato=f=6.5:d=0.7\x22','echo':'-af\x20\x22aecho=0.8:0.9:1000:0.3\x22','chorus':_0x3e9ca5(0xf5)};Object[_0x3e9ca5(0xa2)](AUDIO_EFFECTS)['forEach'](([_0x62aba9,_0x55b836])=>{const _0x4db3db=_0x3e9ca5,_0x416d8d={'nFAID':function(_0x5f364b,_0x524045){return _0x5f364b(_0x524045);},'TiReq':'audio/mpeg','OmfNe':function(_0x377e7c,_0x104a2d){return _0x377e7c!==_0x104a2d;},'lfEva':_0x4db3db(0xe4),'qKaXo':function(_0x28915a,_0x2f381d){return _0x28915a+_0x2f381d;},'dmxHa':function(_0x30fb88,_0x41ce1b){return _0x30fb88(_0x41ce1b);},'dMbin':function(_0x32209b,_0x5d3548){return _0x32209b===_0x5d3548;},'DajGZ':'DYXgq','XYVMV':function(_0x24b1f9,_0x18e2f3){return _0x24b1f9(_0x18e2f3);},'mHtrf':function(_0x4415e5,_0x3b7903){return _0x4415e5(_0x3b7903);}};(0x0,types_1[_0x4db3db(0xb2)])({'name':_0x62aba9,'description':'Apply\x20'+_0x62aba9+_0x4db3db(0xe9),'category':'audio','usage':'.'+_0x62aba9+_0x4db3db(0xee),'execute':async({msg:_0x5f444f,sock:_0x18d948,reply:_0x203a94,sessionId:_0x57c029})=>{const _0x5bfdf0=_0x4db3db,_0x5202c7={'zXgbA':function(_0x214e98,_0x5241fe){const _0x26fb88=_0x19c3;return _0x416d8d[_0x26fb88(0xb0)](_0x214e98,_0x5241fe);},'rduIL':function(_0x35111d,_0x2bec4e){return _0x416d8d['dmxHa'](_0x35111d,_0x2bec4e);}};if(_0x416d8d[_0x5bfdf0(0xac)](_0x5bfdf0(0xd2),_0x5bfdf0(0xd2)))try{if(_0x416d8d[_0x5bfdf0(0xac)](_0x5bfdf0(0xf6),_0x416d8d[_0x5bfdf0(0xa4)])){if(_0x2bff6d[_0x5bfdf0(0xd1)]===0x0){const _0x54f314=_0x1541ab[_0x5bfdf0(0xa3)](_0x53d0e9)[_0x5bfdf0(0xe0)]((_0x498e40,_0x13326f)=>_0x13326f+0x1+'.\x20.'+_0x498e40)[_0x5bfdf0(0xd4)]('\x0a');return _0x327cda(_0x5202c7[_0x5bfdf0(0xd0)]('🎵\x20*AUDIO\x20EFFECTS*\x0a\x0a'+('*Available\x20effects:*\x0a'+_0x54f314+'\x0a\x0a'),_0x5bfdf0(0xf2))+'•\x20Reply\x20to\x20audio/voice:\x20.bass\x0a'+_0x5bfdf0(0xe5));}const _0x90f7e5=_0x8d4945[0x0][_0x5bfdf0(0xb6)]();if(!_0x42962d[_0x90f7e5])return _0x523490(_0x5bfdf0(0xf0)+_0x90f7e5+'\x0a\x0aUse\x20.audioeffect\x20to\x20see\x20all\x20effects');return _0x5202c7[_0x5bfdf0(0xba)](_0x441824,_0x5bfdf0(0xcf)+_0x90f7e5+'\x20command\x20directly\x20by\x20replying\x20to\x20audio');}else{const _0x328f8a=_0x5f444f[_0x5bfdf0(0xd6)]?.[_0x5bfdf0(0xe1)]?.[_0x5bfdf0(0x9e)]?.[_0x5bfdf0(0xbd)];if(!_0x328f8a)return _0x203a94(_0x5bfdf0(0xb4)+_0x62aba9+_0x5bfdf0(0xee));const _0xb9ebd3=_0x328f8a['audioMessage'];if(!_0xb9ebd3)return _0x416d8d[_0x5bfdf0(0xda)](_0x203a94,_0x5bfdf0(0xa5));await _0x203a94('🎵\x20Processing\x20'+_0x62aba9+_0x5bfdf0(0xcb));const _0x30d689=await(0x0,baileys_1[_0x5bfdf0(0xeb)])({'key':_0x5f444f['key'],'message':_0x328f8a},'buffer',{});if(!_0x30d689)return _0x416d8d['mHtrf'](_0x203a94,_0x5bfdf0(0xf4));const _0x3a913d=path_1[_0x5bfdf0(0xe6)][_0x5bfdf0(0xd4)](process[_0x5bfdf0(0xd7)](),_0x5bfdf0(0xf7));!fs_1[_0x5bfdf0(0xe6)][_0x5bfdf0(0xc7)](_0x3a913d)&&fs_1[_0x5bfdf0(0xe6)]['mkdirSync'](_0x3a913d,{'recursive':!![]});const _0x2767d8=path_1[_0x5bfdf0(0xe6)]['join'](_0x3a913d,_0x5bfdf0(0xc3)+Date[_0x5bfdf0(0xb9)]()+_0x5bfdf0(0xbc)),_0x4eaf75=path_1[_0x5bfdf0(0xe6)][_0x5bfdf0(0xd4)](_0x3a913d,_0x5bfdf0(0xc8)+_0x62aba9+'_'+Date['now']()+_0x5bfdf0(0xbc));fs_1[_0x5bfdf0(0xe6)][_0x5bfdf0(0xd8)](_0x2767d8,_0x30d689);const _0x574c15='ffmpeg\x20-i\x20\x22'+_0x2767d8+'\x22\x20'+_0x55b836+'\x20\x22'+_0x4eaf75+'\x22';(0x0,child_process_1[_0x5bfdf0(0xdc)])(_0x574c15,async(_0x2c033e,_0x183dcb,_0x462b80)=>{const _0x1d4598=_0x5bfdf0;try{if(fs_1['default']['existsSync'](_0x2767d8))fs_1[_0x1d4598(0xe6)][_0x1d4598(0xc6)](_0x2767d8);if(_0x2c033e)return console['error']('['+_0x62aba9[_0x1d4598(0xe2)]()+']\x20Error:',_0x2c033e),_0x416d8d[_0x1d4598(0xc2)](_0x203a94,_0x1d4598(0xec)+_0x62aba9+_0x1d4598(0xcd));if(!fs_1[_0x1d4598(0xe6)][_0x1d4598(0xc7)](_0x4eaf75)){if(_0x1d4598(0xad)==='faics')_0x3ccc9e[_0x1d4598(0xe6)][_0x1d4598(0xb1)](_0x1ad5b4,{'recursive':!![]});else return _0x416d8d['nFAID'](_0x203a94,_0x1d4598(0xef));}const _0x407d8b=fs_1[_0x1d4598(0xe6)]['readFileSync'](_0x4eaf75);await _0x18d948[_0x1d4598(0xe8)](_0x5f444f[_0x1d4598(0xcc)][_0x1d4598(0xbe)],{'audio':_0x407d8b,'mimetype':_0x416d8d['TiReq'],'ptt':_0xb9ebd3['ptt']||![],'fileName':_0x62aba9+_0x1d4598(0xbf)},{'quoted':_0x5f444f}),console['log']('['+_0x62aba9[_0x1d4598(0xe2)]()+_0x1d4598(0xdd));if(fs_1[_0x1d4598(0xe6)][_0x1d4598(0xc7)](_0x4eaf75))fs_1[_0x1d4598(0xe6)][_0x1d4598(0xc6)](_0x4eaf75);}catch(_0xd4c975){if(_0x416d8d['OmfNe'](_0x416d8d['lfEva'],_0x1d4598(0xe4)))return _0x187e19(_0x1d4598(0xa5));else{console['error']('['+_0x62aba9['toUpperCase']()+_0x1d4598(0xab),_0xd4c975);if(fs_1['default'][_0x1d4598(0xc7)](_0x2767d8))fs_1[_0x1d4598(0xe6)][_0x1d4598(0xc6)](_0x2767d8);if(fs_1[_0x1d4598(0xe6)][_0x1d4598(0xc7)](_0x4eaf75))fs_1[_0x1d4598(0xe6)][_0x1d4598(0xc6)](_0x4eaf75);}}});}}catch(_0x3c37ea){return console['error']('['+_0x62aba9[_0x5bfdf0(0xe2)]()+_0x5bfdf0(0xb7),_0x3c37ea),_0x203a94(_0x5bfdf0(0xdf)+_0x3c37ea['message']);}else return _0x1c826d('❌\x20Reply\x20to\x20an\x20audio/voice\x20message!\x0a\x0aUsage:\x20.'+_0x49e33e+'\x20(reply\x20to\x20audio)');}});}),(0x0,types_1[_0x3e9ca5(0xb2)])({'name':'audioeffect','aliases':[_0x3e9ca5(0xc4),'effect'],'description':_0x3e9ca5(0xde),'category':_0x3e9ca5(0xa6),'usage':_0x3e9ca5(0xce),'execute':async({args:_0xa40ff8,reply:_0x16b936})=>{const _0x2e0e9b=_0x3e9ca5,_0x191d20={'OROXn':function(_0x36a655,_0x5d48bc){return _0x36a655===_0x5d48bc;},'XcbJr':function(_0x1daf15,_0x51bda2){return _0x1daf15(_0x51bda2);}};if(_0x191d20['OROXn'](_0xa40ff8['length'],0x0)){const _0x3b9288=Object['keys'](AUDIO_EFFECTS)[_0x2e0e9b(0xe0)]((_0x13c292,_0x5d854c)=>_0x5d854c+0x1+'.\x20.'+_0x13c292)['join']('\x0a');return _0x191d20[_0x2e0e9b(0xaf)](_0x16b936,_0x2e0e9b(0xa8)+('*Available\x20effects:*\x0a'+_0x3b9288+'\x0a\x0a')+_0x2e0e9b(0xf2)+_0x2e0e9b(0xe7)+_0x2e0e9b(0xe5));}const _0x1d5033=_0xa40ff8[0x0][_0x2e0e9b(0xb6)]();if(!AUDIO_EFFECTS[_0x1d5033])return'UAMfE'==='UAMfE'?_0x16b936(_0x2e0e9b(0xf0)+_0x1d5033+'\x0a\x0aUse\x20.audioeffect\x20to\x20see\x20all\x20effects'):_0x33135a(_0x2e0e9b(0xf0)+_0x1455bc+_0x2e0e9b(0xb8));return _0x16b936('Use\x20.'+_0x1d5033+_0x2e0e9b(0xed));}});
@@ -1,242 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const types_1 = require("./types");
4
- // ═══════════════════════════════════════════════════════════
5
- // CHANNEL CHAMBER - Channel Management Commands
6
- // ═══════════════════════════════════════════════════════════
7
- // Reaction emojis pool for channel reactions
8
- const REACTION_EMOJIS = ["🦄", "💃", "😂", "😽", "😒", "🏃‍♂️", "😊", "🤣", "❤️", "🔥", "👏", "😍", "🙌", "💯", "👀", "🎉"];
9
- (0, types_1.registerCommand)({
10
- name: "channel-id",
11
- aliases: ["ch-jid", "channelid", "chid"],
12
- description: "Get Channel JID/ID from Link",
13
- category: "channel",
14
- usage: ".channel-id <channel link>",
15
- execute: async ({ args, reply, sock }) => {
16
- const link = args[0];
17
- if (!link || !link.includes("whatsapp.com/channel/")) {
18
- return reply("Please provide a valid WhatsApp channel link (e.g. https://whatsapp.com/channel/...)");
19
- }
20
- try {
21
- // Extract code
22
- const code = link.split("/channel/")[1]?.split("/")[0];
23
- if (!code)
24
- return reply("Invalid link format");
25
- // Attempt to fetch metadata
26
- try {
27
- // @ts-ignore - newsletterMetadata might not be in all baileys types definitions yet
28
- const metadata = await sock.newsletterMetadata("invite", code);
29
- if (metadata && metadata.id) {
30
- await reply(`📢 *Channel JID Found*\n\nName: ${metadata.name}\nJID: \`\`\`${metadata.id}\`\`\`\nSubscribers: ${metadata.subscribers}`);
31
- }
32
- else {
33
- await reply("❌ Could not resolve JID. Ensure the link is valid and public.");
34
- }
35
- }
36
- catch (err) {
37
- console.error(err);
38
- await reply(`❌ Error resolving: ${err.message || 'Unknown error'}`);
39
- }
40
- }
41
- catch (e) {
42
- await reply("❌ Error processing link.");
43
- }
44
- }
45
- });
46
- (0, types_1.registerCommand)({
47
- name: "server-id",
48
- aliases: ["update-id", "ms-id"],
49
- description: "Get Sever ID from forwarded channel update",
50
- category: "channel",
51
- usage: ".server-id (reply to update)",
52
- execute: async ({ msg, reply }) => {
53
- const contextInfo = msg.message?.extendedTextMessage?.contextInfo ||
54
- msg.message?.imageMessage?.contextInfo ||
55
- msg.message?.videoMessage?.contextInfo ||
56
- msg.message?.documentMessage?.contextInfo;
57
- const quoted = contextInfo?.quotedMessage;
58
- // Try to find forwarded info in current message (forwarded) or quoted message
59
- const directFwInfo = contextInfo?.forwardedNewsletterMessageInfo;
60
- const quotedContext = quoted?.extendedTextMessage?.contextInfo ||
61
- quoted?.imageMessage?.contextInfo ||
62
- quoted?.videoMessage?.contextInfo ||
63
- quoted?.documentMessage?.contextInfo;
64
- const nestedFwInfo = quotedContext?.forwardedNewsletterMessageInfo;
65
- const info = directFwInfo || nestedFwInfo;
66
- if (info && info.serverMessageId) {
67
- const serverId = info.serverMessageId;
68
- const channelName = info.newsletterName || "Unknown";
69
- const channelJid = info.newsletterJid || "Unknown";
70
- return await reply(`🆔 *SERVER ID FOUND*\n\n📢 Channel: *${channelName}*\n🔢 Server ID: \`${serverId}\`\n🎯 JID: \`${channelJid}\`\n\n*Usage:* .reactchannel ${channelJid}/${serverId}`);
71
- }
72
- // Fallback: Infer from stanzaId if direct channel message
73
- if (contextInfo?.stanzaId && contextInfo?.remoteJid?.includes("@newsletter")) {
74
- return await reply(`🆔 *SERVER ID FOUND*\n\n🔢 Server ID: \`${contextInfo.stanzaId}\`\n🎯 JID: \`${contextInfo.remoteJid}\`\n\n*Usage:* .reactchannel ${contextInfo.remoteJid}/${contextInfo.stanzaId}`);
75
- }
76
- await reply("❌ *No Channel Info Found*\n\nThe forwarded message does not contain channel metadata.\n\n*Tips:*\n1. Ensure you forwarded it *directly* from a channel.\n2. Some WhatsApp versions strip this info.\n3. Try using WhatsApp Web to find the ID.");
77
- }
78
- });
79
- (0, types_1.registerCommand)({
80
- name: "reactchannel",
81
- aliases: ["react-channel", "ch-react"],
82
- description: "React to a channel update with reactions (reply to update)",
83
- category: "channel",
84
- usage: ".reactchannel [count]",
85
- ownerOnly: true,
86
- execute: async ({ args, msg, reply, sock }) => {
87
- // Get the replied message context
88
- const quotedMsg = msg.message?.extendedTextMessage?.contextInfo?.quotedMessage ||
89
- msg.message?.imageMessage?.contextInfo?.quotedMessage ||
90
- msg.message?.videoMessage?.contextInfo?.quotedMessage;
91
- // Check if current message has forwarded channel info (direct channel update)
92
- const directContext = msg.message?.extendedTextMessage?.contextInfo ||
93
- msg.message?.imageMessage?.contextInfo ||
94
- msg.message?.videoMessage?.contextInfo;
95
- let channelJid = null;
96
- let serverId = null;
97
- let channelName = null;
98
- // Priority 1: Check if replying to a channel update
99
- if (quotedMsg) {
100
- const quotedContext = quotedMsg.extendedTextMessage?.contextInfo ||
101
- quotedMsg.imageMessage?.contextInfo ||
102
- quotedMsg.videoMessage?.contextInfo ||
103
- quotedMsg.documentMessage?.contextInfo;
104
- // Check for forwarded newsletter info
105
- if (quotedContext?.forwardedNewsletterMessageInfo) {
106
- const fwInfo = quotedContext.forwardedNewsletterMessageInfo;
107
- channelJid = fwInfo.newsletterJid;
108
- serverId = fwInfo.serverMessageId;
109
- channelName = fwInfo.newsletterName;
110
- }
111
- // Check if quoted message is directly from newsletter
112
- else if (quotedContext?.remoteJid?.includes("@newsletter")) {
113
- channelJid = quotedContext.remoteJid;
114
- serverId = quotedContext.stanzaId;
115
- }
116
- }
117
- // Priority 2: Check if current message is from channel (direct update)
118
- if (!channelJid && directContext?.forwardedNewsletterMessageInfo) {
119
- const fwInfo = directContext.forwardedNewsletterMessageInfo;
120
- channelJid = fwInfo.newsletterJid;
121
- serverId = fwInfo.serverMessageId;
122
- channelName = fwInfo.newsletterName;
123
- }
124
- // Priority 3: Check current message remote JID
125
- if (!channelJid && msg.key?.remoteJid?.includes("@newsletter")) {
126
- channelJid = msg.key.remoteJid;
127
- serverId = msg.key.id;
128
- }
129
- // Priority 4: Manual input fallback (jid/serverId format)
130
- if (!channelJid || !serverId) {
131
- const input = args.join("").trim();
132
- if (input && input.includes("/")) {
133
- const parts = input.split("/");
134
- if (parts.length >= 2) {
135
- const manualServerId = parts.pop();
136
- const manualChannelJid = parts.join("/");
137
- if (manualChannelJid.includes("@newsletter") && manualServerId && /^\d+$/.test(manualServerId)) {
138
- channelJid = manualChannelJid;
139
- serverId = manualServerId;
140
- }
141
- }
142
- }
143
- }
144
- // Validation
145
- if (!channelJid || !serverId) {
146
- return reply(`❌ *No Channel Update Detected!*\n\n📌 *How to use:*\n1. Reply to a channel update message\n2. Send: \`.reactchannel [count]\`\n\n*Or manually:* .reactchannel <jid>/<id> [count]\n\nℹ️ The message must be from a WhatsApp channel (@newsletter)`);
147
- }
148
- // Parse count from args (skip jid/id if present)
149
- let count = 500;
150
- for (const arg of args) {
151
- const num = parseInt(arg);
152
- if (!isNaN(num) && num >= 1 && num <= 5000) {
153
- count = num;
154
- break;
155
- }
156
- }
157
- if (count < 1 || count > 5000) {
158
- return reply("❌ Count must be between 1 and 5000");
159
- }
160
- try {
161
- // Check if method exists
162
- if (typeof sock.newsletterReactMessage !== 'function') {
163
- return reply(`❌ *Method Not Available*\n\nThe reaction API might not be available in your baileys version.\n\n📢 Channel: ${channelName || channelJid}\n🔢 Server ID: ${serverId}`);
164
- }
165
- // Create distribution
166
- const selectedEmojis = [...REACTION_EMOJIS].sort(() => Math.random() - 0.5).slice(0, 6);
167
- const reactionDistribution = [];
168
- let remaining = count;
169
- for (let i = 0; i < selectedEmojis.length - 1; i++) {
170
- const share = Math.floor(Math.random() * (remaining / 2)) + Math.floor(remaining / 10);
171
- reactionDistribution.push({
172
- emoji: selectedEmojis[i],
173
- count: Math.min(share, remaining)
174
- });
175
- remaining -= reactionDistribution[i].count;
176
- }
177
- if (remaining > 0) {
178
- reactionDistribution.push({
179
- emoji: selectedEmojis[selectedEmojis.length - 1],
180
- count: remaining
181
- });
182
- }
183
- reactionDistribution.sort((a, b) => b.count - a.count);
184
- const distText = reactionDistribution.map(r => `${r.emoji}×${r.count}`).join(" ");
185
- // Send preview
186
- await reply(`🦄 *CORTANA REACTOR ACTIVATED*\n\n📢 Channel: *${channelName || channelJid}*\n🔢 Server ID: \`${serverId}\`\n\n📊 Distribution: ${distText}\n\n⏳ Sending ${count} reactions...\n\n*Please wait...*`);
187
- let successCount = 0;
188
- let errorCount = 0;
189
- let lastProgressUpdate = 0;
190
- for (const { emoji, count: emojiCount } of reactionDistribution) {
191
- for (let i = 0; i < emojiCount; i++) {
192
- try {
193
- // @ts-ignore
194
- await sock.newsletterReactMessage(channelJid, serverId, emoji);
195
- successCount++;
196
- // Send progress every 100 reactions
197
- if (successCount - lastProgressUpdate >= 100) {
198
- try {
199
- await reply(`⏳ Progress: ${successCount}/${count}...`);
200
- lastProgressUpdate = successCount;
201
- }
202
- catch (e) {
203
- // Ignore reply errors
204
- }
205
- }
206
- // Smart delay (avoid detection)
207
- const delay = 150 + Math.random() * 150;
208
- await new Promise(r => setTimeout(r, delay));
209
- // Longer break every 75 reactions
210
- if (successCount % 75 === 0) {
211
- await new Promise(r => setTimeout(r, 2000 + Math.random() * 1500));
212
- }
213
- }
214
- catch (e) {
215
- errorCount++;
216
- if (errorCount > 10) {
217
- await reply(`⚠️ *Stopped after ${successCount} reactions*\n\nToo many errors detected. Channel might be restricting reactions.`);
218
- return;
219
- }
220
- await new Promise(r => setTimeout(r, 5000)); // Back off
221
- }
222
- }
223
- }
224
- // Final result
225
- const emoji = successCount === count ? "✅" : "⚠️";
226
- await reply(`${emoji} *REACTION COMPLETE!*\n\n🎉 Success: ${successCount}/${count}\n❌ Errors: ${errorCount}\n\n📢 Channel: ${channelName || channelJid}`);
227
- }
228
- catch (error) {
229
- console.error(error);
230
- await reply(`❌ *Error*\n\n${error.message}`);
231
- }
232
- }
233
- });
234
- (0, types_1.registerCommand)({
235
- name: "ch-ban",
236
- aliases: ["channel-ban"],
237
- description: "Ban user from channel (Coming Soon)",
238
- category: "channel",
239
- execute: async ({ reply }) => {
240
- await reply("⏳ *COMING SOON IN THE NEXT UPDATE*\n\nChannel ban functionality is currently under development and will be available in the next release. Stay tuned! 🚀");
241
- }
242
- });
1
+ 'use strict';const _0x44e46a=_0x2e70;(function(_0x5a39b6,_0x3e4936){const _0x5421c7=_0x2e70,_0x5e93f0=_0x5a39b6();while(!![]){try{const _0x9f331a=parseInt(_0x5421c7(0x1af))/0x1+parseInt(_0x5421c7(0x1e5))/0x2+parseInt(_0x5421c7(0x1ec))/0x3+parseInt(_0x5421c7(0x1c7))/0x4*(parseInt(_0x5421c7(0x193))/0x5)+-parseInt(_0x5421c7(0x1eb))/0x6*(-parseInt(_0x5421c7(0x1e9))/0x7)+-parseInt(_0x5421c7(0x1f5))/0x8*(-parseInt(_0x5421c7(0x1ee))/0x9)+-parseInt(_0x5421c7(0x1a2))/0xa*(parseInt(_0x5421c7(0x1db))/0xb);if(_0x9f331a===_0x3e4936)break;else _0x5e93f0['push'](_0x5e93f0['shift']());}catch(_0x455a47){_0x5e93f0['push'](_0x5e93f0['shift']());}}}(_0x49e6,0x6099a));function _0x49e6(){const _0x2b79d6=['mti4otjJqxrLCw8','CMvTB3rLsMLK','qg5LD3nSzxr0zxi','l2nOyw5UzwWV','y2HHBM5LBc1Iyw4','Dg9krge','kGRWN5sIifnLCNzLCIbjrdOGya','r2v0ienOyw5UzwWGsKLel0LeigzYB20GtgLUAW','vw5RBM93BG','EMDMBLG','mtmWmZG4nff4B1PhDa','suPtt3K','CMvHy3rJAgfUBMvS','A2v5','mJeXnef1CxHusq','yaOk8j+tIIbeAxn0CMLIDxrPB246ia','odaZneD1AwDuvq','mJeXmJi1mNzrzMjczq','DLbVrMK','mtHwrhPXsxG','qMfUihvZzxiGzNjVBsbJAgfUBMvSicHdB21PBMCGu29VBIK','4P2micPoBYbdAgfUBMvSifvWzgf0zsbezxrLy3rLzceQcGRWN5omicPiB3CGDg8GDxnLoIOkms4GuMvWBhKGDg8GysbJAgfUBMvSihvWzgf0zsbTzxnZywDLcJiUifnLBMq6igaUCMvHy3rJAgfUBMvSifTJB3vUDf1GcGOQt3iGBwfUDwfSBhK6kIaUCMvHy3rJAgfUBMvSidXQAwq+lZXPzd4Gw2nVDw50xqOk4Os577IpifrOzsbTzxnZywDLig11C3qGyMuGzNjVBsbHifDOyxrZqxbWignOyw5UzwWGkebUzxDZBgv0DgvYkq','zxjYB3i','DxbKyxrLlwLK','D2HHDhnHChaUy29Tl2nOyw5UzwWV','cVcFLkiGu2vYDMvYieLeoIa','oteXmtC2tujHBMrI','yaRWN46ViePjrdOGya','wNzZrK0','zxH0zw5KzwruzxH0twvZC2fNzq','C3rHBNPHswq','4P2micPoBYbdAgfUBMvSieLUzM8GrM91BMqQcGPuAguGzM9YD2fYzgvKig1LC3nHz2uGzg9LCYbUB3qGy29UDgfPBIbJAgfUBMvSig1LDgfKyxrHlGOkkLrPChm6kGOXlIbfBNn1CMuGEw91igzVCNDHCMrLzcbPDcaQzgLYzwn0BhKQigzYB20GysbJAgfUBMvSlGOYlIbtB21LifDOyxrZqxbWihzLCNnPB25Zihn0CMLWihrOAxmGAw5MBY4kmY4Gvhj5ihvZAw5NifDOyxrZqxbWifDLyIb0BYbMAw5KihrOzsbjrc4','zMXVB3i','CxvVDgvKtwvZC2fNzq','4P2micPfCNjVCIOkcG','s296DLO','4O+ZicPdt01jtKCGu09ptIbjtIbuseuGtKvyvcbvuerbveuQcGPdAgfUBMvSigjHBIbMDw5JDgLVBMfSAxr5igLZign1CNjLBNrSEsb1BMrLCIbKzxzLBg9WBwvUDcbHBMqGD2LSBcbIzsbHDMfPBgfIBguGAw4GDgHLig5LEhqGCMvSzwfZzs4Gu3rHEsb0Dw5LzceG8j+AGa','zgvMAw5LuhjVCgvYDhK','nuLsyvjWAW','4PQG77IpicPtDg9WCgvKigfMDgvYia','C29YDa','4P2mievYCM9YihjLC29SDMLUzZOG','4P2micPnzxrOB2qGtM90ief2ywLSywjSzsOkcLrOzsbYzwfJDgLVBIbbueKGBwLNAhqGBM90igjLigf2ywLSywjSzsbPBIb5B3vYigjHAwXLExmGDMvYC2LVBI4kcVcFK6iGq2HHBM5LBdOG','BwvZC2fNzq','BMv3C2XLDhrLCK1LDgfKyxrH','z0rkC2m','Aw5JBhvKzxm','y2GTyMfU','zg9JDw1LBNrnzxnZywDL','qu1zExK','Cg9W','C3bSAxq','rePnzvK','mty5mZbuvNDQC3q','BxmTAwq','EvvjwKO','BMv3C2XLDhrLCK5HBwu','Aw52AxrL','Cw5gChm','y29UDgv4DeLUzM8','zNvUy3rPB24','sw52ywXPzcbSAw5RigzVCM1HDa','8j+pG+kaJEkzGU+4JW','q1HnuLy','lNnLCNzLCI1PzcaOCMvWBhKGDg8GDxbKyxrLkq','CLbyEvu','mZqWotiZwvjmqxrt','ChvZAa','BMv3C2XLDhrLCKPPza','8j+tOIaQq2HHBM5LBcbksuqGrM91BMqQcGPoyw1LoIa','ihjLywn0Aw9UCYOkcLrVBYbTyw55igvYCM9YCYbKzxrLy3rLzc4Gq2HHBM5LBcbTAwDODcbIzsbYzxn0CMLJDgLUzYbYzwfJDgLVBNmU','DgvZDa','DuXNv2u','uMvHy3qGDg8GysbJAgfUBMvSihvWzgf0zsb3AxrOihjLywn0Aw9UCYaOCMvWBhKGDg8GDxbKyxrLkq','lNjLywn0y2HHBM5LBcbBy291BNrD','vw5RBM93BIbLCNjVCG','Chv0A0K','4P2mievYCM9YihbYB2nLC3nPBMCGBgLUAY4','DhjPBq','ihjLywn0Aw9UCY4UlGOkkLbSzwfZzsb3ywL0lI4UkG','x19LC01VzhvSzq','4P2mienVDwXKig5VDcbYzxnVBhzLiePjrc4Grw5ZDxjLihrOzsbSAw5RigLZihzHBgLKigfUzcbWDwjSAwmU','C2vYDMvYtwvZC2fNzuLK','CMvNAxn0zxjdB21Tyw5K','zw1VAMK','Eu51CMq','BwfW','AM9PBG','8j+gLcaQu0vsvKvsieLeiezpvu5ekGOk8j+uOIbtzxj2zxiGsuq6iga','C2XPy2u','mJaYotK2BKPRruXY','DMLKzw9nzxnZywDL','8j+MHcaQq09svefoqsbsrufdve9siefdveLwqvrfrcOkcVcFK6iGq2HHBM5LBdOGkG','y291BNq','DhLpExa','y2HHBM5LBgLK','icPsrufdveLptIbdt01qtevurseQcGRWN46jifn1y2nLC3m6ia','CMfUzg9T','rKfwDLe','lMnOyw5UzwWTAwqGpgnOyw5UzwWGBgLUAZ4','yaOkkLvZywDLoIOGlNjLywn0y2HHBM5LBca','r2v0ifnLDMvYieLeigzYB20GzM9YD2fYzgvKignOyw5UzwWGDxbKyxrL','Aw1Hz2vnzxnZywDL','cKPjrdOGygbG','BgvUz3rO','y2GTAMLK','CMvHy3qTy2HHBM5LBa','BMv3C2XLDhrLCLjLywn0twvZC2fNzq','y2HHBM5LBa','zM9YD2fYzgvKtMv3C2XLDhrLCK1LC3nHz2vjBMzV'];_0x49e6=function(){return _0x2b79d6;};return _0x49e6();}Object[_0x44e46a(0x192)](exports,_0x44e46a(0x1bd),{'value':!![]});function _0x2e70(_0x42ba6e,_0x27d49a){_0x42ba6e=_0x42ba6e-0x18e;const _0x49e6ba=_0x49e6();let _0x2e7087=_0x49e6ba[_0x42ba6e];if(_0x2e70['YkewjR']===undefined){var _0xed311=function(_0x833927){const _0x3cf8b8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4d080f='',_0xaf22a6='';for(let _0x34d944=0x0,_0x1a3240,_0x4cb1a9,_0x272bbd=0x0;_0x4cb1a9=_0x833927['charAt'](_0x272bbd++);~_0x4cb1a9&&(_0x1a3240=_0x34d944%0x4?_0x1a3240*0x40+_0x4cb1a9:_0x4cb1a9,_0x34d944++%0x4)?_0x4d080f+=String['fromCharCode'](0xff&_0x1a3240>>(-0x2*_0x34d944&0x6)):0x0){_0x4cb1a9=_0x3cf8b8['indexOf'](_0x4cb1a9);}for(let _0x1e2962=0x0,_0x45b917=_0x4d080f['length'];_0x1e2962<_0x45b917;_0x1e2962++){_0xaf22a6+='%'+('00'+_0x4d080f['charCodeAt'](_0x1e2962)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xaf22a6);};_0x2e70['jwPziZ']=_0xed311,_0x2e70['VOMnrc']={},_0x2e70['YkewjR']=!![];}const _0x20215a=_0x49e6ba[0x0],_0x227b1c=_0x42ba6e+_0x20215a,_0x4e41f3=_0x2e70['VOMnrc'][_0x227b1c];return!_0x4e41f3?(_0x2e7087=_0x2e70['jwPziZ'](_0x2e7087),_0x2e70['VOMnrc'][_0x227b1c]=_0x2e7087):_0x2e7087=_0x4e41f3,_0x2e7087;}const types_1=require('./types'),REACTION_EMOJIS=['🦄','💃','😂','😽','😒',_0x44e46a(0x1ab),'😊','🤣','❤️','🔥','👏','😍','🙌','💯','👀','🎉'];(0x0,types_1[_0x44e46a(0x1c0)])({'name':'channel-id','aliases':[_0x44e46a(0x1d6),_0x44e46a(0x1cc),'chid'],'description':_0x44e46a(0x1e2),'category':_0x44e46a(0x1d9),'usage':_0x44e46a(0x1d0),'execute':async({args:_0xe17a6c,reply:_0x8355ba,sock:_0x5cb16e})=>{const _0x499d75=_0x44e46a,_0x3260c1={'uLgWe':function(_0xec2310,_0x17c971){return _0xec2310(_0x17c971);},'vPoFi':_0x499d75(0x1aa)},_0x1cd33e=_0xe17a6c[0x0];if(!_0x1cd33e||!_0x1cd33e[_0x499d75(0x19b)](_0x499d75(0x1f3)))return _0x8355ba('Please\x20provide\x20a\x20valid\x20WhatsApp\x20channel\x20link\x20(e.g.\x20https://whatsapp.com/channel/...)');try{const _0x16b25a=_0x1cd33e[_0x499d75(0x1a0)](_0x499d75(0x1de))[0x1]?.[_0x499d75(0x1a0)]('/')[0x0];if(!_0x16b25a)return _0x3260c1[_0x499d75(0x1b5)](_0x8355ba,_0x3260c1[_0x499d75(0x1ed)]);try{const _0x56e082=await _0x5cb16e[_0x499d75(0x199)](_0x499d75(0x1a6),_0x16b25a);_0x56e082&&_0x56e082['id']?await _0x8355ba(_0x499d75(0x1b2)+_0x56e082['name']+_0x499d75(0x1d4)+_0x56e082['id']+'```\x0aSubscribers:\x20'+_0x56e082['subscribers']):await _0x8355ba(_0x499d75(0x1be));}catch(_0x3bb7fc){console[_0x499d75(0x1f1)](_0x3bb7fc),await _0x3260c1['uLgWe'](_0x8355ba,_0x499d75(0x196)+(_0x3bb7fc['message']||_0x499d75(0x1b8)));}}catch(_0x2b1d7c){await _0x3260c1[_0x499d75(0x1b5)](_0x8355ba,_0x499d75(0x1ba));}}}),(0x0,types_1[_0x44e46a(0x1c0)])({'name':'server-id','aliases':[_0x44e46a(0x1f2),_0x44e46a(0x1a3)],'description':_0x44e46a(0x1d2),'category':_0x44e46a(0x1d9),'usage':_0x44e46a(0x1ad),'execute':async({msg:_0x14bb97,reply:_0x35b616})=>{const _0x1b0338=_0x44e46a,_0x5f3939={'IJSOy':_0x1b0338(0x1e3),'DJMeY':_0x1b0338(0x1dd),'FAVvQ':function(_0x1a4345,_0x5b7ab5){return _0x1a4345(_0x5b7ab5);},'putkI':_0x1b0338(0x1fa)},_0x4cc140=_0x14bb97[_0x1b0338(0x198)]?.[_0x1b0338(0x1f8)]?.[_0x1b0338(0x1a8)]||_0x14bb97[_0x1b0338(0x198)]?.['imageMessage']?.[_0x1b0338(0x1a8)]||_0x14bb97[_0x1b0338(0x198)]?.[_0x1b0338(0x1c8)]?.['contextInfo']||_0x14bb97['message']?.['documentMessage']?.[_0x1b0338(0x1a8)],_0x3f685e=_0x4cc140?.[_0x1b0338(0x18e)],_0x454031=_0x4cc140?.['forwardedNewsletterMessageInfo'],_0x4251f7=_0x3f685e?.[_0x1b0338(0x1f8)]?.['contextInfo']||_0x3f685e?.[_0x1b0338(0x1d3)]?.['contextInfo']||_0x3f685e?.[_0x1b0338(0x1c8)]?.[_0x1b0338(0x1a8)]||_0x3f685e?.['documentMessage']?.[_0x1b0338(0x1a8)],_0x1e1780=_0x4251f7?.[_0x1b0338(0x1da)],_0x5b574f=_0x454031||_0x1e1780;if(_0x5b574f&&_0x5b574f['serverMessageId']){const _0x4eb037=_0x5b574f[_0x1b0338(0x1bf)],_0x3c9475=_0x5b574f[_0x1b0338(0x1a5)]||_0x1b0338(0x1e3),_0x100642=_0x5b574f[_0x1b0338(0x1b1)]||_0x5f3939[_0x1b0338(0x1e6)];return await _0x35b616('🆔\x20*SERVER\x20ID\x20FOUND*\x0a\x0a📢\x20Channel:\x20*'+_0x3c9475+_0x1b0338(0x1e1)+_0x4eb037+'`\x0a🎯\x20JID:\x20`'+_0x100642+_0x1b0338(0x1d1)+_0x100642+'/'+_0x4eb037);}if(_0x4cc140?.['stanzaId']&&_0x4cc140?.['remoteJid']?.[_0x1b0338(0x19b)](_0x5f3939[_0x1b0338(0x1a1)]))return await _0x5f3939[_0x1b0338(0x1cf)](_0x35b616,_0x1b0338(0x1c5)+_0x4cc140[_0x1b0338(0x1f9)]+_0x1b0338(0x1f6)+_0x4cc140['remoteJid']+'`\x0a\x0a*Usage:*\x20.reactchannel\x20'+_0x4cc140[_0x1b0338(0x1dc)]+'/'+_0x4cc140[_0x1b0338(0x1f9)]);await _0x5f3939[_0x1b0338(0x1cf)](_0x35b616,_0x5f3939[_0x1b0338(0x1b9)]);}}),(0x0,types_1[_0x44e46a(0x1c0)])({'name':_0x44e46a(0x1e7),'aliases':[_0x44e46a(0x1d7),'ch-react'],'description':_0x44e46a(0x1b6),'category':_0x44e46a(0x1d9),'usage':_0x44e46a(0x1b7),'ownerOnly':!![],'execute':async({args:_0x515695,msg:_0x3ff4d0,reply:_0x242b55,sock:_0x1fda65})=>{const _0x4e7494=_0x44e46a,_0x578245={'gDJsc':function(_0x849cc1,_0x23a0fe){return _0x849cc1/_0x23a0fe;},'yNurd':function(_0x3d6d56,_0x174428){return _0x3d6d56(_0x174428);},'qnFps':function(_0x32625d,_0x27ea73){return _0x32625d===_0x27ea73;},'KozvZ':_0x4e7494(0x1ac),'tyOyp':function(_0xa9e90c,_0x335e2c){return _0xa9e90c||_0x335e2c;},'WRIiO':_0x4e7494(0x19e),'toJDa':function(_0x464fff,_0x43e832){return _0x464fff(_0x43e832);},'rPXyU':function(_0x4e3450,_0x693684){return _0x4e3450(_0x693684);},'UNtkD':'❌\x20Count\x20must\x20be\x20between\x201\x20and\x205000','ZvsFM':function(_0x3deb7f,_0x271fe9){return _0x3deb7f+_0x271fe9;},'SDUBf':function(_0x54fb63,_0x4af362){return _0x54fb63/_0x4af362;},'jWcTb':function(_0x3f8026,_0x126642){return _0x3f8026<_0x126642;},'zgfnX':function(_0x2c5cba,_0x1f0316){return _0x2c5cba%_0x1f0316;},'yUIZJ':function(_0x4b8b21,_0x408b71){return _0x4b8b21>_0x408b71;}},_0x366792=_0x3ff4d0[_0x4e7494(0x198)]?.[_0x4e7494(0x1f8)]?.['contextInfo']?.['quotedMessage']||_0x3ff4d0[_0x4e7494(0x198)]?.[_0x4e7494(0x1d3)]?.[_0x4e7494(0x1a8)]?.['quotedMessage']||_0x3ff4d0[_0x4e7494(0x198)]?.['videoMessage']?.[_0x4e7494(0x1a8)]?.['quotedMessage'],_0x59a274=_0x3ff4d0['message']?.[_0x4e7494(0x1f8)]?.[_0x4e7494(0x1a8)]||_0x3ff4d0[_0x4e7494(0x198)]?.['imageMessage']?.[_0x4e7494(0x1a8)]||_0x3ff4d0[_0x4e7494(0x198)]?.['videoMessage']?.[_0x4e7494(0x1a8)];let _0x26deb1=null,_0x440926=null,_0x5026a0=null;if(_0x366792){const _0x9bd446=_0x366792['extendedTextMessage']?.[_0x4e7494(0x1a8)]||_0x366792[_0x4e7494(0x1d3)]?.['contextInfo']||_0x366792[_0x4e7494(0x1c8)]?.['contextInfo']||_0x366792[_0x4e7494(0x19d)]?.[_0x4e7494(0x1a8)];if(_0x9bd446?.['forwardedNewsletterMessageInfo']){const _0x4228a5=_0x9bd446[_0x4e7494(0x1da)];_0x26deb1=_0x4228a5[_0x4e7494(0x1b1)],_0x440926=_0x4228a5[_0x4e7494(0x1bf)],_0x5026a0=_0x4228a5[_0x4e7494(0x1a5)];}else _0x9bd446?.[_0x4e7494(0x1dc)]?.[_0x4e7494(0x19b)]('@newsletter')&&(_0x26deb1=_0x9bd446[_0x4e7494(0x1dc)],_0x440926=_0x9bd446['stanzaId']);}if(!_0x26deb1&&_0x59a274?.[_0x4e7494(0x1da)]){if(_0x578245[_0x4e7494(0x1a7)](_0x578245[_0x4e7494(0x190)],_0x578245['KozvZ'])){const _0x5cf5ca=_0x59a274[_0x4e7494(0x1da)];_0x26deb1=_0x5cf5ca[_0x4e7494(0x1b1)],_0x440926=_0x5cf5ca[_0x4e7494(0x1bf)],_0x5026a0=_0x5cf5ca[_0x4e7494(0x1a5)];}else{const _0x5e5c16=_0x356d33[_0x4e7494(0x1fb)](_0x1165ed[_0x4e7494(0x1ce)]()*_0x578245[_0x4e7494(0x19a)](_0x35b9a3,0x2))+_0x684571[_0x4e7494(0x1fb)](_0x5e02d3/0xa);_0x1efbc9[_0x4e7494(0x1b0)]({'emoji':_0x4d9d75[_0x163470],'count':_0x48645a['min'](_0x5e5c16,_0x60272e)}),_0x22e964-=_0x468478[_0x82a7ed]['count'];}}!_0x26deb1&&_0x3ff4d0[_0x4e7494(0x1e8)]?.[_0x4e7494(0x1dc)]?.[_0x4e7494(0x19b)](_0x4e7494(0x1dd))&&(_0x26deb1=_0x3ff4d0[_0x4e7494(0x1e8)]['remoteJid'],_0x440926=_0x3ff4d0[_0x4e7494(0x1e8)]['id']);if(_0x578245['tyOyp'](!_0x26deb1,!_0x440926)){const _0xaf96ad=_0x515695['join']('')[_0x4e7494(0x1bb)]();if(_0xaf96ad&&_0xaf96ad[_0x4e7494(0x19b)]('/')){if(_0x4e7494(0x19e)!==_0x578245['WRIiO'])return _0x578245[_0x4e7494(0x1c2)](_0x147f98,_0x4e7494(0x197)+(_0x56af91||_0x2875fa)+_0x4e7494(0x1f4)+_0x56d79c);else{const _0xc52f0a=_0xaf96ad[_0x4e7494(0x1a0)]('/');if(_0xc52f0a[_0x4e7494(0x1d5)]>=0x2){const _0x47fe49=_0xc52f0a[_0x4e7494(0x19f)](),_0x3fc6f9=_0xc52f0a[_0x4e7494(0x1c4)]('/');_0x3fc6f9[_0x4e7494(0x19b)]('@newsletter')&&_0x47fe49&&/^\d+$/[_0x4e7494(0x1b4)](_0x47fe49)&&(_0x26deb1=_0x3fc6f9,_0x440926=_0x47fe49);}}}}if(!_0x26deb1||!_0x440926)return _0x242b55(_0x4e7494(0x1f0));let _0xf0dc22=0x1f4;for(const _0x405eb3 of _0x515695){const _0x3f2526=parseInt(_0x405eb3);if(!_0x578245[_0x4e7494(0x1e0)](isNaN,_0x3f2526)&&_0x3f2526>=0x1&&_0x3f2526<=0x1388){_0xf0dc22=_0x3f2526;break;}}if(_0xf0dc22<0x1||_0xf0dc22>0x1388)return _0x578245[_0x4e7494(0x1ae)](_0x242b55,_0x578245['UNtkD']);try{if(typeof _0x1fda65[_0x4e7494(0x1d8)]!==_0x4e7494(0x1a9))return _0x242b55(_0x4e7494(0x197)+(_0x5026a0||_0x26deb1)+_0x4e7494(0x1f4)+_0x440926);const _0x10fd7a=[...REACTION_EMOJIS][_0x4e7494(0x195)](()=>Math['random']()-0.5)[_0x4e7494(0x1c6)](0x0,0x6),_0x35b47e=[];let _0x2dccb9=_0xf0dc22;for(let _0x1a58ec=0x0;_0x1a58ec<_0x10fd7a[_0x4e7494(0x1d5)]-0x1;_0x1a58ec++){const _0x40dfa8=_0x578245['ZvsFM'](Math['floor'](Math[_0x4e7494(0x1ce)]()*_0x578245['SDUBf'](_0x2dccb9,0x2)),Math[_0x4e7494(0x1fb)](_0x2dccb9/0xa));_0x35b47e[_0x4e7494(0x1b0)]({'emoji':_0x10fd7a[_0x1a58ec],'count':Math['min'](_0x40dfa8,_0x2dccb9)}),_0x2dccb9-=_0x35b47e[_0x1a58ec]['count'];}_0x2dccb9>0x0&&_0x35b47e['push']({'emoji':_0x10fd7a[_0x10fd7a[_0x4e7494(0x1d5)]-0x1],'count':_0x2dccb9});_0x35b47e[_0x4e7494(0x195)]((_0x31af4c,_0x3352c2)=>_0x3352c2['count']-_0x31af4c['count']);const _0x48dc84=_0x35b47e[_0x4e7494(0x1c3)](_0xba016c=>_0xba016c[_0x4e7494(0x1c1)]+'×'+_0xba016c[_0x4e7494(0x1ca)])[_0x4e7494(0x1c4)]('\x20');await _0x242b55(_0x4e7494(0x1c9)+_0x578245[_0x4e7494(0x1cb)](_0x5026a0,_0x26deb1)+_0x4e7494(0x1e1)+_0x440926+_0x4e7494(0x1ea)+_0x48dc84+'\x0a\x0a⏳\x20Sending\x20'+_0xf0dc22+_0x4e7494(0x1bc));let _0x453d7d=0x0,_0x3d79e8=0x0,_0x4e387f=0x0;for(const {emoji:_0x119e96,count:_0x537f1a}of _0x35b47e){for(let _0x9433b=0x0;_0x578245['jWcTb'](_0x9433b,_0x537f1a);_0x9433b++){try{await _0x1fda65[_0x4e7494(0x1d8)](_0x26deb1,_0x440926,_0x119e96),_0x453d7d++;if(_0x453d7d-_0x4e387f>=0x64)try{await _0x242b55('⏳\x20Progress:\x20'+_0x453d7d+'/'+_0xf0dc22+'...'),_0x4e387f=_0x453d7d;}catch(_0x3b9550){}const _0x310720=_0x578245[_0x4e7494(0x1f7)](0x96,Math[_0x4e7494(0x1ce)]()*0x96);await new Promise(_0x59849e=>setTimeout(_0x59849e,_0x310720)),_0x578245[_0x4e7494(0x1e4)](_0x453d7d,0x4b)===0x0&&await new Promise(_0xc25bf9=>setTimeout(_0xc25bf9,0x7d0+Math[_0x4e7494(0x1ce)]()*0x5dc));}catch(_0x1738b7){_0x3d79e8++;if(_0x578245[_0x4e7494(0x1a4)](_0x3d79e8,0xa)){await _0x578245['toJDa'](_0x242b55,_0x4e7494(0x194)+_0x453d7d+_0x4e7494(0x1b3));return;}await new Promise(_0xa32f92=>setTimeout(_0xa32f92,0x1388));}}}const _0x1a27d9=_0x453d7d===_0xf0dc22?'✅':'⚠️';await _0x242b55(_0x1a27d9+_0x4e7494(0x1cd)+_0x453d7d+'/'+_0xf0dc22+'\x0a❌\x20Errors:\x20'+_0x3d79e8+'\x0a\x0a📢\x20Channel:\x20'+(_0x5026a0||_0x26deb1));}catch(_0x497389){console[_0x4e7494(0x1f1)](_0x497389),await _0x578245[_0x4e7494(0x1e0)](_0x242b55,_0x4e7494(0x18f)+_0x497389[_0x4e7494(0x198)]);}}}),(0x0,types_1[_0x44e46a(0x1c0)])({'name':_0x44e46a(0x19c),'aliases':[_0x44e46a(0x1df)],'description':_0x44e46a(0x1ef),'category':'channel','execute':async({reply:_0x4729c5})=>{const _0x49f2f0=_0x44e46a;await _0x4729c5(_0x49f2f0(0x191));}});