Update lib/all.js
Browse files- lib/all.js +19 -0
lib/all.js
CHANGED
@@ -77,6 +77,24 @@ async function TelegramUseLogNotif(user_id, api_key) {
|
|
77 |
}
|
78 |
}
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
async function TelegramUseLog(user_id, api_key, text_log) {
|
81 |
const UserID = Number(user_id);
|
82 |
const options = {
|
@@ -233,4 +251,5 @@ export {
|
|
233 |
audioContent,
|
234 |
generateRandomTimestamp,
|
235 |
SendWaifuRandom,
|
|
|
236 |
};
|
|
|
77 |
}
|
78 |
}
|
79 |
|
80 |
+
async function FontStyleCheckAPI(text) {
|
81 |
+
const options = {
|
82 |
+
method: "GET",
|
83 |
+
url: "https://randydev-meta-ai.hf.space/font-check",
|
84 |
+
params: {
|
85 |
+
{ text }
|
86 |
+
}
|
87 |
+
};
|
88 |
+
|
89 |
+
try {
|
90 |
+
const response = await axios.request(options);
|
91 |
+
return response.data;
|
92 |
+
} catch (error) {
|
93 |
+
console.error("FontStyleCheckAPI log failed:", error.message);
|
94 |
+
return null;
|
95 |
+
}
|
96 |
+
}
|
97 |
+
|
98 |
async function TelegramUseLog(user_id, api_key, text_log) {
|
99 |
const UserID = Number(user_id);
|
100 |
const options = {
|
|
|
251 |
audioContent,
|
252 |
generateRandomTimestamp,
|
253 |
SendWaifuRandom,
|
254 |
+
FontStyleCheckAPI,
|
255 |
};
|