MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / main

Function main

cmd/bot/main.go:13–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func main() {
14 projectRoot, err := os.Getwd()
15 if err != nil {
16 log.Fatalf("resolve project root: %v", err)
17 }
18
19 log.Printf("Starting bot...")
20
21 application, err := app.New(projectRoot)
22 if err != nil {
23 log.Fatalf("bootstrap application: %v", err)
24 }
25
26 ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
27 defer stop()
28
29 if err := application.Run(ctx); err != nil {
30 log.Fatalf("run bot: %v", err)
31 }
32}

Callers

nothing calls this directly

Calls 2

NewFunction · 0.92
RunMethod · 0.45

Tested by

no test coverage detected