This commit is contained in:
Daniel Odendahl Jr
2017-11-09 00:02:59 +00:00
parent 819db49057
commit b6afded306
125 changed files with 743 additions and 289 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ module.exports = class SpoopyLinkCommand extends Command {
name: 'spoopy-link',
group: 'other',
memberName: 'spoopy-link',
description: 'Checks if a link is spoopy or not.',
description: 'Determines if a link is spoopy or not.',
args: [
{
key: 'site',
@@ -25,7 +25,7 @@ module.exports = class SpoopyLinkCommand extends Command {
try {
const { body } = await snekfetch.get(`https://spoopy.link/api/${site}`);
return msg.say(stripIndents`
${body.safe ? 'Safe!' : 'Not safe...'}
${body.safe ? 'Safe!' : 'Not safe...'}
${body.chain.map(url => `<${url.url}> ${url.safe ? '✅' : `❌ (${url.reasons.join(', ')})`}`).join('\n')}
`);
} catch (err) {