Created
December 29, 2025 04:22
-
-
Save ONLym22/92cc428ee4d63fabdf97c82bd8bb290f to your computer and use it in GitHub Desktop.
ONLym BOT Gist Uploaded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case "spotify": | |
| case "spdl": | |
| case "spotifydl": | |
| case "spotifydownload": | |
| { | |
| if (!text) return xreply(`Contoh: ${p_c}${command} https://open.spotify.com/track/...`); | |
| if (!text.includes("open.spotify.com")) return xreply("❌ Harus berupa link Spotify!"); | |
| xreact(); | |
| try { | |
| const anu = await fetchJson(`https://onlym.my.id/download/spotify?url=${Enc(text)}&apikey=${global.onlym}`); | |
| if (!anu.status || !anu.result) return m.reply("❌ Gagal mengambil audio Spotify"); | |
| const r = anu.result; | |
| await vellia.sendMessage( | |
| m.chat, | |
| { | |
| audio: { url: r.downloadUrl }, | |
| mimetype: "audio/mpeg", | |
| fileName: `${r.title}.mp3`, | |
| ptt: false, | |
| contextInfo: { | |
| externalAdReply: { | |
| title: r.title, | |
| body: `Artist: ${r.artist} • Duration: ${r.duration}`, | |
| mediaType: 1, | |
| renderLargerThumbnail: true, | |
| thumbnailUrl: r.thumbnail, | |
| sourceUrl: text, | |
| }, | |
| }, | |
| }, | |
| { quoted: qkontak }, | |
| ); | |
| } catch (err) { | |
| xreply(`⚠️ Terjadi kesalahan pada server.`); | |
| } | |
| } | |
| break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment