Skip to content

feat: add kick logic when member posts to honeypot channel - #79

Merged
ghostdevv merged 3 commits into
mainfrom
feat/honeypot
Jul 12, 2026
Merged

feat: add kick logic when member posts to honeypot channel#79
ghostdevv merged 3 commits into
mainfrom
feat/honeypot

Conversation

@theetrain

Copy link
Copy Markdown
Collaborator

Closes #78

  • Add logic that kicks non-admin members who post to the #honeypot channel.
  • Refactor ban function to consolidated src/utils/member_actions.ts file.

@theetrain
theetrain marked this pull request as draft July 5, 2026 15:41
@theetrain

theetrain commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator Author
  • Need to add message removal logic when kicking.

- Ban and unban users to remove messages to effectively kick members
  without permanently banning them.
@theetrain
theetrain marked this pull request as ready for review July 5, 2026 15:53
@theetrain
theetrain requested a review from ghostdevv July 5, 2026 15:53
Comment thread src/utils/member_actions.ts Outdated
reason = 'Bot action',
/** @default 3 */
retries = 3,
removeLastMessages = PAST_24_HOURS,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we should make this lower like the past few hours, as presumably someone who posts there just joined

- Change kick action message deletion to past 2 hours instead of past 24
  hours
@theetrain
theetrain requested a review from ghostdevv July 7, 2026 23:03
@ghostdevv
ghostdevv merged commit e058bc5 into main Jul 12, 2026
1 check passed
@ghostdevv
ghostdevv deleted the feat/honeypot branch July 12, 2026 07:01
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.

Honeypot channel

2 participants