Added version.
This commit is contained in:
parent
7946947794
commit
c39dc95387
1 changed files with 6 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue