From 165dd661a67dc1f1cc7ddf7086ebe3435f19ea55 Mon Sep 17 00:00:00 2001 From: Xtao_dada Date: Sat, 22 May 2021 09:20:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Prompt=20user=20information=20at?= =?UTF-8?q?=20startup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 📝 启动时提示用户信息 --- pagermaid/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagermaid/__init__.py b/pagermaid/__init__.py index 77c3c59..2b4c243 100644 --- a/pagermaid/__init__.py +++ b/pagermaid/__init__.py @@ -136,7 +136,7 @@ async def save_id(): sentry_sdk.set_user({"id": me.id, "name": me.first_name, "username": me.username, "ip_address": "{{auto}}"}) else: sentry_sdk.set_user({"id": me.id, "name": me.first_name, "ip_address": "{{auto}}"}) - logs.info(lang('save_id')) + logs.info(f"{lang('save_id')} {me.first_name}({me.id})") with bot: