API-XX commited on
Commit
1badc8c
Β·
verified Β·
1 Parent(s): 1f3accf

Upload case.js

Browse files
Files changed (1) hide show
  1. case.js +27 -3
case.js CHANGED
@@ -3056,9 +3056,8 @@ case 'play':
3056
  }
3057
  break
3058
  case 'waifu': {
3059
- if (!isGroup) return reply(mess.only.group)
3060
- if (!isAntiNsfw) return reply(mess.nsfw)
3061
- await loading();
3062
  let query = q ? encodeURIComponent(q) : 'pussy';
3063
  let apiUrl = `https://api-xx-xi.hf.space/api/waifu?q=${query}`;
3064
 
@@ -3084,7 +3083,32 @@ case 'waifu': {
3084
  break;
3085
  }
3086
 
 
 
 
 
3087
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3088
 
3089
 
3090
 
 
3056
  }
3057
  break
3058
  case 'waifu': {
3059
+ if (isGroup && !isAntiNsfw) return reply(mess.nsfw);
3060
+ await loading();
 
3061
  let query = q ? encodeURIComponent(q) : 'pussy';
3062
  let apiUrl = `https://api-xx-xi.hf.space/api/waifu?q=${query}`;
3063
 
 
3083
  break;
3084
  }
3085
 
3086
+ case 'hentai': {
3087
+ if (isGroup && !isAntiNsfw) return reply(mess.nsfw);
3088
+ await loading();
3089
+ let apiUrl = `https://api-xx-xi.hf.space/api/hentai`;
3090
 
3091
+ try {
3092
+ let response = await fetch(apiUrl);
3093
+ let json = await response.json();
3094
+
3095
+ if (!json.success || !json.videoUrl) {
3096
+ return conn.sendMessage(m.chat, { text: fontx(`❌ No hentai content found. Try again later!`) });
3097
+ }
3098
+
3099
+ await conn.sendMessage(m.chat, {
3100
+ video: { url: json.videoUrl },
3101
+ mimetype: "video/mp4",
3102
+ fileName: `${json.title}.mp4`,
3103
+ caption: fontx(`πŸ”ž *${json.title}*`)
3104
+ }, { quoted: m });
3105
+
3106
+ } catch (error) {
3107
+ console.error("Error fetching hentai content:", error);
3108
+ conn.sendMessage(m.chat, { text: fontx("❌ An error occurred while fetching the hentai video.") });
3109
+ }
3110
+ break;
3111
+ }
3112
 
3113
 
3114