mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-22 07:07:46 +00:00
修复模块导入问题
This commit is contained in:
parent
403b69fcc5
commit
9b5f16d0c4
@ -6,8 +6,7 @@ from model.baseobject import BaseObject
|
|||||||
|
|
||||||
|
|
||||||
class WeaponInfo(BaseObject):
|
class WeaponInfo(BaseObject):
|
||||||
"""
|
"""武器信息
|
||||||
武器信息
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, item_id: int = 0, name: str = "", level: int = 0, main_item: Optional[GameItem] = None,
|
def __init__(self, item_id: int = 0, name: str = "", level: int = 0, main_item: Optional[GameItem] = None,
|
||||||
|
@ -7,10 +7,9 @@ import ujson
|
|||||||
from aiohttp import ClientConnectorError
|
from aiohttp import ClientConnectorError
|
||||||
from genshin import InvalidCookies, GenshinException, TooManyRequests
|
from genshin import InvalidCookies, GenshinException, TooManyRequests
|
||||||
from httpx import ConnectTimeout
|
from httpx import ConnectTimeout
|
||||||
from pyrogram.errors import Forbidden
|
|
||||||
from telegram import Update, ReplyKeyboardRemove
|
from telegram import Update, ReplyKeyboardRemove
|
||||||
from telegram.constants import ParseMode
|
from telegram.constants import ParseMode
|
||||||
from telegram.error import BadRequest, TimedOut
|
from telegram.error import BadRequest, TimedOut, Forbidden
|
||||||
from telegram.ext import CallbackContext, ConversationHandler
|
from telegram.ext import CallbackContext, ConversationHandler
|
||||||
|
|
||||||
from config import config
|
from config import config
|
||||||
@ -47,6 +46,7 @@ async def send_user_notification(update: Update, _: CallbackContext, text: str):
|
|||||||
|
|
||||||
def conversation_error_handler(func: Callable) -> Callable:
|
def conversation_error_handler(func: Callable) -> Callable:
|
||||||
"""Conversation的错误处理修饰器
|
"""Conversation的错误处理修饰器
|
||||||
|
|
||||||
非常感谢 @Bibo-Joshi 提出的建议
|
非常感谢 @Bibo-Joshi 提出的建议
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -10,7 +10,8 @@ from telegram.helpers import escape_markdown
|
|||||||
from config import config
|
from config import config
|
||||||
from logger import Log
|
from logger import Log
|
||||||
from manager import listener_plugins_class
|
from manager import listener_plugins_class
|
||||||
from model.apihelper import Hyperion, ArtworkImage
|
from model.apihelper.base import ArtworkImage
|
||||||
|
from model.apihelper.hyperion import Hyperion
|
||||||
from plugins.base import BasePlugins
|
from plugins.base import BasePlugins
|
||||||
from plugins.errorhandler import conversation_error_handler
|
from plugins.errorhandler import conversation_error_handler
|
||||||
from service import BaseService
|
from service import BaseService
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from model.apihelper import GachaInfo
|
from model.apihelper.gacha import GachaInfo
|
||||||
from service.cache import RedisCache
|
from service.cache import RedisCache
|
||||||
from service.repository import AsyncRepository
|
from service.repository import AsyncRepository
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from model.apihelper import Hyperion
|
from model.apihelper.hyperion import Hyperion
|
||||||
from service.cache import RedisCache
|
from service.cache import RedisCache
|
||||||
from service.repository import AsyncRepository
|
from service.repository import AsyncRepository
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import unittest
|
import unittest
|
||||||
from unittest import IsolatedAsyncioTestCase
|
from unittest import IsolatedAsyncioTestCase
|
||||||
|
|
||||||
from model.apihelper import Hyperion
|
from model.apihelper.hyperion import Hyperion
|
||||||
|
|
||||||
|
|
||||||
class TestGame(IsolatedAsyncioTestCase):
|
class TestGame(IsolatedAsyncioTestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user