This commit is contained in:
parent
d7b8e706b8
commit
bc497c7dea
2 changed files with 2 additions and 8 deletions
|
|
@ -12,11 +12,8 @@ module.exports = {
|
|||
const regex = /(?<=\/)(instagram)\.com/g
|
||||
if(args[0].startsWith("https://") || args[0].startsWith("http://")){
|
||||
replacedLink = args[0].replace(regex, "kkinstagram.com");
|
||||
}else {
|
||||
message.channel.send(noUrlErr);
|
||||
return;
|
||||
}
|
||||
if(replacedLink.length === 0){
|
||||
if(replacedLink.length === 0 || args[0] === replacedLink){
|
||||
message.channel.send(noUrlErr);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue