diff --git a/commands/fun/ytp.js b/commands/fun/ytp.js index e2f34808..cdf5ed0c 100644 --- a/commands/fun/ytp.js +++ b/commands/fun/ytp.js @@ -188,6 +188,7 @@ class ytpCommand extends Command { return downloader(url, options, `./asset/ytp/userVid/${message.id}.mp4`) .on('error', (err) => { loadingmsg.delete(); + if (err.includes('HTTP Error 429: Too Many Requests')) return message.channel.send('`HTTP Error 429: Too Many Requests.`\nThe website you tried to download from probably has the bot blocked, you can try again with the `--proxy` option and hope it work.'); return message.channel.send(err, { code: true }); }) .on('end', async output => {