From d0a917918de485dbdcef71fefa4dec841cd31faf Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 17 Jun 2023 10:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Support=20hoyolab=20ledger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/starrail/ledger.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/plugins/starrail/ledger.py b/plugins/starrail/ledger.py index 83470ec..24960e1 100644 --- a/plugins/starrail/ledger.py +++ b/plugins/starrail/ledger.py @@ -3,7 +3,6 @@ import re from datetime import datetime, timedelta from genshin import DataNotPublic, InvalidCookies, GenshinException -from genshin.types import Region from genshin.models.genshin.diary import StarRailDiary from telegram import InlineKeyboardButton, InlineKeyboardMarkup, Update from telegram.constants import ChatAction @@ -110,13 +109,6 @@ class LedgerPlugin(Plugin): await message.reply_chat_action(ChatAction.TYPING) try: client = await self.helper.get_genshin_client(user.id) - # todo: 支持国际服 - if client.region == Region.OVERSEAS: - reply_message = await message.reply_text("此功能暂不支持国际服") - if filters.ChatType.GROUPS.filter(message): - self.add_delete_message_job(reply_message, delay=30) - self.add_delete_message_job(message, delay=30) - return try: render_result = await self._start_get_ledger(client, year, month) except InvalidCookies as exc: # 如果抛出InvalidCookies 判断是否真的玄学过期(或权限不足?)