Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 581 Bytes

File metadata and controls

30 lines (21 loc) · 581 Bytes
date 2025-06-21
category
core
tags
helpers
str2bool
description Overview of helpers in ModuBotCore
author

Helpers

ModuBotCore provides useful helper functions in ModuBotCore.helpers.

str2bool

str2bool(value: str) -> bool

Converts a string to a boolean value. Useful for parsing configuration values or user input.

Example

from ModuBotCore.helpers import str2bool

print(str2bool("true"))   # True
print(str2bool("False"))  # False