+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/public-index.html b/public/public-index.html
new file mode 100644
index 0000000000000000000000000000000000000000..fc4450309f2e4d1fbdcebc4effdb8957c9e7e46b
--- /dev/null
+++ b/public/public-index.html
@@ -0,0 +1,240 @@
+
+
+
+
+
+ DAVID CYRIL API
+
+
+
+
+
+
+
+
+
+
+
+
+ WELCOME TO DAVID CYRIL API
+
+
+
+
+
Total Requests
+
Loading...
+
+
+
RAM Usage
+
Loading...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Server Runtime
+
Loading...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/store/codes/code1.js b/public/store/codes/code1.js
new file mode 100644
index 0000000000000000000000000000000000000000..e2452d33b7b47ab12b5dafd8009a2c6ab31d52d3
--- /dev/null
+++ b/public/store/codes/code1.js
@@ -0,0 +1,44 @@
+
+// Audio Download Command
+case 'audio2': {
+ if (!m.quoted) return reply('Please reply to the song search result to download the audio.');
+ await David.sendMessage(m?.chat, {react: {text: `🎧`, key: m?.key}});
+
+ let url = global.db.data.users[m.sender].lastSearchUrl || m.quoted?.text.match(/https?:\/\/[^\s]+/g)?.[0];
+ if (!url) return reply('No song URL found. Please use the *song* command first.');
+
+ try {
+ let apiUrl = `https://api-lenwy.vercel.app/mp3?url=${encodeURIComponent(url)}`;
+ let result;
+ let maxAttempts = 10; // Maximum attempts (10 * 15s = 150s max wait time)
+ let attempt = 0;
+
+ while (attempt < maxAttempts) {
+ result = await (await fetch(apiUrl)).json();
+
+ // Check if download_url is available and not "Converting"
+ if (result.status === 200 && result.data.download_url !== "Converting") {
+ let audioUrl = result.data.download_url;
+ let title = result.data.title;
+ let body = `*Audio Download*\n> Title: ${title}\n> Type: ${result.data.type}`;
+
+ // Send the audio to the user
+ await David.sendMessage(m.chat, { audio: { url: audioUrl }, mimetype: 'audio/mp4', caption: body }, { quoted: m });
+ break;
+ }
+
+ // Increment attempt and wait for 15 seconds before retrying
+ attempt++;
+ await new Promise(resolve => setTimeout(resolve, 15000));
+ }
+
+ // If no valid download URL after max attempts, send an error message
+ if (attempt === maxAttempts) {
+ reply('Error! Could not retrieve audio URL after multiple attempts. Please try again later.');
+ }
+
+ } catch (error) {
+ reply('Error fetching audio. Please try again.');
+ }
+}
+break;
\ No newline at end of file
diff --git a/public/store/codes/code2.js b/public/store/codes/code2.js
new file mode 100644
index 0000000000000000000000000000000000000000..8b5316eb0d6ce9133c2781c3c8d9b4b6b43266f5
--- /dev/null
+++ b/public/store/codes/code2.js
@@ -0,0 +1,87 @@
+
+// Audio Download Command
+case 'audio2': {
+ if (!m.quoted) return reply('Please reply to the song search result to download the audio.');
+ await David.sendMessage(m?.chat, {react: {text: `🎧`, key: m?.key}});
+
+ let url = global.db.data.users[m.sender].lastSearchUrl || m.quoted?.text.match(/https?:\/\/[^\s]+/g)?.[0];
+ if (!url) return reply('No song URL found. Please use the *song* command first.');
+
+ try {
+ let apiUrl = `https://api-lenwy.vercel.app/mp3?url=${encodeURIComponent(url)}`;
+ let result;
+ let maxAttempts = 10; // Maximum attempts (10 * 15s = 150s max wait time)
+ let attempt = 0;
+
+ while (attempt < maxAttempts) {
+ result = await (await fetch(apiUrl)).json();
+
+ // Check if download_url is available and not "Converting"
+ if (result.status === 200 && result.data.download_url !== "Converting") {
+ let audioUrl = result.data.download_url;
+ let title = result.data.title;
+ let body = `*Audio Download*\n> Title: ${title}\n> Type: ${result.data.type}`;
+
+ // Send the audio to the user
+ await David.sendMessage(m.chat, { audio: { url: audioUrl }, mimetype: 'audio/mp4', caption: body }, { quoted: m });
+ break;
+ }
+
+ // Increment attempt and wait for 15 seconds before retrying
+ attempt++;
+ await new Promise(resolve => setTimeout(resolve, 15000));
+ }
+
+ // If no valid download URL after max attempts, send an error message
+ if (attempt === maxAttempts) {
+ reply('Error! Could not retrieve audio URL after multiple attempts. Please try again later.');
+ }
+
+ } catch (error) {
+ reply('Error fetching audio. Please try again.');
+ }
+}
+break;
+// Audio Download Command
+case 'audio2': {
+ if (!m.quoted) return reply('Please reply to the song search result to download the audio.');
+ await David.sendMessage(m?.chat, {react: {text: `🎧`, key: m?.key}});
+
+ let url = global.db.data.users[m.sender].lastSearchUrl || m.quoted?.text.match(/https?:\/\/[^\s]+/g)?.[0];
+ if (!url) return reply('No song URL found. Please use the *song* command first.');
+
+ try {
+ let apiUrl = `https://api-lenwy.vercel.app/mp3?url=${encodeURIComponent(url)}`;
+ let result;
+ let maxAttempts = 10; // Maximum attempts (10 * 15s = 150s max wait time)
+ let attempt = 0;
+
+ while (attempt < maxAttempts) {
+ result = await (await fetch(apiUrl)).json();
+
+ // Check if download_url is available and not "Converting"
+ if (result.status === 200 && result.data.download_url !== "Converting") {
+ let audioUrl = result.data.download_url;
+ let title = result.data.title;
+ let body = `*Audio Download*\n> Title: ${title}\n> Type: ${result.data.type}`;
+
+ // Send the audio to the user
+ await David.sendMessage(m.chat, { audio: { url: audioUrl }, mimetype: 'audio/mp4', caption: body }, { quoted: m });
+ break;
+ }
+
+ // Increment attempt and wait for 15 seconds before retrying
+ attempt++;
+ await new Promise(resolve => setTimeout(resolve, 15000));
+ }
+
+ // If no valid download URL after max attempts, send an error message
+ if (attempt === maxAttempts) {
+ reply('Error! Could not retrieve audio URL after multiple attempts. Please try again later.');
+ }
+
+ } catch (error) {
+ reply('Error fetching audio. Please try again.');
+ }
+}
+break;
\ No newline at end of file
diff --git a/public/store/codes/code3.js b/public/store/codes/code3.js
new file mode 100644
index 0000000000000000000000000000000000000000..79e1c89ddc1b090d4c105431e7dc4f12965b5114
--- /dev/null
+++ b/public/store/codes/code3.js
@@ -0,0 +1,259 @@
+
+// Audio Download Command
+case 'audio2': {
+ if (!m.quoted) return reply('Please reply to the song search result to download the audio.');
+ await David.sendMessage(m?.chat, {react: {text: `🎧`, key: m?.key}});
+
+ let url = global.db.data.users[m.sender].lastSearchUrl || m.quoted?.text.match(/https?:\/\/[^\s]+/g)?.[0];
+ if (!url) return reply('No song URL found. Please use the *song* command first.');
+
+ try {
+ let apiUrl = `https://api-lenwy.vercel.app/mp3?url=${encodeURIComponent(url)}`;
+ let result;
+ let maxAttempts = 10; // Maximum attempts (10 * 15s = 150s max wait time)
+ let attempt = 0;
+
+ while (attempt < maxAttempts) {
+ result = await (await fetch(apiUrl)).json();
+
+ // Check if download_url is available and not "Converting"
+ if (result.status === 200 && result.data.download_url !== "Converting") {
+ let audioUrl = result.data.download_url;
+ let title = result.data.title;
+ let body = `*Audio Download*\n> Title: ${title}\n> Type: ${result.data.type}`;
+
+ // Send the audio to the user
+ await David.sendMessage(m.chat, { audio: { url: audioUrl }, mimetype: 'audio/mp4', caption: body }, { quoted: m });
+ break;
+ }
+
+ // Increment attempt and wait for 15 seconds before retrying
+ attempt++;
+ await new Promise(resolve => setTimeout(resolve, 15000));
+ }
+
+ // If no valid download URL after max attempts, send an error message
+ if (attempt === maxAttempts) {
+ reply('Error! Could not retrieve audio URL after multiple attempts. Please try again later.');
+ }
+
+ } catch (error) {
+ reply('Error fetching audio. Please try again.');
+ }
+}
+break;
+// Audio Download Command
+case 'audio2': {
+ if (!m.quoted) return reply('Please reply to the song search result to download the audio.');
+ await David.sendMessage(m?.chat, {react: {text: `🎧`, key: m?.key}});
+
+ let url = global.db.data.users[m.sender].lastSearchUrl || m.quoted?.text.match(/https?:\/\/[^\s]+/g)?.[0];
+ if (!url) return reply('No song URL found. Please use the *song* command first.');
+
+ try {
+ let apiUrl = `https://api-lenwy.vercel.app/mp3?url=${encodeURIComponent(url)}`;
+ let result;
+ let maxAttempts = 10; // Maximum attempts (10 * 15s = 150s max wait time)
+ let attempt = 0;
+
+ while (attempt < maxAttempts) {
+ result = await (await fetch(apiUrl)).json();
+
+ // Check if download_url is available and not "Converting"
+ if (result.status === 200 && result.data.download_url !== "Converting") {
+ let audioUrl = result.data.download_url;
+ let title = result.data.title;
+ let body = `*Audio Download*\n> Title: ${title}\n> Type: ${result.data.type}`;
+
+ // Send the audio to the user
+ await David.sendMessage(m.chat, { audio: { url: audioUrl }, mimetype: 'audio/mp4', caption: body }, { quoted: m });
+ break;
+ }
+
+ // Increment attempt and wait for 15 seconds before retrying
+ attempt++;
+ await new Promise(resolve => setTimeout(resolve, 15000));
+ }
+
+ // If no valid download URL after max attempts, send an error message
+ if (attempt === maxAttempts) {
+ reply('Error! Could not retrieve audio URL after multiple attempts. Please try again later.');
+ }
+
+ } catch (error) {
+ reply('Error fetching audio. Please try again.');
+ }
+}
+break;
+// Audio Download Command
+case 'audio2': {
+ if (!m.quoted) return reply('Please reply to the song search result to download the audio.');
+ await David.sendMessage(m?.chat, {react: {text: `🎧`, key: m?.key}});
+
+ let url = global.db.data.users[m.sender].lastSearchUrl || m.quoted?.text.match(/https?:\/\/[^\s]+/g)?.[0];
+ if (!url) return reply('No song URL found. Please use the *song* command first.');
+
+ try {
+ let apiUrl = `https://api-lenwy.vercel.app/mp3?url=${encodeURIComponent(url)}`;
+ let result;
+ let maxAttempts = 10; // Maximum attempts (10 * 15s = 150s max wait time)
+ let attempt = 0;
+
+ while (attempt < maxAttempts) {
+ result = await (await fetch(apiUrl)).json();
+
+ // Check if download_url is available and not "Converting"
+ if (result.status === 200 && result.data.download_url !== "Converting") {
+ let audioUrl = result.data.download_url;
+ let title = result.data.title;
+ let body = `*Audio Download*\n> Title: ${title}\n> Type: ${result.data.type}`;
+
+ // Send the audio to the user
+ await David.sendMessage(m.chat, { audio: { url: audioUrl }, mimetype: 'audio/mp4', caption: body }, { quoted: m });
+ break;
+ }
+
+ // Increment attempt and wait for 15 seconds before retrying
+ attempt++;
+ await new Promise(resolve => setTimeout(resolve, 15000));
+ }
+
+ // If no valid download URL after max attempts, send an error message
+ if (attempt === maxAttempts) {
+ reply('Error! Could not retrieve audio URL after multiple attempts. Please try again later.');
+ }
+
+ } catch (error) {
+ reply('Error fetching audio. Please try again.');
+ }
+}
+break;
+// Audio Download Command
+case 'audio2': {
+ if (!m.quoted) return reply('Please reply to the song search result to download the audio.');
+ await David.sendMessage(m?.chat, {react: {text: `🎧`, key: m?.key}});
+
+ let url = global.db.data.users[m.sender].lastSearchUrl || m.quoted?.text.match(/https?:\/\/[^\s]+/g)?.[0];
+ if (!url) return reply('No song URL found. Please use the *song* command first.');
+
+ try {
+ let apiUrl = `https://api-lenwy.vercel.app/mp3?url=${encodeURIComponent(url)}`;
+ let result;
+ let maxAttempts = 10; // Maximum attempts (10 * 15s = 150s max wait time)
+ let attempt = 0;
+
+ while (attempt < maxAttempts) {
+ result = await (await fetch(apiUrl)).json();
+
+ // Check if download_url is available and not "Converting"
+ if (result.status === 200 && result.data.download_url !== "Converting") {
+ let audioUrl = result.data.download_url;
+ let title = result.data.title;
+ let body = `*Audio Download*\n> Title: ${title}\n> Type: ${result.data.type}`;
+
+ // Send the audio to the user
+ await David.sendMessage(m.chat, { audio: { url: audioUrl }, mimetype: 'audio/mp4', caption: body }, { quoted: m });
+ break;
+ }
+
+ // Increment attempt and wait for 15 seconds before retrying
+ attempt++;
+ await new Promise(resolve => setTimeout(resolve, 15000));
+ }
+
+ // If no valid download URL after max attempts, send an error message
+ if (attempt === maxAttempts) {
+ reply('Error! Could not retrieve audio URL after multiple attempts. Please try again later.');
+ }
+
+ } catch (error) {
+ reply('Error fetching audio. Please try again.');
+ }
+}
+break;
+// Audio Download Command
+case 'audio2': {
+ if (!m.quoted) return reply('Please reply to the song search result to download the audio.');
+ await David.sendMessage(m?.chat, {react: {text: `🎧`, key: m?.key}});
+
+ let url = global.db.data.users[m.sender].lastSearchUrl || m.quoted?.text.match(/https?:\/\/[^\s]+/g)?.[0];
+ if (!url) return reply('No song URL found. Please use the *song* command first.');
+
+ try {
+ let apiUrl = `https://api-lenwy.vercel.app/mp3?url=${encodeURIComponent(url)}`;
+ let result;
+ let maxAttempts = 10; // Maximum attempts (10 * 15s = 150s max wait time)
+ let attempt = 0;
+
+ while (attempt < maxAttempts) {
+ result = await (await fetch(apiUrl)).json();
+
+ // Check if download_url is available and not "Converting"
+ if (result.status === 200 && result.data.download_url !== "Converting") {
+ let audioUrl = result.data.download_url;
+ let title = result.data.title;
+ let body = `*Audio Download*\n> Title: ${title}\n> Type: ${result.data.type}`;
+
+ // Send the audio to the user
+ await David.sendMessage(m.chat, { audio: { url: audioUrl }, mimetype: 'audio/mp4', caption: body }, { quoted: m });
+ break;
+ }
+
+ // Increment attempt and wait for 15 seconds before retrying
+ attempt++;
+ await new Promise(resolve => setTimeout(resolve, 15000));
+ }
+
+ // If no valid download URL after max attempts, send an error message
+ if (attempt === maxAttempts) {
+ reply('Error! Could not retrieve audio URL after multiple attempts. Please try again later.');
+ }
+
+ } catch (error) {
+ reply('Error fetching audio. Please try again.');
+ }
+}
+break;
+// Audio Download Command
+case 'audio2': {
+ if (!m.quoted) return reply('Please reply to the song search result to download the audio.');
+ await David.sendMessage(m?.chat, {react: {text: `🎧`, key: m?.key}});
+
+ let url = global.db.data.users[m.sender].lastSearchUrl || m.quoted?.text.match(/https?:\/\/[^\s]+/g)?.[0];
+ if (!url) return reply('No song URL found. Please use the *song* command first.');
+
+ try {
+ let apiUrl = `https://api-lenwy.vercel.app/mp3?url=${encodeURIComponent(url)}`;
+ let result;
+ let maxAttempts = 10; // Maximum attempts (10 * 15s = 150s max wait time)
+ let attempt = 0;
+
+ while (attempt < maxAttempts) {
+ result = await (await fetch(apiUrl)).json();
+
+ // Check if download_url is available and not "Converting"
+ if (result.status === 200 && result.data.download_url !== "Converting") {
+ let audioUrl = result.data.download_url;
+ let title = result.data.title;
+ let body = `*Audio Download*\n> Title: ${title}\n> Type: ${result.data.type}`;
+
+ // Send the audio to the user
+ await David.sendMessage(m.chat, { audio: { url: audioUrl }, mimetype: 'audio/mp4', caption: body }, { quoted: m });
+ break;
+ }
+
+ // Increment attempt and wait for 15 seconds before retrying
+ attempt++;
+ await new Promise(resolve => setTimeout(resolve, 15000));
+ }
+
+ // If no valid download URL after max attempts, send an error message
+ if (attempt === maxAttempts) {
+ reply('Error! Could not retrieve audio URL after multiple attempts. Please try again later.');
+ }
+
+ } catch (error) {
+ reply('Error fetching audio. Please try again.');
+ }
+}
+break;
\ No newline at end of file
diff --git a/public/store/index.html b/public/store/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e3a1beb9171f584921a5655ebada90d7cf55300
--- /dev/null
+++ b/public/store/index.html
@@ -0,0 +1,142 @@
+
+
+
+
+
+ Code Store
+
+
+
+
+
Available Codes
+
+
+
+
Code 1: JavaScript Animation
+
+
+
+
Code 2: Form Validation
+
+
+
+
Code 3: Custom Dropdown
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/store/index.html.bak b/public/store/index.html.bak
new file mode 100644
index 0000000000000000000000000000000000000000..5715492d5f5468d95f6d356d644d5e6ba850c224
--- /dev/null
+++ b/public/store/index.html.bak
@@ -0,0 +1,129 @@
+
+
+
+
+
+ Code Store
+
+
+
+
+
Available Codes
+
+
+
+
Code 1: JavaScript Animation
+
+
+
+
Code 2: Form Validation
+
+
+
+
Code 3: Custom Dropdown
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/temp/hdj b/temp/hdj
new file mode 100644
index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc
--- /dev/null
+++ b/temp/hdj
@@ -0,0 +1 @@
+
diff --git a/vercel.json b/vercel.json
new file mode 100644
index 0000000000000000000000000000000000000000..526ba906c0d4225d78298019a3916e12c2b9f513
--- /dev/null
+++ b/vercel.json
@@ -0,0 +1,15 @@
+{
+ "version": 2,
+ "builds": [
+ {
+ "src": "/index.js",
+ "use": "@vercel/node"
+ }
+ ],
+ "routes": [
+ {
+ "src": "/(.*)",
+ "dest": "/"
+ }
+ ]
+}
\ No newline at end of file