1.0.3 • Published 3 years ago

discord-scam-links v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

discord-scam-links

A package that allows you to detect if there are any scam links in a message

Usage

const scamlinks = require('discord-scam-links');
const Discord = require('discord.js');
const { GatewayIntentBits, Partials } = require('discord.js')
const client = new Discord.Client({ intents: [GatewayIntentBits.Guilds], partials: [Partials.Messages] })

client.on('ready', () => {
    console.log('Package and Bot ready to go 🚀')
})

client.on('messageCreate', async(message) => {
    console.log('Message sent & found, scanning now...')
    if(scamlinks.isTrue(message.content)) {
        message.delete()
        message.reply('No scams please')
    }
})
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago