MCPcopy Create free account
hub / github.com/TechifyBots/File-Stream-Bot / is_enabled

Function is_enabled

biisal/vars.py:6–12  ·  view source on GitHub ↗
(value, default)

Source from the content-addressed store, hash-verified

4from dotenv import load_dotenv
5
6def is_enabled(value, default):
7 if value.lower() in ["true", "yes", "1", "enable", "y"]:
8 return True
9 elif value.lower() in ["false", "no", "0", "disable", "n"]:
10 return False
11 else:
12 return default
13
14load_dotenv()
15

Callers 1

VarClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected