|
|
@ -470,6 +470,12 @@ exports.torrent = (bot)=>
|
|
|
|
.setLabel('Remove')
|
|
|
|
.setLabel('Remove')
|
|
|
|
.setStyle(ButtonStyle.Danger),
|
|
|
|
.setStyle(ButtonStyle.Danger),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
.addComponents(
|
|
|
|
|
|
|
|
new ButtonBuilder()
|
|
|
|
|
|
|
|
.setCustomId('AproveLater'+random)
|
|
|
|
|
|
|
|
.setLabel('Aprove Later')
|
|
|
|
|
|
|
|
.setStyle(ButtonStyle.Success),
|
|
|
|
|
|
|
|
)
|
|
|
|
const filter = i => i.customId === 'Redirect'+random || i.customId === 'Remove'+random;
|
|
|
|
const filter = i => i.customId === 'Redirect'+random || i.customId === 'Remove'+random;
|
|
|
|
|
|
|
|
|
|
|
|
let message = await user.send({embeds: [embed], components: [row] });
|
|
|
|
let message = await user.send({embeds: [embed], components: [row] });
|
|
|
@ -519,7 +525,7 @@ exports.torrent = (bot)=>
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return m.message.delete();
|
|
|
|
return m.message.delete();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(m.customId === 'AproveLater'+random) return
|
|
|
|
await fetch("https://utorrent.wordfights.com/api/v2/torrents/setForceStart", {
|
|
|
|
await fetch("https://utorrent.wordfights.com/api/v2/torrents/setForceStart", {
|
|
|
|
"headers": {
|
|
|
|
"headers": {
|
|
|
|
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
|
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
|