From 34e25adc0ac9a2f7a6bd4d46ea5fb0027db66888 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 8 Jul 2020 14:25:24 -0400 Subject: [PATCH] Fix --- commands/analyze/safe-url.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/analyze/safe-url.js b/commands/analyze/safe-url.js index e973b9e4..fb5b8e4d 100644 --- a/commands/analyze/safe-url.js +++ b/commands/analyze/safe-url.js @@ -46,8 +46,8 @@ module.exports = class SafeUrlCommand extends Command { threatEntries: [{ url }] } }); - if (body.matches.length) return msg.reply('⚠️ This link is unsafe! **Do not click it!** ⚠️'); - return msg.reply(`👍 Good to go! This link is safe!`); + if (!body.matches) return msg.reply(`👍 Good to go! This link is safe!`); + return msg.reply('⚠️ This link is unsafe! **Do not click it!** ⚠️'); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); }