Closed jwflory closed 3 years ago
@jwflory I see this issue as high maintenance, low reward. As of now, we do not have any way of managing state across deployments, and therefore don't have a way to keep track of which version TeleIRC was running on its last run.
The only way I can (at the moment) see this as being possible, is if we had a function to disconnect and reconnect from TG/IRC, but that defeats the purpose of restarting the bot due to a version upgrade.
I actually did something similar on my IRC Bot.
Tim is right, there needs to be some kind of persistence for this to work. Chaskis works by:
Looking back at this, I concur with @Tjzabel and @xforever1313. Since TeleIRC is sort of "stateless" by design, at least for now, I don't think this has a lot of value for the project.
We can always revisit later if things change… but for now, I am going to go ahead and close this issue out as out of scope. :city_sunset:
Summary
When the bot restarts after a version change, emit a message in that chat such as "TeleIRC updated to v2.x.x!"
Background
Is your improvement related to a problem? Please describe:
Upgrading the bots requires logging into IRC. If you are going to get a definite confirmation that the bot disconnects and reconnects, you have to see it from IRC.
Describe the solution you'd like:
To more transparently announce updates, a message could be sent when TeleIRC restarts after a successful upgrade:
TeleIRC updated to v2.0.0-pre2!
This would appear in IRC and Telegram.
Describe alternatives you've considered:
We could just put it in the logs. But I think it has two benefits to be a chat message and not a log message:
Details
Outcome