API-XX commited on
Commit
c432738
·
verified ·
1 Parent(s): 1b3bcba

Upload case.js

Browse files
Files changed (1) hide show
  1. case.js +1 -10
case.js CHANGED
@@ -3146,16 +3146,8 @@ case 'cecan-japan': {
3146
  let apiUrl = `https://api-xx-xi.hf.space/api/${command}`;
3147
 
3148
  try {
3149
- let response = await fetch(apiUrl);
3150
- if (!response.ok) throw new Error(`API responded with ${response.status}`);
3151
-
3152
- let json = await response.json();
3153
- if (!json.success || !json.image) {
3154
- return reply(`❌ No images found for *${command.replace('cecan-', '').toUpperCase()}*.`);
3155
- }
3156
-
3157
  await conn.sendMessage(m.chat, {
3158
- image: { url: json.image },
3159
  caption: `🌸 *Cecan ${command.replace('cecan-', '').toUpperCase()}*\n> ${caption}`
3160
  });
3161
 
@@ -3319,7 +3311,6 @@ case 'cecan-japan': {
3319
 
3320
 
3321
 
3322
-
3323
 
3324
 
3325
  default:
 
3146
  let apiUrl = `https://api-xx-xi.hf.space/api/${command}`;
3147
 
3148
  try {
 
 
 
 
 
 
 
 
3149
  await conn.sendMessage(m.chat, {
3150
+ image: { url: apiUrl },
3151
  caption: `🌸 *Cecan ${command.replace('cecan-', '').toUpperCase()}*\n> ${caption}`
3152
  });
3153
 
 
3311
 
3312
 
3313
 
 
3314
 
3315
 
3316
  default: