From 569e9f6ccbbf79afee8bfcb8e91a74d1e66c4078 Mon Sep 17 00:00:00 2001 From: mihalin Date: Sun, 13 Mar 2022 18:12:22 +0300 Subject: [PATCH] Revert "debug host print" This reverts commit cc9479327b20638815bba48dc59c3a6542cbac31. --- server/custom.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/custom.py b/server/custom.py index 333b444..dca7de7 100644 --- a/server/custom.py +++ b/server/custom.py @@ -14,8 +14,6 @@ from olgram.settings import ServerSettings from olgram.models.models import Bot, GroupChat, BannedUser from server.inlines import inline_handler -import socket - _logger = logging.getLogger(__name__) _logger.setLevel(logging.INFO) @@ -45,8 +43,6 @@ async def message_handler(message: types.Message, *args, **kwargs): # На команду start нужно ответить, не пересылая сообщение никуда return SendMessage(chat_id=message.chat.id, text=bot.start_text + ServerSettings.append_text()) - if message.text and message.text == "/gethostplz": - return SendMessage(chat_id=message.chat.id, text=str(socket.gethostname())) super_chat_id = await bot.super_chat_id() is_super_group = super_chat_id < 0