sopel-irc / sopel-iplookup

IP lookup plugin for Sopel IRC bots
Other
0 stars 0 forks source link

Automatic Database Updates #2

Open ghost opened 5 months ago

ghost commented 5 months ago

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 commented 5 months ago

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.