MCPcopy Create free account
hub / github.com/VJBots/VJ-File-Store / is_enabled

Function is_enabled

config.py:12–18  ·  view source on GitHub ↗
(value, default)

Source from the content-addressed store, hash-verified

10
11id_pattern = re.compile(r'^.\d+$')
12def is_enabled(value, default):
13 if value.lower() in ["true", "yes", "1", "enable", "y"]:
14 return True
15 elif value.lower() in ["false", "no", "0", "disable", "n"]:
16 return False
17 else:
18 return default
19
20# Bot Information
21API_ID = int(environ.get("API_ID", ""))

Callers 1

config.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected