update to 2.1.6 version

优化代码结构
增加更多提示语
修复处理空格消息时的报错
修复上下文的bug
This commit is contained in:
jerry
2021-01-18 18:08:29 +08:00
parent c208298937
commit 187a08a621
19 changed files with 594 additions and 45 deletions

View File

@@ -78,6 +78,7 @@ class QQBot
switch ($data["post_type"]) {
case "message":
$word = explodeMsg(str_replace("\r", "", context()->getMessage()));
if (empty($word)) $word = [""];
if (count(explode("\n", $word[0])) >= 2) {
$enter = explode("\n", context()->getMessage());
$first = split_explode(" ", array_shift($enter));