From b726158ac408ae1e389c5bc0977b78feb18a1d56 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Fri, 10 Feb 2017 17:19:09 +0000 Subject: [PATCH] Fix message types --- src/github.com/matrix-org/go-neb/services/google/google.go | 2 +- src/github.com/matrix-org/go-neb/services/guggy/guggy.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/go-neb/services/google/google.go b/src/github.com/matrix-org/go-neb/services/google/google.go index 8044a62..030a861 100644 --- a/src/github.com/matrix-org/go-neb/services/google/google.go +++ b/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 } diff --git a/src/github.com/matrix-org/go-neb/services/guggy/guggy.go b/src/github.com/matrix-org/go-neb/services/guggy/guggy.go index c027544..374b430 100644 --- a/src/github.com/matrix-org/go-neb/services/guggy/guggy.go +++ b/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 }