Bot banned a user for old @everyone messages once channel was opened after a while
- Dominant language
- Java
- Stars
- 600
- Forks
- 338
- PR merge metrics
- No merged PRs in 30d
Description
Bot retroactively banned a user for previous @everyone messages they had sent a long time ago when they had a staff role, but no longer has that role.
The channel was loaded after no one interacted with it for several months, and the bot somehow scanned the old messages as soon as a user loaded the channel and banned the previous staff user as if they were new messages?
I find this kind of behaviour from the bot to be a little odd, but I can understand why it occurred. Might want to add protections to prevent this from occurring to others in the future.
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file, test, or entry point is identified. Start by locating the moderation logic that processes messages loaded after inactivity and determine how message age and the sender's current role are handled. Done would require a defined protection and a test or reproduction showing that old messages do not trigger a new ban.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100