luni3359 / koa-bot

Discord bot
MIT License
3 stars 0 forks source link

Add bot versioning (and a command to see it) #9

Closed luni3359 closed 3 years ago

luni3359 commented 4 years ago

Very useful to know what version a bot is running on. Maybe include what commit it's in, along with its description?

luni3359 commented 4 years ago

Progress made with commit 0ac6885392c1763aadfe30c9174d5d5915577199. I still don't quite like this because it's not immediately obvious what version is being ran.

luni3359 commented 4 years ago

I think I'll hard-code it for live but show a commit (and maybe a date and time?) when debugging.

luni3359 commented 4 years ago

Turns out that the bot is returning the same commit version because the git repo is not replicated when updating the bot locally to a computer within your network. I guess it shouldn't use git to get the version.

luni3359 commented 4 years ago

I'm at a loss. Versioning is proving to be much more complicated than I thought it out to be. I don't think it justifies being a goal towards version 0.9.

luni3359 commented 3 years ago

This has been fixed as of commit b082b19f5917b36a380cb9c3be35f412a124ee38.

Poetry has solved this issue. Now the bot's version can be bumped from one single, non-arbitrary place, and retrieved as needed. This still doesn't do any of the above requests, like displaying a version date, but ultimately nobody really looks at release dates.