Browse Source

Fix message types

pull/155/head
Richard Lewis 7 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
if imgURL == "" {
return gomatrix.TextMessage{
MsgType: "m.text.notice",
MsgType: "m.notice",
Body: "No image found!",
}, 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 == "" {
return gomatrix.TextMessage{
MsgType: "m.text.notice",
MsgType: "m.notice",
Body: "No GIF found!",
}, nil
}

Loading…
Cancel
Save