add option to overwrite color with env param
This commit is contained in:
@@ -75,6 +75,9 @@ class Server:
|
|||||||
# TIP: If you open your Battlesnake URL in a browser you should see this data
|
# TIP: If you open your Battlesnake URL in a browser you should see this data
|
||||||
def _info(self) -> dict:
|
def _info(self) -> dict:
|
||||||
snake_config = self._read_json_config_or_create()
|
snake_config = self._read_json_config_or_create()
|
||||||
|
if os.environ.get("COLOR", None):
|
||||||
|
snake_config["color"] = os.environ.get("COLOR")
|
||||||
|
|
||||||
print("INFO Snake:", snake_config)
|
print("INFO Snake:", snake_config)
|
||||||
return snake_config
|
return snake_config
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user