laniakea v0.6
This commit is contained in:
@@ -11,10 +11,11 @@ import (
|
||||
|
||||
func RegisterService(bot *laniakea.Bot) {
|
||||
p := laniakea.NewPlugin("service")
|
||||
p.Payload(generalClose, "general.close")
|
||||
p.AddPayload(p.NewCommand(generalClose, "general.close"))
|
||||
|
||||
p.Command(about, "about", "о боте")
|
||||
bot.AddPlugins(p.Build())
|
||||
p.AddCommand(p.NewCommand(about, "about"))
|
||||
p.AddCommand(p.NewCommand(about, "о боте").SkipCommandAutoGen())
|
||||
bot.AddPlugins(p)
|
||||
}
|
||||
|
||||
func about(ctx *laniakea.MsgContext, _ *laniakea.DatabaseContext) {
|
||||
|
||||
Reference in New Issue
Block a user