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

Automatic Database Updates #2

Open
ghost opened this issue Jan 21, 2024 · 1 comment
Open

Automatic Database Updates #2

ghost opened this issue Jan 21, 2024 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 21, 2024

Would be nice if the plugin could automatically update the databases periodically. There's already code for fetching it, seems like it wouldn't be too outlandish to add an @interval and store a timestamp in the bot.db or something.

Thoughts?

@dgw
Copy link
Member

dgw commented Jan 21, 2024

MaxMind defines the update schedule for each database edition, so it's hardly necessary to poll blindly for a new version. The City and ASN editions this plugin uses update "Every Tuesday and Friday".

MaxMind also documents exactly how to check when a database edition was last updated via HEAD request.

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

No branches or pull requests

1 participant