forked from Supositware/Haha-Yes
Delete the original message
This commit is contained in:
parent
4a57d208fa
commit
fbcd6855b4
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ module.exports = class downloadCommand extends Command {
|
|||
let video = youtubedl(link, [`--username=${fbuser}`,`--password=${fbpasswd}`])
|
||||
video.pipe(fs.createWriteStream('video.mp4'))
|
||||
video.on('end', function() {
|
||||
message.delete();
|
||||
message.delete();
|
||||
message.channel.bulkDelete(2);
|
||||
|
||||
message.channel.send({files: ["./video.mp4"]})
|
||||
.catch(error => message.say('An error has occured, the file might be too big or i cant download the link you provided'))
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue