mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-14 21:26:54 +00:00
Added a better catch statement for the 'scrape' command
This commit is contained in:
@@ -16,7 +16,11 @@ module.exports ={
|
||||
message.channel.send(haste);
|
||||
// console.log(lyrics);
|
||||
})
|
||||
.catch(console.error);
|
||||
.catch(function(err) {
|
||||
if (err.message.indexOf('The "url" argument must be of type string.') != -1) {
|
||||
message.reply("The URL should be a string!");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user