From 5ea22e534b3f2388b1645908abb400f88ce1e8ac Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 21 Dec 2024 08:45:41 +0300 Subject: [PATCH] set title of running bot user id --- ubot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ubot.py b/ubot.py index c46986a..d7b19df 100644 --- a/ubot.py +++ b/ubot.py @@ -9,6 +9,7 @@ from loguru import logger import time import sys +import os import asyncio import re @@ -169,7 +170,8 @@ async def main(): #################################################################### if is_termux: asyncio.ensure_future(updatenotif.git_notifications_update()) - + elif os.name == 'posix': + print(f'\33]0;bot {my_id}\a', end='', flush=True) await victimsbackup.bio_backup_stealing(client, c, conn, default_directory) if config.db_pymysql: