mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Fix
This commit is contained in:
@@ -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!`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user