refactor bot action sender, add BotMap to mark bot

This commit is contained in:
crazywhalecc
2023-03-05 14:35:59 +08:00
committed by Jerry
parent 8bb4421a70
commit fb17efdc52
7 changed files with 270 additions and 49 deletions

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace ZM\Context;
use ZM\Context\Trait\BotActionTrait;
/**
* 机器人裸连接的上下文
*/
class BotConnectContext
{
use BotActionTrait;
private ?array $self = null;
public function __construct(private int $flag, private int $fd)
{
}
public function getFd(): int
{
return $this->fd;
}
public function getFlag(): int
{
return $this->flag;
}
}