forked from FOSS/ASF-Control-Bot
style: reformat handlers and UI for readability
This commit is contained in:
@@ -9,7 +9,9 @@ def is_bot_playing(bot_name: str) -> bool:
|
||||
return False
|
||||
data = response.json()
|
||||
bot = data.get("Result", {}).get(bot_name, {})
|
||||
return bool(bot.get("PlayingBlocked", False)) or bool(bot.get("CurrentGamesPlayed", []))
|
||||
return bool(bot.get("PlayingBlocked", False)) or bool(
|
||||
bot.get("CurrentGamesPlayed", [])
|
||||
)
|
||||
|
||||
|
||||
def is_idle_enabled(bot_name: str, app_id: int) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user