gmessages/libgm/misc.go

25 lines
447 B
Go
Raw Normal View History

2023-06-30 11:05:33 +00:00
package libgm
2023-06-30 09:54:08 +00:00
import (
"os"
"go.mau.fi/mautrix-gmessages/libgm/builders"
"go.mau.fi/mautrix-gmessages/libgm/util"
)
type Misc struct {
client *Client
}
func (m *Misc) TenorSearch(searchOpts *builders.TenorSearch) (interface{}, error) {
searchQuery, buildErr := searchOpts.Build()
if buildErr != nil {
return nil, buildErr
}
uri := util.TENOR_SEARCH_GIF + searchQuery
2023-06-30 11:48:50 +00:00
m.client.Logger.Debug().Msg(uri)
2023-06-30 09:54:08 +00:00
os.Exit(1)
return nil, nil
}