From 7ca9d3fbfd63a98ba6ab8102d31b5bfc6efc6fc6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 21 Dec 2024 09:18:43 +0300 Subject: [PATCH] tabs moment happens --- ubot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ubot.py b/ubot.py index ee5bdc9..d56c002 100644 --- a/ubot.py +++ b/ubot.py @@ -18,7 +18,7 @@ import pymysql.cursors import sqlite3 if os.name == 'nt': - import win32api + import win32api logger.remove() logger.level("DEBUG", color='') @@ -34,10 +34,10 @@ async def main(): my_id = int(me.id) my_fn = me.first_name logger.info(f'your id: {my_id}') - if os.name == 'nt': - win32api.SetConsoleTitle(f'{my_id}') - elif os.name == 'posix': - print(f'\33]0;bot {my_id}\a', end='', flush=True) + if os.name == 'nt': + win32api.SetConsoleTitle(f'{my_id}') + elif os.name == 'posix': + print(f'\33]0;bot {my_id}\a', end='', flush=True) if config.db_pymysql: con = pymysql.connect(host='localhost', user='root',