mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Updates
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user