优化内容
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
from loguru import logger
|
||||
import re
|
||||
from typing import Dict, Any, List, Optional, Tuple
|
||||
from typing import Optional, List, Dict, Any
|
||||
from typing import Tuple
|
||||
|
||||
import aiohttp
|
||||
from loguru import logger
|
||||
|
||||
from base.plugin_common.message_plugin_interface import MessagePluginInterface
|
||||
from base.plugin_common.plugin_interface import PluginStatus
|
||||
from utils.decorator.plugin_decorators import plugin_stats_decorator
|
||||
from utils.robot_cmd.robot_command import Feature, PermissionStatus, GroupBotManager
|
||||
from utils.robot_cmd.robot_command import PermissionStatus, GroupBotManager
|
||||
from wechat_ipad import WechatAPIClient
|
||||
|
||||
import aiohttp
|
||||
import asyncio
|
||||
from typing import Optional, List, Dict, Any
|
||||
|
||||
|
||||
class QL:
|
||||
def __init__(self, address: str, id: str, secret: str) -> None:
|
||||
@@ -151,10 +150,10 @@ class QL:
|
||||
|
||||
class JDTokenPlugin(MessagePluginInterface):
|
||||
"""京东签到Token设置插件"""
|
||||
|
||||
|
||||
# 功能权限常量
|
||||
FEATURE_KEY = "JD_TOKEN"
|
||||
FEATURE_DESCRIPTION = "JD_京豆token设置 [设置京东 pt_key=xxx;pt_pin=xxx; 备注名称]"
|
||||
FEATURE_DESCRIPTION = "🔑 JD_京豆token设置 [设置京东 pt_key=xxx;pt_pin=xxx; 备注名称]"
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
@@ -239,7 +238,6 @@ class JDTokenPlugin(MessagePluginInterface):
|
||||
|
||||
return command in self._commands
|
||||
|
||||
|
||||
@plugin_stats_decorator(plugin_name="京东签到Token设置")
|
||||
async def process_message(self, message: Dict[str, Any]) -> Tuple[bool, Optional[str]]:
|
||||
"""处理消息"""
|
||||
|
||||
Reference in New Issue
Block a user