mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-08 01:05:37 +08:00
update to 2.1.6 version
优化代码结构 增加更多提示语 修复处理空格消息时的报错 修复上下文的bug
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user