From c39dc95387232ad7d023be7b4dd13c0572a29bf3 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Tue, 3 Nov 2026 20:49:26 -0700 Subject: [PATCH] Added version. --- cmd/bot/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/bot/main.go b/cmd/bot/main.go index 2414728..42adf85 100644 --- a/cmd/bot/main.go +++ b/cmd/bot/main.go @@ -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",