PhantomBot Version: 3.0.0 (Revision: fcc08b51)
Operating System: Linux
Java Version: 1.8.0_201-b09
Stock PhantomBot: Yes
I’m writing an update script because I host several bots for my friends and (for the same reason many scripts exist) I can’t be bothered to update them all manually.
I wanted a reliable way to get the currently installed version of PhantomBot, so far I’m doing this by
greping the systemd journal logs, which is not so elegant.
I tried searching many files and even the SQLite db, but only found the
phantombot_updates table which is as close as I got to finding a version number. I’ve updated to
3.0.0 which is also reported on the web panel, but the latest version shown in the
phantombot_updates table is
Is there a more reliable and accurate method of getting the installed version?