dotenv handling moved, rename run -> start

This commit is contained in:
Benjamin A. Shelton 2026-10-16 00:14:43 -06:00
commit 823c114db0
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -10,7 +10,6 @@ import (
"slices"
_ "sync"
"github.com/joho/godotenv"
"github.com/mymmrac/telego"
th "github.com/mymmrac/telego/telegohandler"
"github.com/robfig/cron/v3"
@ -37,10 +36,6 @@ func main() {
rootfs = vfs.MustVFS(vfs.NewVFS(root))
}
if err := godotenv.Load(); err != nil {
panic(fmt.Sprintf("dotenv: %s", err))
}
cmdHost, err := commands.NewCommandHost(rootfs)
if err != nil {
logger.Error("unable to configure host:", errors.Unfurl(err))
@ -133,8 +128,9 @@ func main() {
},
},
{
Name: "run",
Description: "Run the bot.",
Name: "start",
Description: "Start the bot.",
Action: cmdHost.App().Start,
},
{
Name: "verse",