MCPcopy Index your code
hub / github.com/su-kaka/gcli2api / get_auto_ban_enabled

Function get_auto_ban_enabled

config.py:122–128  ·  view source on GitHub ↗

Get auto ban enabled setting.

()

Source from the content-addressed store, hash-verified

120
121
122async def get_auto_ban_enabled() -> bool:
123 """Get auto ban enabled setting."""
124 env_value = os.getenv("AUTO_BAN")
125 if env_value:
126 return env_value.lower() in ("true", "1", "yes", "on")
127
128 return bool(await get_config_value("auto_ban_enabled", False))
129
130
131async def get_auto_ban_error_codes() -> list:

Callers 1

check_should_auto_banFunction · 0.90

Calls 1

get_config_valueFunction · 0.85

Tested by

no test coverage detected