Skip to content

WIP: Honeypot Feature#1001

Open
MarkusTheOrt wants to merge 7 commits into
FozzieHi:mainfrom
MarkusTheOrt:honeypot
Open

WIP: Honeypot Feature#1001
MarkusTheOrt wants to merge 7 commits into
FozzieHi:mainfrom
MarkusTheOrt:honeypot

Conversation

@MarkusTheOrt

Copy link
Copy Markdown
Contributor

No description provided.

@MarkusTheOrt
MarkusTheOrt marked this pull request as ready for review April 25, 2026 22:14
Comment thread src/services/HoneypotService.ts Outdated
return;
}

const botMember =

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be tempted to make moderator optional instead of putting the bot down as a moderator, similar to how the other "Automatic" logs look with no author.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did change that now, but its not that easy a fix, because the ban function does some additional checks for permissions, so if you just pass a null for moderator and change the parameter type it won't work. I had to add an additional check for the channel id, and some more checks / null returns.

Comment thread src/services/HoneypotService.ts Outdated
Comment thread src/utility/BanUtil.ts
deleteMessageSeconds?: number,
): Promise<boolean> {
if (
originChannel.id !== Constants.CHANNELS.HONEYPOT ||

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather check whether moderator is null instead of implicitly depending on the honeypot channel here

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

Successfully merging this pull request may close these issues.

2 participants