Browse Source

Fix message types

pull/155/head
Richard Lewis 8 years ago
parent
commit
b726158ac4
  1. 2
      src/github.com/matrix-org/go-neb/services/google/google.go
  2. 2
      src/github.com/matrix-org/go-neb/services/guggy/guggy.go

2
src/github.com/matrix-org/go-neb/services/google/google.go

@ -109,7 +109,7 @@ func (s *Service) cmdGoogleImgSearch(client *gomatrix.Client, roomID, userID str
var imgURL = searchResult.Link var imgURL = searchResult.Link
if imgURL == "" { if imgURL == "" {
return gomatrix.TextMessage{ return gomatrix.TextMessage{
MsgType: "m.text.notice",
MsgType: "m.notice",
Body: "No image found!", Body: "No image found!",
}, nil }, nil
} }

2
src/github.com/matrix-org/go-neb/services/guggy/guggy.go

@ -69,7 +69,7 @@ func (s *Service) cmdGuggy(client *gomatrix.Client, roomID, userID string, args
if gifResult.GIF == "" { if gifResult.GIF == "" {
return gomatrix.TextMessage{ return gomatrix.TextMessage{
MsgType: "m.text.notice",
MsgType: "m.notice",
Body: "No GIF found!", Body: "No GIF found!",
}, nil }, nil
} }

Loading…
Cancel
Save