This commit is contained in:
Dragon Fire
2020-07-08 14:25:24 -04:00
parent 4dd3b66e00
commit 34e25adc0a
+2 -2
View File
@@ -46,8 +46,8 @@ module.exports = class SafeUrlCommand extends Command {
threatEntries: [{ url }] threatEntries: [{ url }]
} }
}); });
if (body.matches.length) return msg.reply('⚠️ This link is unsafe! **Do not click it!** ⚠️'); if (!body.matches) return msg.reply(`👍 Good to go! This link is safe!`);
return msg.reply(`👍 Good to go! This link is safe!`); return msg.reply('⚠️ This link is unsafe! **Do not click it!** ⚠️');
} catch (err) { } catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
} }