Giter VIP home page Giter VIP logo

daltonmenezes / discord-guardian-action Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 199 KB

🤖 An action that fetches the list of malicious domains on Discord in different providers and creates/updates a JSON file with them from time to time.

License: MIT License

JavaScript 8.86% Shell 2.27% TypeScript 88.87%
discord domains malicious-domains json action github-actions typescript javascript security

discord-guardian-action's Introduction

a green shield with a check symbol in the centerDiscord Guardian Action

🤖 This action fetches the list of malicious domains on Discord in different providers and creates/updates a JSON file with them from time to time.

patreon url license url


Features

  • 🤠 Creates/updates domain list from different providers
  • ✨ Accepts your own maintained list file to be joined in the domains.json
  • 👍 Accepts the custom filename and directory to save the domain list

Usage

As your app will consume the domains.json, it's recommended to you create an empty one with an empty array just to be filled when this action run, so your application can import this file without any problem.

Example: At src/data path in your repository, create a domains.json with the following content:

[]

And your workflow file should look like the following:

on:
  schedule:
    # At minute 0 past every 5th hour
    # https://crontab.guru/#0_*/5_*_*_*
    - cron: "0 */5 * * *"

jobs:
  discord_guardian_job:
    runs-on: ubuntu-latest
    name: Discord Guardian Job
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Discord Guardian Action
        uses: actions/[email protected]
        id: discord
        with:
          name: 'Your Name'
          email: '[email protected]'
          directory: src/data

Now, when this action runs for the first time, the domains.json will be filled. 🥳

Inputs

name

Required!

The commit author name.

email

Required!

The commit author email.

directory

Optional

The directory to output the domain list. Default is "."

fileName

Optional

The Name of the output JSON file containing the domain list. Default is "domains"

myDomainList

Optional

The Path to your own JSON list of domains file to be joined in the final domains.json

Example:

myDomainList: src/data/my-domains.json

Acknowledgment

This action is only possible thanks to the following projects:

✨ Don't forget to give them a star

License

MIT © Dalton Menezes

discord-guardian-action's People

Contributors

daltonmenezes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.