Code Monkey home page Code Monkey logo

Comments (3)

Benricheson101 avatar Benricheson101 commented on July 30, 2024

Could you elaborate on what you mean by "sticky mute"?

from anti-phishing-bot.

HarbingerNight avatar HarbingerNight commented on July 30, 2024

I am referring to making the mute role a sticky/persistent role by having the bot reapply GuildConfigs.muteRole to someone who rejoins the server if they were muted by the bot.

Given how aggressive the attacks are getting and the fact it is using hijacked accounts, it is only a matter of time before it is programmed to leave a server and rejoin to clear a mute.

from anti-phishing-bot.

HarbingerNight avatar HarbingerNight commented on July 30, 2024

I forked the project and have mostly finished implementing this and most of the other suggestions sans:

  • ignore channel is channel only not categories or threads
  • full url in log

It is not pull request ready, but you can take a look to see what Im referring to.
https://github.com/HarbingerNight/anti-phishing-bot/tree/splade/

I also streamlined some stuff.

If you do happen to do anything w/ it please be aware:
It contains an non-destructive advanced migration that preserves existing data for the
schema. If you autogen a new basic one you will need to add instructions on how to handle
existing data, otherwise prisma will try to drop and recreate instead of convert. The migration
file shows how to do this.

https://github.com/HarbingerNight/anti-phishing-bot/blob/splade/prisma/migrations/20211018182540_stickymute/migration.sql

Ive already tested it w/ a database w/ records to make sure it migrates from the current
schema w/ losing data.

from anti-phishing-bot.

Related Issues (16)

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.