Spaces:
Sleeping
Sleeping
Update bot.js
Browse files
bot.js
CHANGED
|
@@ -66,7 +66,7 @@ client.on(Events.MessageCreate, async (message) => {
|
|
| 66 |
const sent = await message.reply({ embeds: [embed] })
|
| 67 |
|
| 68 |
try {
|
| 69 |
-
const res = await axios.get(`https://
|
| 70 |
if (res.data.success) {
|
| 71 |
const song = res.data.song
|
| 72 |
const success = new EmbedBuilder()
|
|
@@ -114,7 +114,7 @@ client.on(Events.InteractionCreate, async (interaction) => {
|
|
| 114 |
|
| 115 |
await interaction.reply({ embeds: [embed], fetchReply: true }).then(async (sent) => {
|
| 116 |
try {
|
| 117 |
-
const res = await axios.get(`https://
|
| 118 |
if (res.data.success) {
|
| 119 |
const song = res.data.song
|
| 120 |
const success = new EmbedBuilder()
|
|
|
|
| 66 |
const sent = await message.reply({ embeds: [embed] })
|
| 67 |
|
| 68 |
try {
|
| 69 |
+
const res = await axios.get(`https://ccprojects-privateapicc.hf.space/addsong?url=${encodeURIComponent(yturl)}`)
|
| 70 |
if (res.data.success) {
|
| 71 |
const song = res.data.song
|
| 72 |
const success = new EmbedBuilder()
|
|
|
|
| 114 |
|
| 115 |
await interaction.reply({ embeds: [embed], fetchReply: true }).then(async (sent) => {
|
| 116 |
try {
|
| 117 |
+
const res = await axios.get(`https://ccprojects-privateapicc.hf.space/addsong?url=${encodeURIComponent(yturl)}`)
|
| 118 |
if (res.data.success) {
|
| 119 |
const song = res.data.song
|
| 120 |
const success = new EmbedBuilder()
|