Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Sticky Mutes #3

Open
HarbingerNight opened this issue Oct 16, 2021 · 3 comments
Open

Suggestion: Sticky Mutes #3

HarbingerNight opened this issue Oct 16, 2021 · 3 comments

Comments

@HarbingerNight
Copy link

HarbingerNight commented Oct 16, 2021

Mute role should be sticky incase another bot is not used to enforce this. Also need away to unmute members if sticky mute is implemented.

@Benricheson101
Copy link
Owner

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

@HarbingerNight
Copy link
Author

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.

@HarbingerNight
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants