small fix
This commit is contained in:
@@ -4,10 +4,11 @@ import "git.nix13.pw/scuroneko/laniakea"
|
|||||||
|
|
||||||
func RegisterService(bot *laniakea.Bot) {
|
func RegisterService(bot *laniakea.Bot) {
|
||||||
p := laniakea.NewPlugin("service")
|
p := laniakea.NewPlugin("service")
|
||||||
p = p.Payload(generalClose, "general.close")
|
p.Payload(generalClose, "general.close")
|
||||||
bot.AddPlugins(p.Build())
|
bot.AddPlugins(p.Build())
|
||||||
}
|
}
|
||||||
|
|
||||||
func generalClose(ctx *laniakea.MsgContext, _ *laniakea.DatabaseContext) {
|
func generalClose(ctx *laniakea.MsgContext, _ *laniakea.DatabaseContext) {
|
||||||
ctx.CallbackDelete()
|
ctx.CallbackDelete()
|
||||||
|
ctx.AnswerCbQuery()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user