Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Plugin = absdk.Define(absdk.Spec[Config]{ Manifest: absdk.Manifest{Name: "hello_example", Version: "0.1.0", Description: "最小命令插件示例"}, DefaultConfig: Config{ Command: "hello", Greeting: "你好,我是 AnyBot 插件。", }, Setup: func(ctx *absdk.Context, cfg Config) error { ctx.Command(cfg.Command). Name("command"). Handle(func(c *absdk.EventContext) error { _, err := c.ReplyText(cfg.Greeting) return err }) return nil }, })
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.