antichannelmsg 设置默认白名单

This commit is contained in:
xtaodada 2021-12-08 15:55:43 +08:00
parent 5728e79566
commit 908c64c109
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ async def anti_channel_msg(context):
await context.edit(f"{lang('error_prefix')}{lang('arg_error')}") await context.edit(f"{lang('error_prefix')}{lang('arg_error')}")
@listener(is_plugin=False, incoming=True, outgoing=True, ignore_edited=True) @listener(is_plugin=False, incoming=True, outgoing=False, ignore_edited=True)
async def auto_process_channel_msg(context): async def auto_process_channel_msg(context):
""" Event handler to delete channel messages and ban channel. """ """ Event handler to delete channel messages and ban channel. """
if not redis_status(): if not redis_status():

View File

@ -712,7 +712,7 @@
}, },
{ {
"name": "antichannelmsg", "name": "antichannelmsg",
"version": "1.0", "version": "1.001",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "4.8 kb", "size": "4.8 kb",