Skip to content

owlnai/discord-osiris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Osiris ⚖️

NOTE: THIS IS STILL A WORK IN PROGRESS Judges dangerous Discord links

Features

  • Fully-typed with TypeScript ✨
  • Promise-based RegEx matching 📐
  • Can detect multiple links 🔄️
  • Optimized for speed (~3ms per string) 🚀

Usage

import { checkString, regexes } from 'discord-osiris'

const susMessage = "Hello don't click on this link, it's dangerous! https://dlscord-egfits.com/fromsteamnitro"

checkString(susMessage, regexes).then(console.log) // true

Extend patterns

The second parameter of checkString (patterns) accepts an array of either RegExp or strings. You can pass your own array and/or extend the current configuration.

About

Judges dangerous Discord links

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published