diff --git a/cmd/bot/main.go b/cmd/bot/main.go index 58984bc..2503b6d 100644 --- a/cmd/bot/main.go +++ b/cmd/bot/main.go @@ -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",