jsdecryptor 4.0.3 → 4.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.
- package/Database/database.js +1 -446
- package/Database/migration.js +1 -327
- package/Database/pgSync.js +1 -229
- package/Database/settingsStore.js +1 -305
- package/config.js +1 -32
- package/dave.js +1 -3063
- package/davelib/botConfig.js +1 -71
- package/davelib/greetings.js +1 -47
- package/davelib/id.js +1 -11
- package/davelib/index.js +1 -577
- package/davelib/isAdmin.js +1 -32
- package/davelib/isBanned.js +1 -12
- package/davelib/isOwner.js +1 -15
- package/davelib/messageConfig.js +1 -15
- package/davelib/messageHandler.js +1 -87
- package/davelib/reactions.js +1 -180
- package/davelib/welcome.js +1 -100
- package/daveset.js +1 -16
- package/davexcore/anti/antiaudio.js +1 -106
- package/davexcore/anti/antibadword.js +1 -313
- package/davexcore/anti/antibug.js +1 -156
- package/davexcore/anti/anticall.js +1 -219
- package/davexcore/anti/antichart.js +1 -280
- package/davexcore/anti/antidelete.js +1 -673
- package/davexcore/anti/antideletestatus.js +1 -535
- package/davexcore/anti/antidemote.js +1 -352
- package/davexcore/anti/antidocument.js +1 -105
- package/davexcore/anti/antiedit.js +1 -410
- package/davexcore/anti/antifiles.js +1 -109
- package/davexcore/anti/antigroupmention.js +1 -206
- package/davexcore/anti/antiimage.js +1 -105
- package/davexcore/anti/antikick.js +1 -125
- package/davexcore/anti/antilink.js +1 -237
- package/davexcore/anti/antimention.js +1 -143
- package/davexcore/anti/antipromote.js +1 -320
- package/davexcore/anti/antisticker.js +1 -105
- package/davexcore/anti/antitag.js +1 -191
- package/davexcore/anti/antivideo.js +1 -105
- package/davexcore/anti/antiviewonce.js +1 -396
- package/davexcore/anti/groupanticall.js +1 -262
- package/davexcore/anti/mention.js +1 -242
- package/davexcore/automation/alwaysonline.js +1 -226
- package/davexcore/automation/autoReadReciepts.js +1 -96
- package/davexcore/automation/autoread.js +1 -104
- package/davexcore/automation/autorecording.js +1 -197
- package/davexcore/automation/autostatus.js +1 -317
- package/davexcore/automation/autotyping.js +1 -197
- package/davexcore/automation/chatbot.js +1 -444
- package/davexcore/automation/chatmanage.js +1 -199
- package/davexcore/automation/devReact.js +1 -43
- package/davexcore/automation/goodbye.js +1 -181
- package/davexcore/automation/greetings.js +1 -154
- package/davexcore/automation/welcome.js +1 -187
- package/davexcore/group/addmember.js +1 -101
- package/davexcore/group/ban.js +1 -63
- package/davexcore/group/blockUnblock.js +1 -177
- package/davexcore/group/clear.js +1 -196
- package/davexcore/group/creategroup.js +1 -43
- package/davexcore/group/demote.js +1 -115
- package/davexcore/group/disappear.js +1 -67
- package/davexcore/group/groupinfo.js +1 -167
- package/davexcore/group/groupmanage.js +1 -133
- package/davexcore/group/hidetag.js +1 -108
- package/davexcore/group/joinrequests.js +1 -145
- package/davexcore/group/kick.js +1 -92
- package/davexcore/group/kickall.js +1 -63
- package/davexcore/group/leave.js +1 -38
- package/davexcore/group/linkgroup.js +1 -63
- package/davexcore/group/mute.js +1 -57
- package/davexcore/group/online.js +1 -117
- package/davexcore/group/pmblocker.js +1 -65
- package/davexcore/group/promote.js +1 -93
- package/davexcore/group/resetlink.js +1 -57
- package/davexcore/group/staff.js +1 -99
- package/davexcore/group/tag.js +1 -111
- package/davexcore/group/tagadmins.js +1 -88
- package/davexcore/group/tagall.js +1 -99
- package/davexcore/group/tagnotadmin.js +1 -92
- package/davexcore/group/topmembers.js +1 -202
- package/davexcore/group/unban.js +1 -64
- package/davexcore/group/unmute.js +1 -45
- package/davexcore/group/warn.js +1 -83
- package/davexcore/group/warnings.js +1 -26
- package/davexcore/owner/alive.js +1 -67
- package/davexcore/owner/bio.js +1 -49
- package/davexcore/owner/broadcast.js +1 -74
- package/davexcore/owner/chanel.js +1 -79
- package/davexcore/owner/channelid.js +1 -50
- package/davexcore/owner/clearsession.js +1 -86
- package/davexcore/owner/help.js +1 -649
- package/davexcore/owner/hijack.js +1 -69
- package/davexcore/owner/menuManage.js +1 -173
- package/davexcore/owner/menuSettings.js +1 -1
- package/davexcore/owner/owner.js +1 -17
- package/davexcore/owner/pair.js +1 -160
- package/davexcore/owner/pinchat.js +1 -44
- package/davexcore/owner/ping.js +1 -65
- package/davexcore/owner/profilepic.js +1 -61
- package/davexcore/owner/resetmenuimage.js +1 -16
- package/davexcore/owner/setGroupStatus.js +1 -315
- package/davexcore/owner/setbotconfig.js +1 -306
- package/davexcore/owner/setfont.js +1 -79
- package/davexcore/owner/setowner.js +1 -144
- package/davexcore/owner/setprefix.js +1 -131
- package/davexcore/owner/settings.js +1 -98
- package/davexcore/owner/startupwelcome.js +1 -94
- package/davexcore/owner/sudo.js +1 -138
- package/davexcore/owner/update.js +1 -282
- package/davexcore/utility/bible.js +1 -239
- package/davexcore/utility/encrypt.js +1 -99
- package/davexcore/utility/sports.js +1 -403
- package/index.js +1 -994
- package/package.json +1 -1
|
@@ -1,197 +1 @@
|
|
|
1
|
-
const { getOwnerConfig, setOwnerConfig, parseToggleCommand } = require('../../Database/settingsStore');
|
|
2
|
-
const db = require('../../Database/database');
|
|
3
|
-
const { createFakeContact, getBotName } = require('../../davelib/fakeContact');
|
|
4
|
-
|
|
5
|
-
const typingIntervals = new Map();
|
|
6
|
-
|
|
7
|
-
async function isAuthorized(sock, message) {
|
|
8
|
-
try {
|
|
9
|
-
const senderId = message.key.participant || message.key.remoteJid;
|
|
10
|
-
if (message.key.fromMe) return true;
|
|
11
|
-
return db.isSudo(senderId);
|
|
12
|
-
} catch {
|
|
13
|
-
return message.key.fromMe;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
async function autotypingCommand(sock, chatId, message) {
|
|
18
|
-
try {
|
|
19
|
-
const senderId = message.key.participant || message.key.remoteJid;
|
|
20
|
-
const fake = createFakeContact(senderId);
|
|
21
|
-
const botName = getBotName();
|
|
22
|
-
|
|
23
|
-
if (!await isAuthorized(sock, message)) {
|
|
24
|
-
await sock.sendMessage(chatId, {
|
|
25
|
-
text: `✦ Owner only command`
|
|
26
|
-
}, { quoted: fake });
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const text = message.message?.conversation || message.message?.extendedTextMessage?.text || '';
|
|
31
|
-
const args = text.trim().split(/\s+/).slice(1);
|
|
32
|
-
const action = args[0]?.toLowerCase();
|
|
33
|
-
const action2 = args[1]?.toLowerCase();
|
|
34
|
-
|
|
35
|
-
const config = getOwnerConfig('autotyping') || { enabled: false, duration: 3000, pm: true, group: true };
|
|
36
|
-
|
|
37
|
-
if (!action) {
|
|
38
|
-
const helpText = `✦ *AUTOTYPING*
|
|
39
|
-
|
|
40
|
-
Status: ${config.enabled ? 'ON' : 'OFF'}
|
|
41
|
-
PM: ${config.pm ? 'ON' : 'OFF'}
|
|
42
|
-
Group: ${config.group ? 'ON' : 'OFF'}
|
|
43
|
-
|
|
44
|
-
✦ *Commands:*
|
|
45
|
-
› on
|
|
46
|
-
› off
|
|
47
|
-
› pm
|
|
48
|
-
› group
|
|
49
|
-
› both
|
|
50
|
-
› pm on/off
|
|
51
|
-
› group on/off
|
|
52
|
-
› both on/off`;
|
|
53
|
-
await sock.sendMessage(chatId, { text: helpText }, { quoted: fake });
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
let newConfig = { ...config };
|
|
58
|
-
let responseText = '';
|
|
59
|
-
|
|
60
|
-
const toggle = parseToggleCommand(action);
|
|
61
|
-
|
|
62
|
-
if (toggle === 'on') {
|
|
63
|
-
newConfig.enabled = true;
|
|
64
|
-
newConfig.pm = true;
|
|
65
|
-
newConfig.group = true;
|
|
66
|
-
responseText = `✦ Autotyping ENABLED for both PMs & Groups`;
|
|
67
|
-
} else if (toggle === 'off') {
|
|
68
|
-
newConfig.enabled = false;
|
|
69
|
-
stopAllTypingIntervals();
|
|
70
|
-
responseText = `✦ Autotyping DISABLED`;
|
|
71
|
-
} else if (action === 'pm') {
|
|
72
|
-
const toggle2 = action2 ? parseToggleCommand(action2) : null;
|
|
73
|
-
if (toggle2 === 'off') {
|
|
74
|
-
newConfig.pm = false;
|
|
75
|
-
if (!newConfig.group) newConfig.enabled = false;
|
|
76
|
-
responseText = `✦ Autotyping PM mode DISABLED\n Group: ${newConfig.group ? 'ON' : 'OFF'}`;
|
|
77
|
-
} else {
|
|
78
|
-
newConfig.pm = true;
|
|
79
|
-
newConfig.group = false;
|
|
80
|
-
newConfig.enabled = true;
|
|
81
|
-
responseText = `✦ Autotyping enabled for PMs only`;
|
|
82
|
-
if (toggle2 === 'on') {
|
|
83
|
-
newConfig.group = config.group;
|
|
84
|
-
responseText = `✦ Autotyping PM mode ENABLED\n Group: ${newConfig.group ? 'ON' : 'OFF'}`;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
} else if (action === 'group') {
|
|
88
|
-
const toggle2 = action2 ? parseToggleCommand(action2) : null;
|
|
89
|
-
if (toggle2 === 'off') {
|
|
90
|
-
newConfig.group = false;
|
|
91
|
-
if (!newConfig.pm) newConfig.enabled = false;
|
|
92
|
-
responseText = `✦ Autotyping Group mode DISABLED\n PM: ${newConfig.pm ? 'ON' : 'OFF'}`;
|
|
93
|
-
} else {
|
|
94
|
-
newConfig.group = true;
|
|
95
|
-
newConfig.pm = false;
|
|
96
|
-
newConfig.enabled = true;
|
|
97
|
-
responseText = `✦ Autotyping enabled for Groups only`;
|
|
98
|
-
if (toggle2 === 'on') {
|
|
99
|
-
newConfig.pm = config.pm;
|
|
100
|
-
responseText = `✦ Autotyping Group mode ENABLED\n PM: ${newConfig.pm ? 'ON' : 'OFF'}`;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
} else if (action === 'both') {
|
|
104
|
-
const toggle2 = action2 ? parseToggleCommand(action2) : null;
|
|
105
|
-
if (toggle2 === 'off') {
|
|
106
|
-
newConfig.enabled = false;
|
|
107
|
-
newConfig.pm = false;
|
|
108
|
-
newConfig.group = false;
|
|
109
|
-
stopAllTypingIntervals();
|
|
110
|
-
responseText = `✦ Autotyping DISABLED for both PMs & Groups`;
|
|
111
|
-
} else {
|
|
112
|
-
newConfig.pm = true;
|
|
113
|
-
newConfig.group = true;
|
|
114
|
-
newConfig.enabled = true;
|
|
115
|
-
responseText = `✦ Autotyping enabled for both PMs & Groups`;
|
|
116
|
-
}
|
|
117
|
-
} else {
|
|
118
|
-
responseText = `✦ Invalid! Use: on, off, pm, group, both\n Or: pm on/off, group on/off, both on/off`;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (responseText && !responseText.includes('Invalid')) {
|
|
122
|
-
if (!newConfig.pm && !newConfig.group) {
|
|
123
|
-
newConfig.enabled = false;
|
|
124
|
-
stopAllTypingIntervals();
|
|
125
|
-
}
|
|
126
|
-
setOwnerConfig('autotyping', newConfig);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
await sock.sendMessage(chatId, { text: responseText }, { quoted: fake });
|
|
130
|
-
} catch (error) {
|
|
131
|
-
console.error('Error in autotyping command:', error.message, 'Line:', error.stack?.split('\n')[1]);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function isAutotypingEnabled() {
|
|
136
|
-
const config = getOwnerConfig('autotyping');
|
|
137
|
-
return config?.enabled || false;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function stopAllTypingIntervals() {
|
|
141
|
-
for (const [key, interval] of typingIntervals.entries()) {
|
|
142
|
-
clearInterval(interval);
|
|
143
|
-
typingIntervals.delete(key);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
async function handleAutotypingForMessage(sock, chatId) {
|
|
148
|
-
try {
|
|
149
|
-
const config = getOwnerConfig('autotyping');
|
|
150
|
-
if (!config?.enabled) return;
|
|
151
|
-
|
|
152
|
-
const isGroup = chatId.endsWith('@g.us');
|
|
153
|
-
if (isGroup && !config.group) return;
|
|
154
|
-
if (!isGroup && !config.pm) return;
|
|
155
|
-
|
|
156
|
-
if (typingIntervals.has(chatId)) {
|
|
157
|
-
clearInterval(typingIntervals.get(chatId));
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
await sock.presenceSubscribe(chatId);
|
|
161
|
-
await sock.sendPresenceUpdate('composing', chatId);
|
|
162
|
-
|
|
163
|
-
const interval = setInterval(async () => {
|
|
164
|
-
try {
|
|
165
|
-
const currentConfig = getOwnerConfig('autotyping');
|
|
166
|
-
if (!currentConfig?.enabled) {
|
|
167
|
-
clearInterval(interval);
|
|
168
|
-
typingIntervals.delete(chatId);
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
await sock.sendPresenceUpdate('composing', chatId);
|
|
172
|
-
} catch (e) {
|
|
173
|
-
clearInterval(interval);
|
|
174
|
-
typingIntervals.delete(chatId);
|
|
175
|
-
}
|
|
176
|
-
}, 4000);
|
|
177
|
-
|
|
178
|
-
typingIntervals.set(chatId, interval);
|
|
179
|
-
|
|
180
|
-
setTimeout(() => {
|
|
181
|
-
if (typingIntervals.has(chatId)) {
|
|
182
|
-
clearInterval(typingIntervals.get(chatId));
|
|
183
|
-
typingIntervals.delete(chatId);
|
|
184
|
-
try { sock.sendPresenceUpdate('paused', chatId); } catch(e) {}
|
|
185
|
-
}
|
|
186
|
-
}, 30000);
|
|
187
|
-
} catch (error) {
|
|
188
|
-
console.error('Autotyping error:', error.message);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
module.exports = {
|
|
193
|
-
autotypingCommand,
|
|
194
|
-
isAutotypingEnabled,
|
|
195
|
-
handleAutotypingForMessage,
|
|
196
|
-
stopAllTypingIntervals
|
|
197
|
-
};
|
|
1
|
+
const _0x539ccb=_0x4bf7;(function(_0x59f82f,_0x501735){const _0x561419=_0x4bf7,_0x570775=_0x59f82f();while(!![]){try{const _0x2eef68=-parseInt(_0x561419(0x119))/(0x26f0+0xa6*0x1c+0x1*-0x3917)+-parseInt(_0x561419(0x105))/(-0x50a+0xb*-0x1df+0x19a1)+-parseInt(_0x561419(0xfd))/(-0x1dcf*0x1+0x2*-0xdf1+0x4*0xe6d)*(-parseInt(_0x561419(0x12b))/(-0xaef*-0x1+0x22d1+-0x2dbc))+parseInt(_0x561419(0x148))/(-0xe*-0xbe+-0x254e+-0x23*-0xc5)+parseInt(_0x561419(0x13e))/(-0x22*-0xf7+0x13*-0x39+0x1*-0x1c8d)*(-parseInt(_0x561419(0x113))/(0x1baa+-0x304*0x6+-0x98b*0x1))+parseInt(_0x561419(0x118))/(0x2cd*0xb+0x31*0x7c+-0x1*0x3683)*(parseInt(_0x561419(0x108))/(0x3*-0x731+0xc7*0x13+-0x6d7*-0x1))+parseInt(_0x561419(0x104))/(0x207*0xb+-0x4*-0x68f+-0x41*0xbf)*(-parseInt(_0x561419(0x10c))/(0x1*0x1c67+-0x132f+0x30f*-0x3));if(_0x2eef68===_0x501735)break;else _0x570775['push'](_0x570775['shift']());}catch(_0x7e1c38){_0x570775['push'](_0x570775['shift']());}}}(_0x4303,0x9*-0x2559+0xda4ee+-0x46a32));const {getOwnerConfig,setOwnerConfig,parseToggleCommand}=require('../../Data'+_0x539ccb(0xff)+_0x539ccb(0xf3)),db=require('../../Data'+_0x539ccb(0x126)+_0x539ccb(0x103)),{createFakeContact,getBotName}=require('../../dave'+'lib/fakeCo'+_0x539ccb(0xfc)),typingIntervals=new Map();function _0x4303(){const _0x337ad5=['BMDZu3rVCMu','ig9Ul29MzGOGia','C3rHy2S','DxrVDhLWAw5Nia','y29UDMvYC2f0Aq','yM90Aa','BMCGzw5HyMXLza','rcbMB3iGyM90Aa','4Oc6igDYB3vWcIaG','BNrHy3q','m3zHr0nZqq','yNnJCMLIzq','yMfZzs9Zzxr0Aq','rxjYB3iGAw4Gyq','igzVCIbIB3rOia','z3jVDxa','yxnL','mtbmuw1Wv0i','nJa3mda0DevjrNjN','DxbZ','A2v5','ovzlu29yAG','CMvTB3rLsMLK','BMCGue0GBw9Kzq','zxH0zw5Kzwruzq','mJiYmdm5nhHewxLdza','zw5HyMXLza','igvYCM9YoG','ieDYB3vWoIa','C2vUze1LC3nHzW','B2zM','qxv0B3r5CgLUzW','ntq1mda2BNH5sLLt','BwvZC2fNzq','zxHWB3j0CW','yxv0B3r5CgLUzW','igzVCIbhCM91Ca','nti0odK3nMDnAvz1Ea','nty2nZe5rhrJB2Hp','y29TCg9ZAw5N','zxjYB3i','B24VB2zMlcbNCG','zw50CMLLCW','y2vvCgrHDgu','t0zg','CM91CcWGyM90Aa','Dgv4Da','C2XPy2u','EhrnzxnZywDL','ue1ZicyGr3jVDq','B3vWig9Ul29MzG','yMfZzs9KyxrHyG','cIaGr3jVDxa6ia','Aw5JBhvKzxm','BMX5','4Oc6igjVDgGkicdIGlO','mZK1mJu4ogXJDLvVwG','ievoqujmruqkia','BMCGreLtqujmrq','icbhCM91CdOG','B2rLievoqujmrq','B24kicdIGlOGB2zM','zNjVBu1L','ifvZztOGB24Sia','C2vUzfbYzxnLBG','C2v0','ihbTig9Ul29MzG','su5hkGOGicaGcG','CYbVBMX5','ChjLC2vUy2vtDq','ruqkicbqttOG','sw52ywXPza','tgLUztO','zgvSzxrL','BMCGr3jVDxaGBq','mZzxt3rmAuu','cIaGue06ia','4PYMie93BMvYig9U','4PYMief1Dg90ExbP','Cgf1C2vK','Dg9mB3DLCKnHCW','AgfZ','cIaG4Oc6ihbTcIaG','C3bSAxq','ierju0fctevecG','mJa2odGYnuTkyNjUCq','4Oc6igjVDgGGB24V','qgCUDxm','B2zMlcbWBsWGzW','AxntDwrV'];_0x4303=function(){return _0x337ad5;};return _0x4303();}async function isAuthorized(_0x32919c,_0x4a8b6a){const _0x59678f=_0x4bf7;try{const _0x3cb1e9=_0x4a8b6a[_0x59678f(0x107)]['participan'+'t']||_0x4a8b6a[_0x59678f(0x107)]['remoteJid'];if(_0x4a8b6a['key'][_0x59678f(0x131)])return!![];return db[_0x59678f(0xf2)](_0x3cb1e9);}catch{return _0x4a8b6a[_0x59678f(0x107)][_0x59678f(0x131)];}}async function autotypingCommand(_0x1bea6a,_0x3b1558,_0x52c46c){const _0x48a14c=_0x4bf7;try{const _0x22a987=_0x52c46c[_0x48a14c(0x107)]['participan'+'t']||_0x52c46c['key'][_0x48a14c(0x109)],_0x3ea274=createFakeContact(_0x22a987),_0x260e05=getBotName();if(!await isAuthorized(_0x1bea6a,_0x52c46c)){await _0x1bea6a[_0x48a14c(0x110)+'e'](_0x3b1558,{'text':_0x48a14c(0x140)+'ly\x20command'},{'quoted':_0x3ea274});return;}const _0x2a470c=_0x52c46c[_0x48a14c(0x114)]?.[_0x48a14c(0xf7)+'on']||_0x52c46c[_0x48a14c(0x114)]?.[_0x48a14c(0x10b)+_0x48a14c(0x123)]?.[_0x48a14c(0x121)]||'',_0x36d211=_0x2a470c['trim']()[_0x48a14c(0x146)](/\s+/)[_0x48a14c(0x122)](-0x402+0x1812+0x1*-0x140f),_0x2fec3f=_0x36d211[-0xbdf*-0x3+-0x1*-0x264b+0xd7*-0x58]?.[_0x48a14c(0x143)+'e'](),_0x346268=_0x36d211[0x20fa+0x1dbf+-0x3eb8]?.[_0x48a14c(0x143)+'e'](),_0x49cf93=getOwnerConfig(_0x48a14c(0x116))||{'enabled':![],'duration':0xbb8,'pm':!![],'group':!![]};if(!_0x2fec3f){const _0x4c5c24='✦\x20*AUTOTYP'+_0x48a14c(0x136)+'\x20\x20Status:\x20'+(_0x49cf93['enabled']?'ON':_0x48a14c(0x11f))+_0x48a14c(0x13f)+(_0x49cf93['pm']?'ON':_0x48a14c(0x11f))+_0x48a14c(0x127)+(_0x49cf93['group']?'ON':'OFF')+('\x0a\x0a✦\x20*Comma'+'nds:*\x0a\x20\x20›\x20'+_0x48a14c(0x130)+_0x48a14c(0x145)+_0x48a14c(0xfb)+_0x48a14c(0x12a)+_0x48a14c(0x135)+'\x0a\x20\x20›\x20group'+_0x48a14c(0xf4)+_0x48a14c(0xef)+_0x48a14c(0x111));await _0x1bea6a[_0x48a14c(0x110)+'e'](_0x3b1558,{'text':_0x4c5c24},{'quoted':_0x3ea274});return;}let _0x1d5a95={..._0x49cf93},_0x2ac840='';const _0x710db1=parseToggleCommand(_0x2fec3f);if(_0x710db1==='on')_0x1d5a95['enabled']=!![],_0x1d5a95['pm']=!![],_0x1d5a95[_0x48a14c(0x102)]=!![],_0x2ac840=_0x48a14c(0x141)+'ng\x20ENABLED'+'\x20for\x20both\x20'+_0x48a14c(0x124)+'ps';else{if(_0x710db1===_0x48a14c(0x111))_0x1d5a95[_0x48a14c(0x10d)]=![],stopAllTypingIntervals(),_0x2ac840=_0x48a14c(0x141)+_0x48a14c(0x12d)+'D';else{if(_0x2fec3f==='pm'){const _0x41d7e3=_0x346268?parseToggleCommand(_0x346268):null;if(_0x41d7e3===_0x48a14c(0x111)){_0x1d5a95['pm']=![];if(!_0x1d5a95[_0x48a14c(0x102)])_0x1d5a95['enabled']=![];_0x2ac840=_0x48a14c(0x141)+_0x48a14c(0x10a)+_0x48a14c(0x147)+_0x48a14c(0x12e)+(_0x1d5a95['group']?'ON':'OFF');}else _0x1d5a95['pm']=!![],_0x1d5a95[_0x48a14c(0x102)]=![],_0x1d5a95[_0x48a14c(0x10d)]=!![],_0x2ac840=_0x48a14c(0x141)+_0x48a14c(0xf9)+'\x20for\x20PMs\x20o'+_0x48a14c(0x129),_0x41d7e3==='on'&&(_0x1d5a95['group']=_0x49cf93[_0x48a14c(0x102)],_0x2ac840=_0x48a14c(0x141)+_0x48a14c(0x10a)+_0x48a14c(0x12c)+_0x48a14c(0x10f)+(_0x1d5a95['group']?'ON':'OFF'));}else{if(_0x2fec3f===_0x48a14c(0x102)){const _0x2255a7=_0x346268?parseToggleCommand(_0x346268):null;if(_0x2255a7===_0x48a14c(0x111)){_0x1d5a95[_0x48a14c(0x102)]=![];if(!_0x1d5a95['pm'])_0x1d5a95[_0x48a14c(0x10d)]=![];_0x2ac840=_0x48a14c(0x141)+_0x48a14c(0x13d)+'ode\x20DISABL'+_0x48a14c(0x139)+(_0x1d5a95['pm']?'ON':_0x48a14c(0x11f));}else _0x1d5a95[_0x48a14c(0x102)]=!![],_0x1d5a95['pm']=![],_0x1d5a95[_0x48a14c(0x10d)]=!![],_0x2ac840=_0x48a14c(0x141)+'ng\x20enabled'+_0x48a14c(0x117)+_0x48a14c(0x137),_0x2255a7==='on'&&(_0x1d5a95['pm']=_0x49cf93['pm'],_0x2ac840=_0x48a14c(0x141)+_0x48a14c(0x13d)+_0x48a14c(0x12f)+'D\x0a\x20\x20PM:\x20'+(_0x1d5a95['pm']?'ON':'OFF'));}else{if(_0x2fec3f===_0x48a14c(0xf8)){const _0x4bd917=_0x346268?parseToggleCommand(_0x346268):null;_0x4bd917===_0x48a14c(0x111)?(_0x1d5a95[_0x48a14c(0x10d)]=![],_0x1d5a95['pm']=![],_0x1d5a95[_0x48a14c(0x102)]=![],stopAllTypingIntervals(),_0x2ac840=_0x48a14c(0x141)+_0x48a14c(0x12d)+_0x48a14c(0xfa)+'\x20PMs\x20&\x20Gro'+_0x48a14c(0x106)):(_0x1d5a95['pm']=!![],_0x1d5a95[_0x48a14c(0x102)]=!![],_0x1d5a95[_0x48a14c(0x10d)]=!![],_0x2ac840='✦\x20Autotypi'+_0x48a14c(0xf9)+_0x48a14c(0x101)+'PMs\x20&\x20Grou'+'ps');}else _0x2ac840='✦\x20Invalid!'+_0x48a14c(0x132)+_0x48a14c(0xf1)+_0x48a14c(0x120)+'\x0a\x20\x20Or:\x20pm\x20'+_0x48a14c(0x11c)+_0x48a14c(0x125)+',\x20both\x20on/'+'off';}}}}_0x2ac840&&!_0x2ac840[_0x48a14c(0x128)](_0x48a14c(0x13a))&&(!_0x1d5a95['pm']&&!_0x1d5a95[_0x48a14c(0x102)]&&(_0x1d5a95[_0x48a14c(0x10d)]=![],stopAllTypingIntervals()),setOwnerConfig('autotyping',_0x1d5a95)),await _0x1bea6a[_0x48a14c(0x110)+'e'](_0x3b1558,{'text':_0x2ac840},{'quoted':_0x3ea274});}catch(_0x12fb9e){console[_0x48a14c(0x11b)](_0x48a14c(0x100)+_0x48a14c(0xf6)+'command:',_0x12fb9e['message'],_0x48a14c(0x13b),_0x12fb9e[_0x48a14c(0xf5)]?.[_0x48a14c(0x146)]('\x0a')[0x5b+-0xb76+0xb1c]);}}function isAutotypingEnabled(){const _0x5d4223=_0x4bf7,_0x39e069=getOwnerConfig(_0x5d4223(0x116));return _0x39e069?.['enabled']||![];}function stopAllTypingIntervals(){const _0x563100=_0x4bf7;for(const [_0x5453ba,_0xf2fe61]of typingIntervals[_0x563100(0x11d)]()){clearInterval(_0xf2fe61),typingIntervals[_0x563100(0x13c)](_0x5453ba);}}function _0x4bf7(_0x37e807,_0x21b70b){_0x37e807=_0x37e807-(0x397*0x5+-0x1*0x20a2+0x2*0x7cf);const _0x16e7b7=_0x4303();let _0x4a7917=_0x16e7b7[_0x37e807];if(_0x4bf7['lfRAaa']===undefined){var _0x382d5f=function(_0x359d8b){const _0x3602f2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x244658='',_0x4ab226='';for(let _0x19d62f=-0x2704+-0x1*0x1670+0x3d74,_0xe438f2,_0x4ab580,_0x22ea7d=0x195a*0x1+-0x72*-0x8+-0x1*0x1cea;_0x4ab580=_0x359d8b['charAt'](_0x22ea7d++);~_0x4ab580&&(_0xe438f2=_0x19d62f%(0x7bf*0x2+0x153d+-0x24b7)?_0xe438f2*(-0x420+0x5b+0x405)+_0x4ab580:_0x4ab580,_0x19d62f++%(-0x1d41+-0x9*-0x2b6+0x4df))?_0x244658+=String['fromCharCode'](0x747+0x249c+-0x225*0x14&_0xe438f2>>(-(0x6b*-0x39+-0x1f*0x2f+0x1d86)*_0x19d62f&-0x2*-0xe5f+-0xaac+-0x120c)):-0x7*-0x7+0x3d9+-0x40a){_0x4ab580=_0x3602f2['indexOf'](_0x4ab580);}for(let _0x37b287=0x177e+-0x77*-0x20+0x132f*-0x2,_0x3ea96d=_0x244658['length'];_0x37b287<_0x3ea96d;_0x37b287++){_0x4ab226+='%'+('00'+_0x244658['charCodeAt'](_0x37b287)['toString'](-0x1*0x1aa1+0x385*-0x1+0x1e36))['slice'](-(-0x121d+0x1eae+-0xc8f));}return decodeURIComponent(_0x4ab226);};_0x4bf7['OVaBBc']=_0x382d5f,_0x4bf7['RwlAMg']={},_0x4bf7['lfRAaa']=!![];}const _0x340424=_0x16e7b7[-0x2d*0x41+-0x94d*-0x4+-0x19c7],_0x537c57=_0x37e807+_0x340424,_0x36ceeb=_0x4bf7['RwlAMg'][_0x537c57];return!_0x36ceeb?(_0x4a7917=_0x4bf7['OVaBBc'](_0x4a7917),_0x4bf7['RwlAMg'][_0x537c57]=_0x4a7917):_0x4a7917=_0x36ceeb,_0x4a7917;}async function handleAutotypingForMessage(_0x2b6499,_0x519748){const _0x226b3a=_0x4bf7;try{const _0x28210d=getOwnerConfig(_0x226b3a(0x116));if(!_0x28210d?.['enabled'])return;const _0x5e7cbb=_0x519748['endsWith'](_0x226b3a(0xf0));if(_0x5e7cbb&&!_0x28210d[_0x226b3a(0x102)])return;if(!_0x5e7cbb&&!_0x28210d['pm'])return;typingIntervals[_0x226b3a(0x144)](_0x519748)&&clearInterval(typingIntervals['get'](_0x519748));await _0x2b6499[_0x226b3a(0x138)+_0x226b3a(0xfe)](_0x519748),await _0x2b6499[_0x226b3a(0x133)+_0x226b3a(0x11e)](_0x226b3a(0x11a),_0x519748);const _0x56acba=setInterval(async()=>{const _0x40cfbd=_0x4bf7;try{const _0x16ebeb=getOwnerConfig(_0x40cfbd(0x116));if(!_0x16ebeb?.[_0x40cfbd(0x10d)]){clearInterval(_0x56acba),typingIntervals['delete'](_0x519748);return;}await _0x2b6499[_0x40cfbd(0x133)+_0x40cfbd(0x11e)](_0x40cfbd(0x11a),_0x519748);}catch(_0x19950b){clearInterval(_0x56acba),typingIntervals['delete'](_0x519748);}},-0x9*-0x2b6+-0x18e6+0x810*0x2);typingIntervals[_0x226b3a(0x134)](_0x519748,_0x56acba),setTimeout(()=>{const _0x1dbfc=_0x4bf7;if(typingIntervals[_0x1dbfc(0x144)](_0x519748)){clearInterval(typingIntervals['get'](_0x519748)),typingIntervals[_0x1dbfc(0x13c)](_0x519748);try{_0x2b6499[_0x1dbfc(0x133)+_0x1dbfc(0x11e)](_0x1dbfc(0x142),_0x519748);}catch(_0x55221c){}}},-0x1af9*0x7+-0x6a07+0x19c06);}catch(_0x17e9f1){console[_0x226b3a(0x11b)](_0x226b3a(0x112)+_0x226b3a(0x10e),_0x17e9f1[_0x226b3a(0x114)]);}}module[_0x539ccb(0x115)]={'autotypingCommand':autotypingCommand,'isAutotypingEnabled':isAutotypingEnabled,'handleAutotypingForMessage':handleAutotypingForMessage,'stopAllTypingIntervals':stopAllTypingIntervals};
|