update code

This commit is contained in:
hibiki 2021-08-17 23:49:07 +08:00
parent ab33fc3af1
commit 7096d258db
2 changed files with 8 additions and 5 deletions

View File

@ -230,12 +230,12 @@ async def _(matcher: Matcher, bot: Bot, event: MessageEvent, state: T_State):
pass
raise IgnoredException("该插件在私聊中已被禁用...")
# 维护
if not group_manager.get_plugin_status(
module, block_type="all"
) and not group_manager.check_group_is_white(event.group_id):
if not group_manager.get_plugin_status(module, block_type="all"):
if isinstance(event, GroupMessageEvent) and group_manager.check_group_is_white(event.group_id):
return
try:
if _flmt_c.check(event.group_id):
_flmt_c.start_cd(event.group_id)
if _flmt_c.check(event.user_id):
_flmt_c.start_cd(event.user_id)
if isinstance(event, GroupMessageEvent):
await bot.send_group_msg(
group_id=event.group_id, message="此功能正在维护..."

View File

@ -27,6 +27,9 @@ __plugin_usage__ = (
_flmt = FreqLimiter(1)
if '色图' in IMAGE_DIR_LIST:
IMAGE_DIR_LIST.remove('色图')
cmd = set(IMAGE_DIR_LIST)
# print(cmd)