Some nice error video
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
f02b535254
commit
e58369a785
3 changed files with 5 additions and 1 deletions
BIN
asset/ytp/error1.mp4
Normal file
BIN
asset/ytp/error1.mp4
Normal file
Binary file not shown.
BIN
asset/ytp/error2.mp4
Normal file
BIN
asset/ytp/error2.mp4
Normal file
Binary file not shown.
|
@ -250,7 +250,11 @@ class ytpCommand extends Command {
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
loadingmsg.delete();
|
loadingmsg.delete();
|
||||||
return message.reply('Oh no! An error has occured!');
|
return message.reply({files: [Math.random() < 0.5 ? './asset/ytp/error1.mp4' : './asset/ytp/error2.mp4']})
|
||||||
|
.catch(err => { // In case it can't send the vid for some reason
|
||||||
|
console.error(err);
|
||||||
|
return message.channel.send('Oh no, an error has occured! please try again.');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue