From 34fdf453c1a60d69a3a18b4f76590124deaff6eb Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 10 Jul 2025 14:36:21 -0400 Subject: [PATCH] readme update --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 544ae2e..dc0d8bc 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,10 @@ import ( func main() { //bolt defaults the command indicator to '.' however that can be changed with the options //Example: bolt.New(bolt.WithIndicator('!')) would support commands like !ping - b := bolt.New(bolt.WithLogLevel(bolt.LogLevelCmd)) + b, err := bolt.New(bolt.WithLogLevel(bolt.LogLevelCmd)) + if err != nil { + panic(err) + } b.AddCommands( // basic ping pong command, .ping can be run at anytime by anyone and will reply "pong" @@ -95,11 +98,12 @@ func main() { ) //start is a blocking call that handles safe-shutdown, all configuration and setup should be done before calling Start() - err := b.Start() + err = b.Start() if err != nil { panic(err) } } + ``` ## Development