Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fced4e05 authored by Qwexta's avatar Qwexta
Browse files

update: retruns the package name instead of the tag

parent a4e4f295
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ func randomizeResponse(pack plugins.Package, tag, locale string) (r bridge.Respo
		if len >= 1 {
			rand.Seed(time.Now().UnixNano())
			response := reponse.Messages[rand.Intn(len)]
			return r.Init(tag, response)
			return r.Init(pack.Name, response)
		}
	}
	return r.Init(DontUnderstand, util.GetMessage(locale, DontUnderstand))
+2 −2
Original line number Diff line number Diff line
@@ -7,8 +7,8 @@ import (

// Response represent a Json object that will be returned by the Modules
type Response struct {
	Tag      string                 `json:"tag"`
	Response string                 `json:"Response"`
	Tag      string                 `json:"package"`
	Response string                 `json:"response"`
	Data     map[string]interface{} `json:"data"`
}