|
Zhamao Framework
3.0.0-beta1
A high-performance chatbot + web framework
|
Public 成员函数 | |
| __construct (public $name='', public $match='', public $pattern='', public $regex='', public $start_with='', public $end_with='', public $keyword='', public $alias=[], public $detail_type='', public $user_id='', public $group_id='', public $level=20) | |
| withArgument (string $name, string $description='', string $type='string', bool $required=false, string $prompt='', string $default='', int $timeout=60, int $error_prompt_policy=1) | |
| withArgumentObject (CommandArgument $argument) | |
| getLevel () | |
| setLevel ($level) | |
| getArguments () | |
Public 成员函数 继承自 AnnotationBase | |
| __toString () | |
| on (\Closure|callable|string $method) | |
| getIterator () | |
| isInGroup (string $name) | |
| addGroup (string $name) | |
| getGroups () | |
静态 Public 成员函数 | |
| static | make ( $name='', $match='', $pattern='', $regex='', $start_with='', $end_with='', $keyword='', $alias=[], $message_type='', $user_id='', $group_id='', $level=20) |
额外继承的成员函数 | |
成员变量 继承自 AnnotationBase | |
| Closure string array | $method = '' |
| $class = '' | |
| array | $group = [] |
Class BotCommand 机器人指令注解
@Annotation @NamedArgumentConstructor() @Target("METHOD")
| __construct | ( | public | $name = '', |
| public | $match = '', |
||
| public | $pattern = '', |
||
| public | $regex = '', |
||
| public | $start_with = '', |
||
| public | $end_with = '', |
||
| public | $keyword = '', |
||
| public | $alias = [], |
||
| public | $detail_type = '', |
||
| public | $user_id = '', |
||
| public | $group_id = '', |
||
| public | $level = 20 |
||
| ) |
| string[] | $alias |
| getArguments | ( | ) |
| getLevel | ( | ) |
实现了 Level.
|
static |
| setLevel | ( | $level | ) |
| int | $level |
实现了 Level.
| withArgument | ( | string | $name, |
| string | $description = '', |
||
| string | $type = 'string', |
||
| bool | $required = false, |
||
| string | $prompt = '', |
||
| string | $default = '', |
||
| int | $timeout = 60, |
||
| int | $error_prompt_policy = 1 |
||
| ) |
| InvalidArgumentException | |
| ZMKnownException |
| withArgumentObject | ( | CommandArgument | $argument | ) |