Documentation
¶
Index ¶
- type Parser
- func (p *Parser) AtCheck() bool
- func (p *Parser) CommandName() string
- func (p *Parser) CommandPrefix() string
- func (p *Parser) GetArgs() []string
- func (p *Parser) GetAtArgs() []int64
- func (p *Parser) GetCmd() string
- func (p *Parser) GetCmdArgs() []string
- func (p *Parser) Parse(elems []message.IMessageElement)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
Command string
Args []string
// AtTarget 记录消息开头的@
AtTarget int64
// AtArgs 记录命令后的@
AtArgs []int64
// contains filtered or unexported fields
}
func (*Parser) CommandName ¶ added in v1.0.5
CommandName 返回command本身的名字,不包括command prefix
func (*Parser) CommandPrefix ¶ added in v1.0.7
func (*Parser) GetCmdArgs ¶
func (*Parser) Parse ¶
func (p *Parser) Parse(elems []message.IMessageElement)
Click to show internal directories.
Click to hide internal directories.