Skip to content

Commit

Permalink
fix: incompatible hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluefissure committed Apr 13, 2022
1 parent 041586b commit 9ccc4ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ffxivbot/handlers/QQCommand_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def handle_sonar_config(bot, parameters):
/bot sonar info: 查看当前 Sonar 配置
/bot sonar rank/rank_del <50S/60S/70S/80S/90S/大象/小电视>: 添加/删除可通过本机器人推送的上报类别
/bot sonar server/server_del <服务器/大区名称>: 添加/删除可通过本机器人推送的服务器
/bot sonar group/group_del <群号>: 添加/删除可通过本机器人推送的QQ群号(不设置则任意群均可推送
/bot sonar group/group_del <群号>: 添加/删除可通过本机器人推送的QQ群号(不设置则任意群均不可推送
"""
operation = parameters[0]
if operation == "server" or operation == "server_del": # /bot sonar server(_del) <keyword>
Expand Down Expand Up @@ -96,7 +96,7 @@ def handle_sonar_config(bot, parameters):
sub_groups = bot.sonar_sub_groups.all()
groups_msg = ", ".join(list(map(lambda x: str(x.group_id), sub_groups)))
if groups_msg == "":
groups_msg = "全部"
groups_msg = ""
return "{} 的 Sonar 推送限制目前设置为:\n" \
"可推送类别:{}\n" \
"可推送服务器:{}\n" \
Expand Down
2 changes: 1 addition & 1 deletion ffxivbot/views/tata.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def tata(req):
bot.api_post_url = api_post_url
bot.auto_accept_friend = autoFriend and "true" in autoFriend
bot.auto_accept_invite = autoInvite and "true" in autoInvite
if len(QQBot.objects.all()) >= 300 and bot_created:
if len(QQBot.objects.all()) >= 350 and bot_created:
res_dict = {"response": "error", "msg": "机器人总数过多,请稍后再试"}
return JsonResponse(res_dict)
bot.save()
Expand Down

0 comments on commit 9ccc4ad

Please sign in to comment.