diff --git a/commands/misc/x.js b/commands/misc/x.js index bf8e1c7..2e7283b 100644 --- a/commands/misc/x.js +++ b/commands/misc/x.js @@ -12,6 +12,9 @@ module.exports = { const regex = /(?<=\/)(x|twitter)\.com/g if(args[0].startsWith("https://") || args[0].startsWith("http://")){ replacedLink = args[0].replace(regex, "fxtwitter.com"); + }else { + message.channel.send(noUrlErr); + return; } if(replacedLink.length === 0){ message.channel.send(noUrlErr);