Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
var-mixer committed Sep 9, 2020
1 parent 8b4763d commit 6d87d84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion authMS.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class auth_config(object):

# 授权系统自动检测总开关, 默认为关闭状态,此时不会自动检测/自动退群/停止响应无授权群聊
# 设置此项目的是初次使用authMS时系统时的过渡选项, 正式使用应当配置为True
ENABLE_AUTH = True
ENABLE_AUTH = False

# ------------------网页管理---------------------
# 是否启用WEB
Expand Down
6 changes: 3 additions & 3 deletions group.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ async def check_auth():
if not config.NEW_GROUP_DAYS and config.AUTO_LEAVE:
# 无新群试用机制,直接退群
await bot.send_group_msg(group_id=gid,message=config.GROUP_LEAVE_MSG)
util.log(f'发现无记录而被自动拉入的新群{gid}, 已退出此群','group_leave')
util.log(f'发现无记录而被拉入的新群{gid}, 已退出此群','group_leave')
await bot.set_group_leave(group_id=gid)
continue
else:
util.new_group_check(gid)
util.log(f'发现无记录而被自动拉入的新群{gid}, 已开始试用','group_add')
util.log(f'发现无记录而被拉入的新群{gid}, 已开始试用','group_add')

@on_notice('group_decrease.kick_me')
async def kick_me_alert(session: NoticeSession):
Expand All @@ -188,7 +188,7 @@ async def kick_me_alert(session: NoticeSession):
'''
group_id = session.event.group_id
operator_id = session.event.operator_id
util.log(f'被{operator_id}提出群{group_id}','group_kick')
util.log(f'被{operator_id}踢出群{group_id}','group_kick')


async def check_number(group_id=0):
Expand Down
1 change: 1 addition & 0 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from . import *
from datetime import *
import time, os, json
import asyncio
key_dict = msghandler.key_dict
group_dict = msghandler.group_dict
trial_list = msghandler.trial_list
Expand Down

0 comments on commit 6d87d84

Please sign in to comment.