horsebot: make skill responses ephemeral with share button

This commit is contained in:
2026-03-09 11:09:53 -04:00
parent 63659a4934
commit e08580925d
2 changed files with 30 additions and 8 deletions

View File

@@ -84,7 +84,8 @@ func main() {
r.Route("/skill", func(r handler.Router) {
r.SlashCommand("/", skillSrv.slash)
r.Autocomplete("/", skillSrv.autocomplete)
r.ButtonComponent("/{id}", skillSrv.button)
r.ButtonComponent("/swap/{id}", skillSrv.button)
r.ButtonComponent("/share/{id}", skillSrv.share)
})
opts := []bot.ConfigOpt{bot.WithDefaultGateway(), bot.WithEventListeners(r)}