Documentation ¶
Index ¶
- func Background(hs ...hugot.BackgroundHandler) error
- func Command(c *command.Handler)
- func HandleHTTP(h hugot.WebHookHandler)
- func Hears(hs ...hears.Hearer) error
- func ListenAndServe(ctx context.Context, h hugot.Handler, a hugot.Adapter, as ...hugot.Adapter)
- func Raw(hs ...hugot.Handler) error
- func SetURL(b *url.URL)
- func URL() *url.URL
- type Bot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Background ¶
func Background(hs ...hugot.BackgroundHandler) error
Background adds the provided handler to the Mux of the DefaultBot.
func HandleHTTP ¶
func HandleHTTP(h hugot.WebHookHandler)
HandleHTTP adds the provided handler to the Mux of the DefaultBot.
func ListenAndServe ¶
ListenAndServe runs the DefaultBot handler loop.
Types ¶
Click to show internal directories.
Click to hide internal directories.