mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
update code
This commit is contained in:
parent
ab33fc3af1
commit
7096d258db
@ -230,12 +230,12 @@ async def _(matcher: Matcher, bot: Bot, event: MessageEvent, state: T_State):
|
|||||||
pass
|
pass
|
||||||
raise IgnoredException("该插件在私聊中已被禁用...")
|
raise IgnoredException("该插件在私聊中已被禁用...")
|
||||||
# 维护
|
# 维护
|
||||||
if not group_manager.get_plugin_status(
|
if not group_manager.get_plugin_status(module, block_type="all"):
|
||||||
module, block_type="all"
|
if isinstance(event, GroupMessageEvent) and group_manager.check_group_is_white(event.group_id):
|
||||||
) and not group_manager.check_group_is_white(event.group_id):
|
return
|
||||||
try:
|
try:
|
||||||
if _flmt_c.check(event.group_id):
|
if _flmt_c.check(event.user_id):
|
||||||
_flmt_c.start_cd(event.group_id)
|
_flmt_c.start_cd(event.user_id)
|
||||||
if isinstance(event, GroupMessageEvent):
|
if isinstance(event, GroupMessageEvent):
|
||||||
await bot.send_group_msg(
|
await bot.send_group_msg(
|
||||||
group_id=event.group_id, message="此功能正在维护..."
|
group_id=event.group_id, message="此功能正在维护..."
|
||||||
|
|||||||
@ -27,6 +27,9 @@ __plugin_usage__ = (
|
|||||||
|
|
||||||
_flmt = FreqLimiter(1)
|
_flmt = FreqLimiter(1)
|
||||||
|
|
||||||
|
if '色图' in IMAGE_DIR_LIST:
|
||||||
|
IMAGE_DIR_LIST.remove('色图')
|
||||||
|
|
||||||
cmd = set(IMAGE_DIR_LIST)
|
cmd = set(IMAGE_DIR_LIST)
|
||||||
|
|
||||||
# print(cmd)
|
# print(cmd)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user