This code verifies if a link is malicious just by putting the link.
Used in package link-checker-malicious
> npm i link-checker-malicious
module.exports = ({
name: "checklink",
code: `
$djsEval[const mal = require("link-checker-malicious");
let data = mal.isMalLink("$message")
if(data.isMal==true){
"Malicious link detected.\\n Type: "+data.type+"\\n Link: "+data.link
}
else {
"That link is not malicious"
};true]
$reply[$messageID;true]
$onlyIf[$checkContains[$message;https;//;/]==true;Ā”Please provide a valid link!]
`
})
It was developed to detect in a message if it had a link to check if it was malicious or not but it remained as a command, I hope it is useful to you who are seeing this code.