🔧 修复 artifact_rate 插件的 cancel 函数未找到的问题

This commit is contained in:
洛水居室 2022-07-27 00:09:15 +08:00
parent e2629469d8
commit 45dc8f9df7
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -8,18 +8,18 @@ from telegram.helpers import escape_markdown
from logger import Log from logger import Log
from model.apihelper.artifact import ArtifactOcrRate, get_comment, get_format_sub_item from model.apihelper.artifact import ArtifactOcrRate, get_comment, get_format_sub_item
from plugins.base import BasePlugins
from utils.decorators.error import error_callable from utils.decorators.error import error_callable
from utils.decorators.restricts import restricts from utils.decorators.restricts import restricts
from utils.plugins.manager import listener_plugins_class from utils.plugins.manager import listener_plugins_class
@listener_plugins_class() @listener_plugins_class()
class ArtifactRate: class ArtifactRate(BasePlugins):
"""圣遗物评分"""
COMMAND_RESULT = 1 COMMAND_RESULT = 1
"""
圣遗物评分
"""
STAR_KEYBOARD = [[ STAR_KEYBOARD = [[
InlineKeyboardButton( InlineKeyboardButton(
f"{i}", callback_data=f"artifact_ocr_rate_data|star|{i}") for i in range(1, 6) f"{i}", callback_data=f"artifact_ocr_rate_data|star|{i}") for i in range(1, 6)