mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
Re-fix the last no-message-response bug
This commit is contained in:
@@ -30,7 +30,7 @@ class ConsoleApplication extends Application
|
|||||||
{
|
{
|
||||||
public const VERSION_ID = 454;
|
public const VERSION_ID = 454;
|
||||||
|
|
||||||
public const VERSION = '2.7.3';
|
public const VERSION = '2.7.5';
|
||||||
|
|
||||||
private static $obj;
|
private static $obj;
|
||||||
|
|
||||||
|
|||||||
@@ -212,10 +212,10 @@ class OnWorkerStart implements SwooleEvent
|
|||||||
if ($obb_onebot['status']) {
|
if ($obb_onebot['status']) {
|
||||||
Console::debug('OneBot support enabled, listening OneBot event(3).');
|
Console::debug('OneBot support enabled, listening OneBot event(3).');
|
||||||
$obj = new OnMessageEvent();
|
$obj = new OnMessageEvent();
|
||||||
|
$obj->connect_type = 'qq';
|
||||||
$obj->class = QQBot::class;
|
$obj->class = QQBot::class;
|
||||||
$obj->method = 'handleByEvent';
|
$obj->method = 'handleByEvent';
|
||||||
$obj->level = $obb_onebot['message_level'] ?? 99;
|
$obj->level = $obb_onebot['message_level'] ?? 99;
|
||||||
$obj->rule = 'connectIsQQ()';
|
|
||||||
EventManager::addEvent(OnMessageEvent::class, $obj);
|
EventManager::addEvent(OnMessageEvent::class, $obj);
|
||||||
if ($obb_onebot['single_bot_mode']) {
|
if ($obb_onebot['single_bot_mode']) {
|
||||||
LightCacheInside::set('connect', 'conn_fd', -1);
|
LightCacheInside::set('connect', 'conn_fd', -1);
|
||||||
|
|||||||
Reference in New Issue
Block a user