From 493ee276fb2ee1f0374764a73fc8c4569718e42d Mon Sep 17 00:00:00 2001 From: Santa Date: Sat, 1 Apr 2023 01:17:30 +0300 Subject: [PATCH] Add help --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index e9a4166..3573913 100644 --- a/main.py +++ b/main.py @@ -98,7 +98,7 @@ def main(): if text == "!online": text = rcon_cmd_handle('list', from_id, peer_id, False).replace("\n", "") now = text[10:11] - write(peer_id, f"Сейчас играют {now} человек" + "" if now == "0" else f": {text[43:]}") + write(peer_id, f"Сейчас играет {now} человек" + ("" if now == "0" else f": {text[43:]}")) ts = lp.get('ts')