vinzzsync-wacli 1.0.0
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/c.js +2 -0
- package/func.js +3263 -0
- package/index.js +2416 -0
- package/index2.js +3611 -0
- package/lib/sqlAuth.js +109 -0
- package/package.json +21 -0
- package/plugins/_loader.js +191 -0
- package/plugins/addplugins.js +93 -0
- package/plugins/backup.js +91 -0
- package/plugins/cekch.js +157 -0
- package/plugins/cekgb.js +105 -0
- package/plugins/clear.js +12 -0
- package/plugins/cmd.js +69 -0
- package/plugins/cmfil.js +110 -0
- package/plugins/cms.js +474 -0
- package/plugins/delplugins.js +57 -0
- package/plugins/dmsg.js +112 -0
- package/plugins/eval.js +175 -0
- package/plugins/evfil.js +86 -0
- package/plugins/exit.js +11 -0
- package/plugins/fadm.js +107 -0
- package/plugins/fakemsg.js +154 -0
- package/plugins/fakesize.js +204 -0
- package/plugins/fclick.js +111 -0
- package/plugins/fitnah.js +87 -0
- package/plugins/getfile.js +169 -0
- package/plugins/getplugins.js +71 -0
- package/plugins/getquoted.js +76 -0
- package/plugins/getusn.js +92 -0
- package/plugins/groups.js +62 -0
- package/plugins/help.js +19 -0
- package/plugins/ht.js +45 -0
- package/plugins/ht2.js +59 -0
- package/plugins/ht3.js +66 -0
- package/plugins/isbot.js +177 -0
- package/plugins/listplugins.js +103 -0
- package/plugins/me.js +95 -0
- package/plugins/minigames.js +144 -0
- package/plugins/ping.js +124 -0
- package/plugins/quoted.js +102 -0
- package/plugins/rvo.js +88 -0
- package/plugins/savefile.js +334 -0
- package/plugins/send.js +52 -0
- package/plugins/session.js +18 -0
- package/plugins/smsg.js +204 -0
- package/plugins/status.js +18 -0
- package/plugins/typing_troll.js +91 -0
- package/pp.jpg +0 -0
- package/vkazee-send-message.js +1238 -0
package/plugins/cekgb.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
function out(m, ...args) {
|
|
2
|
+
if (m?.reply) {
|
|
3
|
+
const text = args.map(v => typeof v === "string" ? v : String(v)).join(" ");
|
|
4
|
+
void m.reply({ text });
|
|
5
|
+
} else {
|
|
6
|
+
console.log(...args);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
command: 'cekgb',
|
|
12
|
+
|
|
13
|
+
async run({
|
|
14
|
+
m,
|
|
15
|
+
text,
|
|
16
|
+
sock
|
|
17
|
+
}) {
|
|
18
|
+
const groupId =
|
|
19
|
+
m?.chat || text.trim();
|
|
20
|
+
|
|
21
|
+
if (!groupId) {
|
|
22
|
+
out(m,
|
|
23
|
+
"Format: cekgb <id grup>"
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
try {
|
|
30
|
+
const info =
|
|
31
|
+
await sock.groupMetadata(
|
|
32
|
+
groupId
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
const formatTime =
|
|
36
|
+
timestamp => {
|
|
37
|
+
if (!timestamp) {
|
|
38
|
+
return "-";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const time =
|
|
42
|
+
Number(timestamp);
|
|
43
|
+
|
|
44
|
+
return new Date(
|
|
45
|
+
time > 9999999999
|
|
46
|
+
? time
|
|
47
|
+
: time * 1000
|
|
48
|
+
).toLocaleString(
|
|
49
|
+
"id-ID",
|
|
50
|
+
{
|
|
51
|
+
timeZone:
|
|
52
|
+
"Asia/Jakarta",
|
|
53
|
+
dateStyle:
|
|
54
|
+
"full",
|
|
55
|
+
timeStyle:
|
|
56
|
+
"medium"
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const admins =
|
|
62
|
+
info.participants.filter(
|
|
63
|
+
p => p.admin
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
out(m, `
|
|
67
|
+
=========== GROUP INFO ===========
|
|
68
|
+
|
|
69
|
+
Nama Grup
|
|
70
|
+
${info.subject || "-"}
|
|
71
|
+
|
|
72
|
+
ID Grup
|
|
73
|
+
${info.id || groupId}
|
|
74
|
+
|
|
75
|
+
Owner
|
|
76
|
+
${info.owner || "-"}
|
|
77
|
+
|
|
78
|
+
Jumlah Member
|
|
79
|
+
${info.participants?.length || 0}
|
|
80
|
+
|
|
81
|
+
Jumlah Admin
|
|
82
|
+
${admins.length}
|
|
83
|
+
|
|
84
|
+
Dibuat
|
|
85
|
+
${formatTime(info.creation)}
|
|
86
|
+
|
|
87
|
+
Subject Owner
|
|
88
|
+
${info.subjectOwner || "-"}
|
|
89
|
+
|
|
90
|
+
Subject Terakhir Update
|
|
91
|
+
${formatTime(info.subjectTime)}
|
|
92
|
+
|
|
93
|
+
Deskripsi
|
|
94
|
+
${info.desc || "-"}
|
|
95
|
+
|
|
96
|
+
==================================
|
|
97
|
+
`);
|
|
98
|
+
} catch (err) {
|
|
99
|
+
out(m,
|
|
100
|
+
"[CEKGB] Error:",
|
|
101
|
+
err.message || err
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
package/plugins/clear.js
ADDED
package/plugins/cmd.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
function out(m, ...args) {
|
|
2
|
+
if (m?.reply) {
|
|
3
|
+
const text = args.map(v => typeof v === "string" ? v : String(v)).join(" ");
|
|
4
|
+
void m.reply({ text });
|
|
5
|
+
} else {
|
|
6
|
+
console.log(...args);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
import { exec } from 'child_process';
|
|
11
|
+
export default {
|
|
12
|
+
command: ['cmd', 'exec'],
|
|
13
|
+
|
|
14
|
+
async run({
|
|
15
|
+
m,
|
|
16
|
+
text,
|
|
17
|
+
debug,
|
|
18
|
+
errlog
|
|
19
|
+
}) {
|
|
20
|
+
if (!text) {
|
|
21
|
+
out(m,
|
|
22
|
+
'Gunakan: cmd <command>'
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
debug(
|
|
29
|
+
'exec',
|
|
30
|
+
text
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
await new Promise(
|
|
34
|
+
resolve => {
|
|
35
|
+
exec(
|
|
36
|
+
text,
|
|
37
|
+
(
|
|
38
|
+
commandError,
|
|
39
|
+
stdout,
|
|
40
|
+
stderr
|
|
41
|
+
) => {
|
|
42
|
+
if (
|
|
43
|
+
commandError
|
|
44
|
+
) {
|
|
45
|
+
out(m,
|
|
46
|
+
'Command gagal',
|
|
47
|
+
commandError
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (stdout) {
|
|
52
|
+
out(m,
|
|
53
|
+
stdout.trim()
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (stderr) {
|
|
58
|
+
out(m,
|
|
59
|
+
`\x1b[33m${stderr.trim()}\x1b[0m`
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
resolve();
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
};
|
package/plugins/cmfil.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
function out(m, ...args) {
|
|
2
|
+
if (m?.reply) {
|
|
3
|
+
const text = args.map(v => typeof v === "string" ? v : String(v)).join(" ");
|
|
4
|
+
void m.reply({ text });
|
|
5
|
+
} else {
|
|
6
|
+
console.log(...args);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
import fs from 'fs';
|
|
11
|
+
import path from 'path';
|
|
12
|
+
import { exec } from 'child_process';
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
command: 'cmfil',
|
|
16
|
+
|
|
17
|
+
async run({
|
|
18
|
+
m,
|
|
19
|
+
text,
|
|
20
|
+
debug,
|
|
21
|
+
errlog
|
|
22
|
+
}) {
|
|
23
|
+
if (!text) {
|
|
24
|
+
out(m,
|
|
25
|
+
'Gunakan: cmfil <file>'
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const filePath =
|
|
32
|
+
path.resolve(
|
|
33
|
+
process.cwd(),
|
|
34
|
+
text
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
if (!fs.existsSync(filePath)) {
|
|
38
|
+
out(m,
|
|
39
|
+
`File tidak ditemukan: ${filePath}`
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
try {
|
|
46
|
+
const command =
|
|
47
|
+
fs.readFileSync(
|
|
48
|
+
filePath,
|
|
49
|
+
'utf8'
|
|
50
|
+
).trim();
|
|
51
|
+
|
|
52
|
+
if (!command) {
|
|
53
|
+
out(m,
|
|
54
|
+
'File command kosong.'
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
debug(
|
|
61
|
+
'cmfil',
|
|
62
|
+
{
|
|
63
|
+
file: filePath,
|
|
64
|
+
command
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
await new Promise(
|
|
69
|
+
resolve => {
|
|
70
|
+
exec(
|
|
71
|
+
command,
|
|
72
|
+
(
|
|
73
|
+
commandError,
|
|
74
|
+
stdout,
|
|
75
|
+
stderr
|
|
76
|
+
) => {
|
|
77
|
+
if (
|
|
78
|
+
commandError
|
|
79
|
+
) {
|
|
80
|
+
out(m,
|
|
81
|
+
'Command gagal',
|
|
82
|
+
commandError
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (stdout) {
|
|
87
|
+
out(m,
|
|
88
|
+
stdout.trim()
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (stderr) {
|
|
93
|
+
out(m,
|
|
94
|
+
`\x1b[33m${stderr.trim()}\x1b[0m`
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
resolve();
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
} catch (error) {
|
|
104
|
+
out(m,
|
|
105
|
+
'Command file gagal',
|
|
106
|
+
error
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
};
|