Skip to content
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

Adding periodic bot self leave functionality after a certain timeframe #72

Open
SocksTheWolf opened this issue Feb 18, 2025 · 0 comments
Labels
critical Tackle sooner than other issues enhancement New feature or request help wanted Extra attention is needed tag-specific Only applies to the instance ran by TAG
Milestone

Comments

@SocksTheWolf
Copy link
Owner

The easiest implementation is to do the following:

  • Start documenting in the DB when a server was added to the database (this may be able to be fetched via metadata, but likely requires a new column)
  • Periodically check the DB to see what instances are after a certain amount of time (need to determine the window, 7 days should be good)
  • Have the bot autoleave the server (can call LeaveServer from the main instance).

For ease of use, it might be better to just have the main ScamGuard instance run this periodic functionality (via the Task system) for us, as it's LeaveServer call will auto-resolve the correct server for us automatically.

The plus side for this is the following:

  • Less instances running = More memory saved
  • DB Queries are less expensive
  • Starts cleaning up the database for us

The downside is:

  • Users may get confused thinking they have ScamGuard but it's no longer there. This might be alleviated with extra messaging features from Post a message on join #57 but that feature is not necessary for this issue to be completed.
@SocksTheWolf SocksTheWolf added enhancement New feature or request tag-specific Only applies to the instance ran by TAG critical Tackle sooner than other issues labels Feb 18, 2025
@SocksTheWolf SocksTheWolf added this to the Version 2.5 milestone Feb 18, 2025
@SocksTheWolf SocksTheWolf added the help wanted Extra attention is needed label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical Tackle sooner than other issues enhancement New feature or request help wanted Extra attention is needed tag-specific Only applies to the instance ran by TAG
Projects
None yet
Development

No branches or pull requests

1 participant