mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-29 11:03:16 +00:00
🔧 修复 artifact_rate
插件的 cancel
函数未找到的问题
This commit is contained in:
parent
e2629469d8
commit
45dc8f9df7
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user