Skip to content

Commit

Permalink
Don't panic
Browse files Browse the repository at this point in the history
  • Loading branch information
rcy committed May 17, 2024
1 parent 2061c00 commit 6a1f6ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}()
})
Expand All @@ -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())
}
}()
})
Expand Down

0 comments on commit 6a1f6ed

Please sign in to comment.