Added version.

This commit is contained in:
Benjamin A. Shelton 2026-11-03 20:49:26 -07:00
commit c39dc95387
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -13,7 +13,7 @@ import (
"code.destrealm.net/zancarius/justusbot/internal/commands"
)
// Send any text message to the bot after the bot has been started
var Version string
func main() {
var rootfs vfs.VFS
@ -33,7 +33,12 @@ func main() {
os.Exit(1)
}
if Version == "" {
Version = "devbuild"
}
cmd := cli.Command{
Version: Version,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "config",