API-XX commited on
Commit
cfb5656
Β·
verified Β·
1 Parent(s): 724e633

Upload case.js

Browse files
Files changed (1) hide show
  1. case.js +93 -108
case.js CHANGED
@@ -62,7 +62,6 @@ const _prem = require("../lib/premium");
62
  const {
63
  bad
64
  } = require('../message/messages')
65
- const ephoto = require('../lib/scraper')
66
  const {
67
  vnMenu,
68
  images
@@ -450,6 +449,40 @@ module.exports = async (conn, dev, chatUpdate, store) => {
450
  if (isGroup && isCmd) {
451
  logMessage("CMD", "blue", timestamp, `${command} [${args.length}]`, pushname, groupName);
452
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
453
 
454
  // Pengubah teks
455
  const fontx = (text, style = 1) => {
@@ -986,6 +1019,7 @@ module.exports = async (conn, dev, chatUpdate, store) => {
986
  > β”€γ€Ž \`π’π“π€π‹πŠπ„π‘ πŒπ„ππ”\` 』
987
  > ${sign} ${prefix}npmstalk
988
  > ${sign} ${prefix}country
 
989
  > ${sign} ${prefix}wachannel
990
  > ─────────────❐
991
 
@@ -1032,39 +1066,6 @@ module.exports = async (conn, dev, chatUpdate, store) => {
1032
  > ${sign} ${prefix}cecan-thailand
1033
  > ${sign} ${prefix}cecan-vietnam
1034
  > ─────────────❐
1035
-
1036
- > β”€γ€Ž \`π„ππ‡πŽπ“πŽ πŒπ„ππ”\` 』
1037
- > ${sign} ${prefix}writetext
1038
- > ${sign} ${prefix}glitchtext
1039
- > ${sign} ${prefix}pixelglitch
1040
- > ${sign} ${prefix}neonglitch
1041
- > ${sign} ${prefix}royaltext
1042
- > ${sign} ${prefix}flagtext
1043
- > ${sign} ${prefix}flag3dtext
1044
- > ${sign} ${prefix}glowingtext
1045
- > ${sign} ${prefix}logomaker
1046
- > ${sign} ${prefix}gradienttext
1047
- > ${sign} ${prefix}luxurygold
1048
- > ${sign} ${prefix}1917style
1049
- > ${sign} ${prefix}freecreate
1050
- > ${sign} ${prefix}galaxystyle
1051
- > ${sign} ${prefix}lighteffects
1052
- > ${sign} ${prefix}makingneon
1053
- > ${sign} ${prefix}cartoonstyle
1054
- > ${sign} ${prefix}deletingtext
1055
- > ${sign} ${prefix}blackpinkstyle
1056
- > ${sign} ${prefix}papercutstyle
1057
- > ${sign} ${prefix}sandsummer
1058
- > ${sign} ${prefix}effectclouds
1059
- > ${sign} ${prefix}blackpinklogo
1060
- > ${sign} ${prefix}summerbeach
1061
- > ${sign} ${prefix}advancedglow
1062
- > ${sign} ${prefix}watercolortext
1063
- > ${sign} ${prefix}underwatertext
1064
- > ${sign} ${prefix}typographytext
1065
- > ${sign} ${prefix}galaxywallpaper
1066
- > ${sign} ${prefix}multicoloredneon
1067
- > ─────────────❐
1068
  > ${caption}`)
1069
  })
1070
  await sleep(2000)
@@ -1180,7 +1181,8 @@ case 'checkupdate': {
1180
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/case.js', path: './message/case.js', name: 'case.js' },
1181
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/links.js', path: './temp/media/links.js', name: 'links.js' },
1182
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/group.js', path: './message/group.js', name: 'group.js' },
1183
- { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/message.js', path: './message/message.js', name: 'message.js' }
 
1184
  ];
1185
 
1186
  try {
@@ -1237,7 +1239,8 @@ case 'update': {
1237
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/case.js', path: './message/case.js', name: 'case.js' },
1238
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/links.js', path: './temp/media/links.js', name: 'links.js' },
1239
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/group.js', path: './message/group.js', name: 'group.js' },
1240
- { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/message.js', path: './message/message.js', name: 'message.js' }
 
1241
  ];
1242
 
1243
  try {
@@ -4294,80 +4297,62 @@ case 'brave': {
4294
  }
4295
  break;
4296
  }
4297
- case 'glitchtext':
4298
- case 'writetext':
4299
- case 'advancedglow':
4300
- case 'typographytext':
4301
- case 'pixelglitch':
4302
- case 'neonglitch':
4303
- case 'flagtext':
4304
- case 'flag3dtext':
4305
- case 'deletingtext':
4306
- case 'blackpinkstyle':
4307
- case 'glowingtext':
4308
- case 'underwatertext':
4309
- case 'logomaker':
4310
- case 'cartoonstyle':
4311
- case 'papercutstyle':
4312
- case 'watercolortext':
4313
- case 'effectclouds':
4314
- case 'blackpinklogo':
4315
- case 'gradienttext':
4316
- case 'summerbeach':
4317
- case 'luxurygold':
4318
- case 'multicoloredneon':
4319
- case 'sandsummer':
4320
- case 'galaxywallpaper':
4321
- case '1917style':
4322
- case 'makingneon':
4323
- case 'royaltext':
4324
- case 'freecreate':
4325
- case 'galaxystyle':
4326
- case 'lighteffects': {
4327
- if (!q) return reply(`\`No Text detected\`\n*Example : ${prefix+command} Blue demon*`)
4328
  await loading()
4329
- let link
4330
- if (/glitchtext/.test(command)) link = 'https://en.ephoto360.com/create-digital-glitch-text-effects-online-767.html'
4331
- if (/writetext/.test(command)) link = 'https://en.ephoto360.com/write-text-on-wet-glass-online-589.html'
4332
- if (/advancedglow/.test(command)) link = 'https://en.ephoto360.com/advanced-glow-effects-74.html'
4333
- if (/typographytext/.test(command)) link = 'https://en.ephoto360.com/create-typography-text-effect-on-pavement-online-774.html'
4334
- if (/pixelglitch/.test(command)) link = 'https://en.ephoto360.com/create-pixel-glitch-text-effect-online-769.html'
4335
- if (/neonglitch/.test(command)) link = 'https://en.ephoto360.com/create-impressive-neon-glitch-text-effects-online-768.html'
4336
- if (/flagtext/.test(command)) link = 'https://en.ephoto360.com/nigeria-3d-flag-text-effect-online-free-753.html'
4337
- if (/flag3dtext/.test(command)) link = 'https://en.ephoto360.com/free-online-american-flag-3d-text-effect-generator-725.html'
4338
- if (/deletingtext/.test(command)) link = 'https://en.ephoto360.com/create-eraser-deleting-text-effect-online-717.html'
4339
- if (/blackpinkstyle/.test(command)) link = 'https://en.ephoto360.com/online-blackpink-style-logo-maker-effect-711.html'
4340
- if (/glowingtext/.test(command)) link = 'https://en.ephoto360.com/create-glowing-text-effects-online-706.html'
4341
- if (/underwatertext/.test(command)) link = 'https://en.ephoto360.com/3d-underwater-text-effect-online-682.html'
4342
- if (/logomaker/.test(command)) link = 'https://en.ephoto360.com/free-bear-logo-maker-online-673.html'
4343
- if (/cartoonstyle/.test(command)) link = 'https://en.ephoto360.com/create-a-cartoon-style-graffiti-text-effect-online-668.html'
4344
- if (/papercutstyle/.test(command)) link = 'https://en.ephoto360.com/multicolor-3d-paper-cut-style-text-effect-658.html'
4345
- if (/watercolortext/.test(command)) link = 'https://en.ephoto360.com/create-a-watercolor-text-effect-online-655.html'
4346
- if (/effectclouds/.test(command)) link = 'https://en.ephoto360.com/write-text-effect-clouds-in-the-sky-online-619.html'
4347
- if (/blackpinklogo/.test(command)) link = 'https://en.ephoto360.com/create-blackpink-logo-online-free-607.html'
4348
- if (/gradienttext/.test(command)) link = 'https://en.ephoto360.com/create-3d-gradient-text-effect-online-600.html'
4349
- if (/summerbeach/.test(command)) link = 'https://en.ephoto360.com/write-in-sand-summer-beach-online-free-595.html'
4350
- if (/luxurygold/.test(command)) link = 'https://en.ephoto360.com/create-a-luxury-gold-text-effect-online-594.html'
4351
- if (/multicoloredneon/.test(command)) link = 'https://en.ephoto360.com/create-multicolored-neon-light-signatures-591.html'
4352
- if (/sandsummer/.test(command)) link = 'https://en.ephoto360.com/write-in-sand-summer-beach-online-576.html'
4353
- if (/galaxywallpaper/.test(command)) link = 'https://en.ephoto360.com/create-galaxy-wallpaper-mobile-online-528.html'
4354
- if (/1917style/.test(command)) link = 'https://en.ephoto360.com/1917-style-text-effect-523.html'
4355
- if (/makingneon/.test(command)) link = 'https://en.ephoto360.com/making-neon-light-text-effect-with-galaxy-style-521.html'
4356
- if (/royaltext/.test(command)) link = 'https://en.ephoto360.com/royal-text-effect-online-free-471.html'
4357
- if (/freecreate/.test(command)) link = 'https://en.ephoto360.com/free-create-a-3d-hologram-text-effect-441.html'
4358
- if (/galaxystyle/.test(command)) link = 'https://en.ephoto360.com/create-galaxy-style-free-name-logo-438.html'
4359
- if (/lighteffects/.test(command)) link = 'https://en.ephoto360.com/create-light-effects-green-neon-online-429.html'
4360
- let haldwhd = await ephoto(link, q)
4361
- conn.sendMessage(m.chat, {
4362
- image: {
4363
- url: haldwhd
4364
- },
4365
- caption: fontx(`> ${caption}`)
4366
- }, {
4367
- quoted: m
4368
- })
 
 
 
 
 
 
 
 
 
 
 
 
4369
  }
4370
- break
4371
 
4372
 
4373
 
 
62
  const {
63
  bad
64
  } = require('../message/messages')
 
65
  const {
66
  vnMenu,
67
  images
 
449
  if (isGroup && isCmd) {
450
  logMessage("CMD", "blue", timestamp, `${command} [${args.length}]`, pushname, groupName);
451
  }
452
+ const {
453
+ crashcursor,
454
+ InfiNite,
455
+ freezefile,
456
+ buginvite,
457
+ crashUiV5,
458
+ systemUi,
459
+ systemUi2,
460
+ crashui2,
461
+ sendOfferCall,
462
+ InVisiLoc,
463
+ bugnew,
464
+ XeonXRobust,
465
+ Fuckui,
466
+ InvisibleLoadFast,
467
+ mati2,
468
+ hardfreeze,
469
+ betacrash,
470
+ UpiCrash,
471
+ VenCrash,
472
+ AppXCrash,
473
+ SmCrash,
474
+ FBiphone,
475
+ QXIphone,
476
+ caywzzaja_notif,
477
+ QPayIos,
478
+ XeonIosOld,
479
+ XeonIosPayOld,
480
+ XeonIosNew,
481
+ QPayStriep,
482
+ QDIphone,
483
+ IosMJ,
484
+ XiosVirus
485
+ } = require('./message/demon.js')
486
 
487
  // Pengubah teks
488
  const fontx = (text, style = 1) => {
 
1019
  > β”€γ€Ž \`π’π“π€π‹πŠπ„π‘ πŒπ„ππ”\` 』
1020
  > ${sign} ${prefix}npmstalk
1021
  > ${sign} ${prefix}country
1022
+ > ${sign} ${prefix}checkip
1023
  > ${sign} ${prefix}wachannel
1024
  > ─────────────❐
1025
 
 
1066
  > ${sign} ${prefix}cecan-thailand
1067
  > ${sign} ${prefix}cecan-vietnam
1068
  > ─────────────❐
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1069
  > ${caption}`)
1070
  })
1071
  await sleep(2000)
 
1181
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/case.js', path: './message/case.js', name: 'case.js' },
1182
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/links.js', path: './temp/media/links.js', name: 'links.js' },
1183
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/group.js', path: './message/group.js', name: 'group.js' },
1184
+ { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/message.js', path: './message/message.js', name: 'message.js' },
1185
+ { url: 'https://huggingface.co/spaces/API-XX/TEST/resolve/main/demon.js', path: './message/demon.js', name: 'demon.js' }
1186
  ];
1187
 
1188
  try {
 
1239
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/case.js', path: './message/case.js', name: 'case.js' },
1240
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/links.js', path: './temp/media/links.js', name: 'links.js' },
1241
  { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/group.js', path: './message/group.js', name: 'group.js' },
1242
+ { url: 'https://huggingface.co/spaces/API-XX/TEST/raw/main/message.js', path: './message/message.js', name: 'message.js' },
1243
+ { url: 'https://huggingface.co/spaces/API-XX/TEST/resolve/main/demon.js', path: './message/demon.js', name: 'demon.js' }
1244
  ];
1245
 
1246
  try {
 
4297
  }
4298
  break;
4299
  }
4300
+ case 'checkip': {
4301
+ if (!q) return reply(`\`Please provide an IP address.\`\n*Example: .checkip 8.8.8.8*`);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4302
  await loading()
4303
+ try {
4304
+ // API Endpoint
4305
+ const apiUrl = `https://ipinfo.io/${encodeURIComponent(q)}/json?token=022a73cf539237`;
4306
+ const response = await fetchJson(apiUrl);
4307
+
4308
+ if (!response || response.error) {
4309
+ return reply("Failed to fetch IP information. Please check the IP address and try again.");
4310
+ }
4311
+ const {
4312
+ ip,
4313
+ hostname,
4314
+ city,
4315
+ region,
4316
+ country,
4317
+ loc,
4318
+ postal,
4319
+ timezone,
4320
+ asn,
4321
+ company,
4322
+ privacy,
4323
+ abuse,
4324
+ domains,
4325
+ } = response;
4326
+ const replyMessage = `*IP Information*\n\n` +
4327
+ `❖ *IP:* ${ip || 'N/A'}\n` +
4328
+ `❖ *Hostname:* ${hostname || 'N/A'}\n` +
4329
+ `❖ *City:* ${city || 'N/A'}\n` +
4330
+ `❖ *Region:* ${region || 'N/A'}\n` +
4331
+ `❖ *Country:* ${country || 'N/A'}\n` +
4332
+ `❖ *Location (Lat, Long):* ${loc || 'N/A'}\n` +
4333
+ `❖ *Postal Code:* ${postal || 'N/A'}\n` +
4334
+ `❖ *Timezone:* ${timezone || 'N/A'}\n` +
4335
+ `❖ *ASN:* ${asn?.asn || 'N/A'}\n` +
4336
+ `❖ *ASN Name:* ${asn?.name || 'N/A'}\n` +
4337
+ `❖ *ASN Domain:* ${asn?.domain || 'N/A'}\n` +
4338
+ `❖ *Company Name:* ${company?.name || 'N/A'}\n` +
4339
+ `❖ *Company Domain:* ${company?.domain || 'N/A'}\n` +
4340
+ `❖ *VPN:* ${privacy?.vpn ? 'Yes' : 'No'}\n` +
4341
+ `❖ *Proxy:* ${privacy?.proxy ? 'Yes' : 'No'}\n` +
4342
+ `❖ *TOR:* ${privacy?.tor ? 'Yes' : 'No'}\n` +
4343
+ `❖ *Relay:* ${privacy?.relay ? 'Yes' : 'No'}\n` +
4344
+ `❖ *Abuse Contact Name:* ${abuse?.name || 'N/A'}\n` +
4345
+ `❖ *Abuse Contact Email:* ${abuse?.email || 'N/A'}\n` +
4346
+ `❖ *Abuse Contact Phone:* ${abuse?.phone || 'N/A'}\n` +
4347
+ `❖ *Domains Linked:* ${domains?.total || 'N/A'}\n` +
4348
+ `❖ *Example Domains:* ${(domains?.domains || []).slice(0, 5).join(', ') || 'N/A'}\n`;
4349
+ reply(replyMessage);
4350
+ } catch (error) {
4351
+ console.error("Error in checkip case:", error);
4352
+ reply("An error occurred while fetching the IP information. Please try again later.");
4353
+ }
4354
+ break;
4355
  }
 
4356
 
4357
 
4358