From 6a1f6ed2d9a3846171bf8ecd2f72bd97139a2b31 Mon Sep 17 00:00:00 2001 From: Ryan Yeske Date: Thu, 16 May 2024 22:48:26 -0700 Subject: [PATCH] Don't panic --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 2e68a40..8a14dff 100644 --- a/main.go +++ b/main.go @@ -42,7 +42,7 @@ func addHandlers(b *bot.Bot) { Privmsgf: b.MakePrivmsgf(), }) if err != nil { - panic(err) + b.Conn.Privmsg(b.Channel, "error: "+err.Error()) } }() }) @@ -54,7 +54,7 @@ func addHandlers(b *bot.Bot) { Privmsgf: b.MakePrivmsgf(), }) if err != nil { - panic(err) + b.Conn.Privmsg(b.Channel, "error: "+err.Error()) } }() })