the-draupnir-project / Draupnir

A Matrix moderation bot
https://the-draupnir-project.github.io/draupnir-documentation/
91 stars 14 forks source link

Automatic version checking #236

Open Gnuxie opened 9 months ago

Gnuxie commented 9 months ago

We should probably have a feature similar to element web, in concept, that tells a user they are running an out of date version of Draupnir. We could even go further to link to the release notes as they are released in a notice in the management room. A field would also be added to the status command to indicate that the bot is out of date. This should still be configurable since some people just will not be comfortable with a call of any kind to another service than their homeserver.

If we are going to have to make a http request to some service (probably github) to find the current version, then I don't think it would be too much to ask that we host the system instead. The purpose being that we could provide a metric to estimate the number of draupnir in use. And if done correctly, by carefully timing the requests draupnir side, we can provide this estimate by simply incrementing a naive count of the requests within in a time window, without needing to calculate unique requests or finger print or use any kind of pseudo anonymous crap. It wouldn't be accurate to the exact digit but it would probably be pretty accurate.

My assessment could be wrong though, so please tell me if any of this is a bad idea. Or there is a simpler solution.

Mikaela commented 9 months ago

Forgejo uses DNS TXT record and possibly gains some privacy from caching