Closed rickstaa closed 10 months ago
Feature 1 was added in https://github.com/rickstaa/warnings-discord-bot/pull/23.
Feature 2 can't currently be implemented since https://github.com/bwmarrin/discordgo doesn't have a way to quickly get the message count of a user in a server. You can only get the user message count in a channel. For more information, see this comment in the discord-api-docs.
Problem Statement
Current anti-scam measures in our bot are effective, but they could be further refined to target a specific behaviour pattern of scammers. Typically, scammers operate through new accounts and are removed from the platform after their first offence. This means their account age and message count is low. By not differentiating between new and established users, our bot may inadvertently affect the user experience of long-standing, legitimate members.
Proposed Solution
I propose introducing two new configurable parameters in the bot:
account_trigger_age
: This setting would allow the bot to consider the age of the user's account. For instance, if set to 30 days, only accounts newer than 30 days would trigger the warning system.2. [ ]number_of_messages_threshold
: This would set a threshold for the number of messages a user has sent. Accounts below this threshold would be more rigorously monitored. For example, setting this to 50 messages means only accounts with fewer than 50 messages would trigger the warning system.These parameters would make the bot's anti-scam system more dynamic, focusing on potential scam accounts without impacting the experience of regular, active members.
Alternative Solutions
Additional Context
Implementing these features would require careful consideration to ensure that legitimate new users feel unrestricted. The goal is to enhance security while maintaining a welcoming environment for all genuine participants.