mirror of
https://github.com/ChenXu233/nonebot_plugin_dialectlist.git
synced 2025-09-07 04:56:27 +00:00
📝 写文档
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
from typing import Optional, Literal, List
|
||||
from nonebot import get_driver, get_plugin_config
|
||||
from pydantic import BaseModel, field_validator
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ScopedConfig(BaseModel):
|
||||
|
@ -140,7 +140,12 @@ def got_rank(msg_dict: Dict[str, int]) -> List[List[Union[str, int]]]:
|
||||
rank.append(list(max_key))
|
||||
msg_dict.pop(max_key[0])
|
||||
except ValueError:
|
||||
break
|
||||
logger.error(
|
||||
"群内拥有聊天记录的人数不足,无法获取到长度为{}的排行榜,已将长度变化为:{}".format(
|
||||
plugin_config.get_num, len(rank)
|
||||
)
|
||||
)
|
||||
break
|
||||
|
||||
return rank
|
||||
|
||||
|
Reference in New Issue
Block a user