mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Change spoopy link stuff
This commit is contained in:
@@ -25,8 +25,8 @@ module.exports = class SpoopyLinkCommand extends Command {
|
|||||||
try {
|
try {
|
||||||
const { body } = await snekfetch.get(`https://spoopy.link/api/${site}`);
|
const { body } = await snekfetch.get(`https://spoopy.link/api/${site}`);
|
||||||
return msg.say(stripIndents`
|
return msg.say(stripIndents`
|
||||||
${body.safe ? 'This site is safe!' : 'This site may not be safe...'}
|
${body.safe ? '✅ Safe!' : '❌ Not safe...'}
|
||||||
${body.chain.map(url => `<${url.url}> [${url.safe ? 'SAFE' : `UNSAFE: ${url.reasons.join(', ')}`}]`).join('\n')}
|
${body.chain.map(url => `<${url.url}> ${url.safe ? '✅' : `❌ (${url.reasons.join(', ')})`}`).join('\n')}
|
||||||
`);
|
`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||||
|
|||||||
Reference in New Issue
Block a user