mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-08 01:05:37 +08:00
set modules config to array add subdir index.html update Example of Hello.php add Exception tester for TimerMiddleware.php add keyword for @CQCommand rename OnWorkerStart.php to OnStart.php remove SwooleEventAfter.php rename HandleEvent.php to SwooleHandler.php set ZMRobot callback mode default to true add getNextArg() and getFullArg() add EventDispatcher.php logger set Exception all based from ZMException fix recursive bug for Response.php add single_bot_mode add SingletonTrait.php add bot() function
54 lines
1.1 KiB
PHP
54 lines
1.1 KiB
PHP
<?php
|
|
|
|
|
|
namespace ZM\Annotation\CQ;
|
|
|
|
use Doctrine\Common\Annotations\Annotation\Target;
|
|
use ZM\Annotation\AnnotationBase;
|
|
use ZM\Annotation\Interfaces\Level;
|
|
|
|
/**
|
|
* Class CQCommand
|
|
* @Annotation
|
|
* @Target("ALL")
|
|
* @package ZM\Annotation\CQ
|
|
*/
|
|
class CQCommand extends AnnotationBase implements Level
|
|
{
|
|
/** @var string */
|
|
public $match = "";
|
|
/** @var string */
|
|
public $pattern = "";
|
|
/** @var string */
|
|
public $regex = "";
|
|
/** @var string */
|
|
public $start_with = "";
|
|
/** @var string */
|
|
public $end_with = "";
|
|
/** @var string */
|
|
public $keyword = "";
|
|
/** @var string[] */
|
|
public $alias = [];
|
|
/** @var string */
|
|
public $message_type = "";
|
|
/** @var int */
|
|
public $user_id = 0;
|
|
/** @var int */
|
|
public $group_id = 0;
|
|
/** @var int */
|
|
public $discuss_id = 0;
|
|
/** @var int */
|
|
public $level = 20;
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getLevel(): int { return $this->level; }
|
|
|
|
/**
|
|
* @param int $level
|
|
*/
|
|
public function setLevel(int $level) { $this->level = $level; }
|
|
|
|
}
|