Documentation
¶
Index ¶
- type Config
- type MatcherWrapper
- func (mw *MatcherWrapper) Finish(ctx *zero.Ctx, message interface{})
- func (mw *MatcherWrapper) FinishChain(ctx *zero.Ctx, message ...message.MessageSegment)
- func (mw *MatcherWrapper) Got(key, prompt string, handler zero.Handler) *MatcherWrapper
- func (mw *MatcherWrapper) Handle(handler zero.Handler) *MatcherWrapper
- func (mw *MatcherWrapper) Ok() *MatcherWrapper
- func (mw *MatcherWrapper) SetArgParser(parser zero.Handler) *MatcherWrapper
- func (mw *MatcherWrapper) SetBlock(block bool) *MatcherWrapper
- func (mw *MatcherWrapper) SetPriority(Pri int) *MatcherWrapper
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
NickName []string `yaml:"nickname"`
CommandPrefix string `yaml:"command_prefix"`
SuperUsers []string `yaml:"super_users"`
ExpireDuration int `yaml:"expire_duration"`
AccessToken string `yaml:"access_token"`
Host string `yaml:"host"`
Port int `yaml:"port"`
}
var HsoConfig Config
type MatcherWrapper ¶
func (*MatcherWrapper) Finish ¶
func (mw *MatcherWrapper) Finish(ctx *zero.Ctx, message interface{})
func (*MatcherWrapper) FinishChain ¶
func (mw *MatcherWrapper) FinishChain(ctx *zero.Ctx, message ...message.MessageSegment)
func (*MatcherWrapper) Got ¶
func (mw *MatcherWrapper) Got(key, prompt string, handler zero.Handler) *MatcherWrapper
func (*MatcherWrapper) Handle ¶
func (mw *MatcherWrapper) Handle(handler zero.Handler) *MatcherWrapper
func (*MatcherWrapper) Ok ¶
func (mw *MatcherWrapper) Ok() *MatcherWrapper
func (*MatcherWrapper) SetArgParser ¶
func (mw *MatcherWrapper) SetArgParser(parser zero.Handler) *MatcherWrapper
func (*MatcherWrapper) SetBlock ¶
func (mw *MatcherWrapper) SetBlock(block bool) *MatcherWrapper
func (*MatcherWrapper) SetPriority ¶
func (mw *MatcherWrapper) SetPriority(Pri int) *MatcherWrapper
type Service ¶
func NewService ¶
func (*Service) OnCommandGroup ¶
func (sv *Service) OnCommandGroup(commands []string, rules ...zero.Rule) *MatcherWrapper
Click to show internal directories.
Click to hide internal directories.