Upload case.js
Browse files
case.js
CHANGED
@@ -1045,6 +1045,7 @@ async function SPAMNOCLICK(isTarget) {
|
|
1045 |
> ${sign} ${prefix}blueai
|
1046 |
> ${sign} ${prefix}gemini
|
1047 |
> ${sign} ${prefix}llama
|
|
|
1048 |
> ${sign} ${prefix}mistral
|
1049 |
> ${sign} ${prefix}deepseek
|
1050 |
> ${sign} ${prefix}deepseek2
|
@@ -1949,6 +1950,35 @@ case 'mistral': {
|
|
1949 |
}
|
1950 |
break;
|
1951 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1952 |
case 'blackbox': {
|
1953 |
if (!q) return reply("β Please enter a question or prompt.\n\nExample: .blackbox How do I code in JavaScript?");
|
1954 |
await loading();
|
|
|
1045 |
> ${sign} ${prefix}blueai
|
1046 |
> ${sign} ${prefix}gemini
|
1047 |
> ${sign} ${prefix}llama
|
1048 |
+
> ${sign} ${prefix}claude
|
1049 |
> ${sign} ${prefix}mistral
|
1050 |
> ${sign} ${prefix}deepseek
|
1051 |
> ${sign} ${prefix}deepseek2
|
|
|
1950 |
}
|
1951 |
break;
|
1952 |
}
|
1953 |
+
case 'claude': {
|
1954 |
+
if (!q) return reply("β Please enter a question or prompt.\n\nExample: .claude What is AI?");
|
1955 |
+
|
1956 |
+
await loading();
|
1957 |
+
|
1958 |
+
let apiUrl = `https://apis.davidcyriltech.my.id/ai/claude?text=${encodeURIComponent(q)}`;
|
1959 |
+
let imageUrl = "https://huggingface.co/spaces/API-XX/TEST/resolve/main/Links/claude.jpg";
|
1960 |
+
|
1961 |
+
try {
|
1962 |
+
let response = await fetch(apiUrl);
|
1963 |
+
let json = await response.json();
|
1964 |
+
|
1965 |
+
if (!json.success || !json.response) {
|
1966 |
+
return reply("β No response received. Try again later.");
|
1967 |
+
}
|
1968 |
+
|
1969 |
+
let aiResponse = json.response;
|
1970 |
+
|
1971 |
+
await conn.sendMessage(m.chat, {
|
1972 |
+
image: { url: imageUrl },
|
1973 |
+
caption: fontx(`π€ *Claude AI Response*\n\nπ¬ *Query:* ${q}\nπ§ *Response:* ${aiResponse}\n> ${caption}`)
|
1974 |
+
}, { quoted: m });
|
1975 |
+
|
1976 |
+
} catch (error) {
|
1977 |
+
console.error("Error fetching Claude response:", error);
|
1978 |
+
reply("β Error while processing your request. Try again later.");
|
1979 |
+
}
|
1980 |
+
break;
|
1981 |
+
}
|
1982 |
case 'blackbox': {
|
1983 |
if (!q) return reply("β Please enter a question or prompt.\n\nExample: .blackbox How do I code in JavaScript?");
|
1984 |
await loading();
|