remove references to hi

This commit is contained in:
Aaron Bieber 2020-02-05 07:56:18 -07:00
parent 79dff47957
commit d2a3667d3d

View File

@ -9,7 +9,7 @@ import (
"github.com/matrix-org/gomatrix" "github.com/matrix-org/gomatrix"
) )
// BotSnack responds to hi messages // BotSnack responds to botsnack messages
type BotSnack struct { type BotSnack struct {
} }
@ -31,7 +31,7 @@ func (h *BotSnack) resp() string {
} }
// RespondText to hi events // RespondText to botsnack events
func (h *BotSnack) RespondText(c *gomatrix.Client, ev *gomatrix.Event, user, post string) { func (h *BotSnack) RespondText(c *gomatrix.Client, ev *gomatrix.Event, user, post string) {
u := NameRE.ReplaceAllString(user, "$1") u := NameRE.ReplaceAllString(user, "$1")
if ToMe(u, post) { if ToMe(u, post) {
@ -42,7 +42,7 @@ func (h *BotSnack) RespondText(c *gomatrix.Client, ev *gomatrix.Event, user, pos
} }
} }
// Name hi // Name BotSnack
func (h *BotSnack) Name() string { func (h *BotSnack) Name() string {
return "BotSnack" return "BotSnack"
} }