-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
756 lines (669 loc) · 18.1 KB
/
index.js
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
const { Client, LocalAuth, MessageMedia, ChatTypes } = require("whatsapp-web.js");
const fs = require("fs");
const path = require("path");
const client = new Client({
authStrategy: new LocalAuth(),
puppeteer: {
executablePath:
"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
headless: false,
},
});
client.on("qr", (qr) => {
console.log(qr);
});
client.on("ready", () => {
console.log("Bot is ready");
});
// Memulai bot
client.on("message", async (message) => {
if (message.body === ".start") {
const mediaUrl = `https://i.ibb.co/P95BCqP/Colorful-Artificial-Intelligence-Logo.jpg`
const media = await MessageMedia.fromUrl(`${mediaUrl}`);
const chat = await message.getChat();
chat.sendMessage(media, {caption: 'Selamat datang di Voldigoad-Ai. Silahkan ketikan *.list* untuk melihat daftar command yang tersedia'});
}
});
client.on("message", async (message) => {
if (message.body === ".list") {
const mediaUrl = "https://i.ibb.co/P95BCqP/Colorful-Artificial-Intelligence-Logo.jpg";
const media = await MessageMedia.fromUrl(mediaUrl);
const chat = await message.getChat();
chat.sendMessage(media, {
caption: `
╭════•›「 Tools 」
├≽️ *🤖 .gpt*
├ _ChatGPT_
├≽️ *🤖 .simi*
├ _SimSimi_
├≽️ *🎵 .lirik*
├ _Lirik Lagu_
├≽️ *🎸 .chord*
├ _Chord Lagu_
├≽️ *🌐 .wiki*
├ _Wikipedia_
├≽️ *📬 .kodepos*
├ _Check KodePos_
╰═══════════════
╭════•›「 Text To Speech (Women Voice) 」
├≽️ *🇮🇩 .indo*
├ _Bahasa Indonesia_
├≽️ *🇺🇸 .eng*
├ _English United States_
├≽️ *🇯🇵 .jap*
├ _Bahasa Jepang_
├≽️ *🇫🇷 .fr*
├ _Bahasa Perancis_
├≽️ *🇹🇭 .th*
├ _Bahasa Thailand_
├≽️ *🇷🇺 .rus*
├ _Bahasa Rusia_
╰═══════════════
╭════•›「 Downloader 」
├≽️ *🎵 .ytmp3*
├ _Unduh Musik YT_
├≽️ *🎥 .ytmp4*
├ _Unduh Video YT_
├≽️ *📽️ .fbdown*
├ _Unduh Video FB_
├≽️ *🎥 .reeldown*
├ _Unduh IG Reels_
├≽️ *🎥 .tiktok*
├ _Unduh Video TikTok_
├≽️ *🐦 .twitter*
├ _Unduh Video Twitter_
├≽️ *📁 .mediafire*
├ _Unduh dari MediaFire_
├≽️ *🎵 .soundcloud*
├ _Unduh Musik SoundCloud_
╰═══════════════
╭════•›「 Stalker 」
├≽️ *📸 .igstalk*
├ _Stalking IG_
├≽️ *💻 .gitstalk*
├ _Stalking GitHub_
├≽️ *🎵 .tikstalk*
├ _Stalking TikTok_
╰═══════════════
╭════•›「 ShortUrl 」
├≽️ *🔗 .bitly*
├ _ShortUrl menggunakan bitly_
├≽️ *🔗 .cutly*
├ _ShortUrl menggunakan cutly_
├≽️ *🔗 .tinurl*
├ _ShortUrl menggunakan tinurl_
├≽️ *🔗 .shrt*
├ _ShortUrl menggunakan shrt_
╰═══════════════
╭════•›「 Generator 」
├≽️ *📲 .qrcode*
├ _Buat QR Code_
├≽️ *🧠 .brain*
├ _Teks menjadi BrainFuck_
├≽️ *🔐 .hashgen*
├ _Teks menjadi hash_
├≽️ *📝 .fakedata*
├ _Data palsu_
╰═══════════════
╭════•›「 Check E-Wallet 」
├≽️ *💰 .ovo*
├ _Check Ovo_
├≽️ *💰 .gopay*
├ _Check Gopay_
├≽️ *💰 .linkaja*
├ _Check LinkAja_
├≽️ *💰 .spay*
├ _Check ShopeePay_
╰═══════════════
╭════•›「 Hacking 」
├≽️ *🌐 .scancms*
├ _Memeriksa CMS Website_
├≽️ *🌐 .jacking*
├ _Periksa ClickJacking_
├≽️ *🌐 .revip*
├ _Reverse IP_
├≽️ *🌐 .revip*
├ _Reverse IP_
├≽️ *🌐 .whois*
├ _WhoisLookup_
╰═══════════════
`
});
}
});
// // ---------------- END COMMAND LIST ---------------------- //
// ---------------- OTHER TOOLS ---------------------- //
// Handle dev command
client.on("message", async (message) => {
if (message.body === ".dev") {
const nama = "Bayu Candra Yudistira";
const ig = "bayucndra__";
const github = "https://github.com/Bayu-x3";
const replyMessage = `*Developer's Bio*\nNama: ${nama}\nInstagram: ${ig}\nGithub: ${github}`;
message.reply(replyMessage);
}
});
// Require and execute ChatGPT command
client.on("message", async (message) => {
if (message.body.startsWith(".gpt")) {
const handleGptCommands = require(path.join(
__dirname,
"commands",
"others",
"gpt.js"
));
await handleGptCommands(message);
}
});
// Require and executed SimSimi command
client.on("message", async (message) => {
if (message.body.startsWith(".simi")) {
const handleSimiCommands = require(path.join(
__dirname,
"commands",
"others",
"simi.js"
));
await handleSimiCommands(message);
}
});
// Require and executed LirikLagu command
client.on("message", async (message) => {
if (message.body.startsWith(".lirik")) {
const handleLirikCommands = require(path.join(
__dirname,
"commands",
"others",
"lirik.js"
));
await handleLirikCommands(message);
}
});
// Require and executed Wikipedia command
client.on("message", async (message) => {
if (message.body.startsWith(".wikped")) {
const handleWikiCommands = require(path.join(
__dirname,
"commands",
"others",
"wiki.js"
));
await handleWikiCommands(message);
}
});
// Require and executed Chord command
client.on("message", async (message) => {
if (message.body.startsWith(".chord")) {
const handleChordCommands = require(path.join(
__dirname,
"commands",
"others",
"chord.js"
));
await handleChordCommands(message);
}
});
// Require and executed FakeData command
client.on("message", async (message) => {
if (message.body.startsWith(".kodepos")) {
const handlePosCommands = require(path.join(
__dirname,
"commands",
"others",
"kodepos.js"
));
await handlePosCommands(message);
}
});
// ------------------------------------------------------ //
// ---------------- TEXT TO SPEACH TOOLS ---------------------- //
// Require and executed Indonesia command
client.on("message", async (message) => {
if (message.body.startsWith(".indo")) {
const handleIndonesiaCommands = require(path.join(
__dirname,
"commands",
"speach",
"indo.js"
));
await handleIndonesiaCommands(message);
}
});
// Require and executed English command
client.on("message", async (message) => {
if (message.body.startsWith(".eng")) {
const handleEnglishCommands = require(path.join(
__dirname,
"commands",
"speach",
"us.js"
));
await handleEnglishCommands(message);
}
});
// Require and executed Japan command
client.on("message", async (message) => {
if (message.body.startsWith(".jap")) {
const handleJapanCommands = require(path.join(
__dirname,
"commands",
"speach",
"japan.js"
));
await handleJapanCommands(message);
}
});
// Require and executed French command
client.on("message", async (message) => {
if (message.body.startsWith(".fr")) {
const handleFrenchCommands = require(path.join(
__dirname,
"commands",
"speach",
"french.js"
));
await handleFrenchCommands(message);
}
});
// Require and executed Thailand command
client.on("message", async (message) => {
if (message.body.startsWith(".th")) {
const hanldeThCommands = require(path.join(
__dirname,
"commands",
"speach",
"th.js"
));
await hanldeThCommands(message);
}
});
// Require and executed Russia command
client.on("message", async (message) => {
if (message.body.startsWith(".rus")) {
const handleRussiaCommands = require(path.join(
__dirname,
"commands",
"speach",
"russia.js"
));
await handleRussiaCommands(message);
}
});
// ---------------- END TEXT TO SPEACH TOOLS ---------------------- //
// ---------------- DOWNLOADER TOOLS ---------------------- //
// Require and execute ytmp3 command
client.on("message", async (message) => {
if (message.body.startsWith(".ytmp3")) {
const handleYtmp3Command = require(path.join(
__dirname,
"commands",
"downloads",
"ytmp3.js"
));
await handleYtmp3Command(message);
}
});
// Require and execute ytmp4 command
client.on("message", async (message) => {
if (message.body.startsWith(".ytmp4")) {
const handleYtmp4Command = require(path.join(
__dirname,
"commands",
"downloads",
"ytmp4.js"
));
await handleYtmp4Command(message);
}
});
// Require and execute Facebook command
client.on("message", async (message) => {
if (message.body.startsWith(".fbdown")) {
const handleFacebookCommand = require(path.join(
__dirname,
"commands",
"downloads",
"fbdown.js"
));
await handleFacebookCommand(message);
}
});
// Require and execute TikTok command
client.on("message", async (message) => {
if (message.body.startsWith(".tiktok")) {
const handleTikTokCommand = require(path.join(
__dirname,
"commands",
"downloads",
"tiktok.js"
));
await handleTikTokCommand(message);
}
});
// Require and execute Reels command
client.on("message", async (message) => {
if (message.body.startsWith(".reelsdown")) {
const handleReelsIgCommand = require(path.join(
__dirname,
"commands",
"downloads",
"ig.js"
));
await handleReelsIgCommand(message);
}
});
// Require and execute Twitter command
client.on("message", async (message) => {
if (message.body.startsWith(".twitter")) {
const handleTwtCommands = require(path.join(
__dirname,
"commands",
"downloads",
"twt.js"
));
await handleTwtCommands(message);
}
});
// Require and execute MediaFire command
client.on("message", async (message) => {
if (message.body.startsWith(".mediafire")) {
const handleMediafireCommands = require(path.join(
__dirname,
"commands",
"downloads",
"mediafire.js"
));
await handleMediafireCommands(message);
}
});
// Require and execute SoundCloud command
client.on("message", async (message) => {
if (message.body.startsWith(".soundcld")) {
const handleSoundCommands = require(path.join(
__dirname,
"commands",
"downloads",
"snd.js"
));
await handleSoundCommands(message);
}
});
// ---------------- END DOWNLOADER TOOLS ---------------------- //
// ---------------- STALKER TOOLS ---------------------- //
// Require and execute IgStalk command
client.on("message", async (message) => {
if (message.body.startsWith(".igstalk")) {
const handleIgStalkCommands = require(path.join(
__dirname,
"commands",
"stalk",
"igstalk.js"
));
await handleIgStalkCommands(message);
}
});
// Require and execute TiktokStalk command
client.on("message", async (message) => {
if (message.body.startsWith(".tikstalk")) {
const handleGitCommands = require(path.join(
__dirname,
"commands",
"stalk",
"tikstalk.js"
));
await handleGitCommands(message);
}
});
// Require and execute GithubStalk command
client.on("message", async (message) => {
if (message.body.startsWith(".gitstalk")) {
const handleTikStalkCommands = require(path.join(
__dirname,
"commands",
"stalk",
"git.js"
));
await handleTikStalkCommands(message);
}
});
// ---------------- END STALKER TOOLS ---------------------- //
// ---------------- SHORT URL TOOLS ---------------------- //
// Require and execute Bitly command
client.on("message", async (message) => {
if (message.body.startsWith(".bitly")) {
const handleBitCommands = require(path.join(
__dirname,
"commands",
"short",
"bit.js"
));
await handleBitCommands(message);
}
});
// Require and execute cutly command
client.on("message", async (message) => {
if (message.body.startsWith(".cutly")) {
const handleCutlyCommands = require(path.join(
__dirname,
"commands",
"short",
"cutly.js"
));
await handleCutlyCommands(message);
}
});
// Require and execute tinur command
client.on("message", async (message) => {
if (message.body.startsWith(".tinurl")) {
const handleTinCommands = require(path.join(
__dirname,
"commands",
"short",
"tinny.js"
));
await handleTinCommands(message);
}
});
// Require and execute short command
client.on("message", async (message) => {
if (message.body.startsWith(".shrt")) {
const handleShortCommands = require(path.join(
__dirname,
"commands",
"short",
"shrt.js"
));
await handleShortCommands(message);
}
});
// ---------------- END SHORT URL TOOLS ---------------------- //
// ----------------- GENERATOR TOOLS -------------------------- //
// Require and execute Qr command
client.on("message", async (message) => {
if (message.body.startsWith(".qrcode")) {
const handleQrCommands = require(path.join(
__dirname,
"commands",
"generator",
"qr.js"
));
await handleQrCommands(message);
}
});
// Require and execute BrainFuck command
client.on("message", async (message) => {
if (message.body.startsWith(".brain")) {
const handleBrainCommands = require(path.join(
__dirname,
"commands",
"generator",
"brain.js"
));
await handleBrainCommands(message);
}
});
// Require and execute Hash command
client.on("message", async (message) => {
if (message.body.startsWith(".hashgen")) {
const handleHashCommands = require(path.join(
__dirname,
"commands",
"generator",
"hash.js"
));
await handleHashCommands(message);
}
});
// Require and executed FakeData command
client.on("message", async (message) => {
if (message.body.startsWith(".fakedata")) {
const handleFakeCommands = require(path.join(
__dirname,
"commands",
"others",
"fakedata.js"
));
await handleFakeCommands(message);
}
});
// Require and executed FakeData command
client.on("message", async (message) => {
if (message.body.startsWith(".jacking")) {
const handleJackingCommands = require(path.join(
__dirname,
"commands",
"others",
"jacking.js"
));
await handleJackingCommands(message);
}
});
// Require and executed FakeData command
client.on("message", async (message) => {
if (message.body.startsWith(".whois")) {
const handleWhoCommands = require(path.join(
__dirname,
"commands",
"others",
"whois.js"
));
await handleWhoCommands(message);
}
});
// ---------------- END GENERATOR TOOLS ---------------------- //
// ---------------- HACKING TOOLS ---------------------------- //
// Require and execute Cms command
client.on("message", async (message) => {
if (message.body.startsWith(".scancms")) {
const handleCmsCommands = require(path.join(
__dirname,
"commands",
"hacking",
"cms.js"
));
await handleCmsCommands(message);
}
});
// Require and execute ReverseIP command
client.on("message", async (message) => {
if (message.body.startsWith(".revip")) {
const handleRevIpCommands = require(path.join(
__dirname,
"commands",
"hacking",
"revip.js"
));
await handleRevIpCommands(message);
}
});
// ---------------- END HACKING TOOLS ---------------------------- //
// ---------------- EWALLET TOOLS ---------------------------- //
// Require and execute Ovo command
client.on("message", async (message) => {
if (message.body.startsWith(".revip")) {
const handleOvoCommands = require(path.join(
__dirname,
"commands",
"wallet",
"ovo.js"
));
await handleOvoCommands(message);
}
});
// Require and execute Gopay command
client.on("message", async (message) => {
if (message.body.startsWith(".gopay")) {
const hanldeGopayCommands = require(path.join(
__dirname,
"commands",
"wallet",
"gopay.js"
));
await hanldeGopayCommands(message);
}
});
// Require and execute LinkAja command
client.on("message", async (message) => {
if (message.body.startsWith(".linkaja")) {
const handleLinkCommands = require(path.join(
__dirname,
"commands",
"wallet",
"link.js"
));
await handleLinkCommands(message);
}
});
// Require and execute ShopeePay command
client.on("message", async (message) => {
if (message.body.startsWith(".spay")) {
const handleShopeeCommands = require(path.join(
__dirname,
"commands",
"wallet",
"spay.js"
));
await handleShopeeCommands(message);
}
});
// ---------------- END EWALLET TOOLS ---------------------------- //
// ---------------- STICKER TOOLS ---------------------- //
// Commands execute Sticker
const prefix = ".";
client.on('message', async msg => {
if (msg.body[0] == prefix){
var [cmd, ...args] = msg.body.slice(1).split(" ");
args = args.join(" ");
if (cmd == "say"){
client.sendMessage(msg.from, args);
}
if (cmd === "s") {
const attachmentData = await msg.downloadMedia();
client.sendMessage(msg.from, attachmentData, {sendMediaAsSticker: true});
}
if (cmd === "s2") {
const attachmentData = await msg.downloadMedia();
client.sendMessage(msg.from, attachmentData, {sendVideoAsGif: true});
}
if (cmd == "gambar"){
const media = MessageMedia.fromFilePath('./path/to/anime-cry.gif');
client.sendMessage(msg.from, media);
}
if (cmd == "video"){
const media = MessageMedia.fromFilePath('./path/to/anime-cry.mp4');
client.sendMessage(msg.from, media, {sendVideoAsGif: true});
}
if (cmd == "link"){
const media = await MessageMedia.fromUrl('https://via.placeholder.com/350x150.png');
client.sendMessage(msg.from, media, {sendMediaAsSticker: true});
}
if (cmd == "link2"){
const media = await MessageMedia.fromUrl(args);
client.sendMessage(msg.from, media, {sendMediaAsSticker: true});
}
}
});
// ---------------- END STICKER TOOLS ---------------------- //
client.on("disconnected", (reason) => {
console.log("disconnected whatsapp-bot", reason);
});
client.initialize();