diff --git a/README.md b/README.md index 7210fcb..42ff9ce 100644 --- a/README.md +++ b/README.md @@ -51,15 +51,9 @@ func main() { }, ) - _ = b.Start() - - //set up safe CTRL-C - sigChannel := make(chan os.Signal, 1) - signal.Notify(sigChannel, syscall.SIGINT) - log.Println("bot running") - <-sigChannel - - if err := b.Stop(); err != nil { + //start is a blocking call that handles safe-shutdown, all configuration and setup should be done before calling Start() + err := b.Start() + if err != nil { panic(err) } }