TheDiscordian / onebot

One bot to rule them all...
BSD 3-Clause "New" or "Revised" License
14 stars 1 forks source link

Add "GetBoolConfig" to onelib/config.go #33

Closed TheDiscordian closed 1 year ago

TheDiscordian commented 1 year ago

Currently to get a bool you have to do something like strconv.ParseBool(onelib.GetTextConfig(NAME, "reply_to_questions")), which isn't awful, but isn't great either. Let's add an actual GetBoolConfig function to remove this requirement and handle errors correctly.

TheDiscordian commented 1 year ago

Nvm this is actually required to retrieve bools, I'll fix this immediately.