-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement unbanning logic #2
base: main
Are you sure you want to change the base?
Conversation
Just needs tidying up and possibly a review of the unban logic since I'm not convinced this is the right way to do it |
@@ -39,6 +43,30 @@ func (pe *PolicyEvaluator) HandleCommand(ctx context.Context, evt *event.Event) | |||
} | |||
} | |||
pe.sendSuccessReaction(ctx, evt.ID) | |||
case "!leave": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This accidentally made its way in from an unstaged commit from #1, needs removing
Entity: action.RuleEntity, | ||
}, | ||
} | ||
pe.ApplyUnban(ctx, action.TargetUser, action.InRoomID, policy) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I need to check somewhere that auto_unban
is enabled for the list that created the policy, this just blanket unbans at the moment
might come back to it later but atm I don't really have the time or motivation to actually complete this and I don't want it to sit in a draft for months 🥴 |
This PR implements the following:
!remove-ban
command!add-unban
command