...

Package guggy

import "github.com/matrix-org/go-neb/services/guggy"
Overview
Index

Overview ▾

Package guggy implements a Service which adds !commands for Guggy.

Constants

const ServiceType = "guggy"

ServiceType of the Guggy service

type Service

type Service struct {
    types.DefaultService
    // The Guggy API key to use when making HTTP requests to Guggy.
    APIKey string `json:"api_key"`
}

Service contains the Config fields for the Guggy service.

Example request:

{
    "api_key": "fkweugfyuwegfweyg"
}

func (*Service) Commands

func (s *Service) Commands(client *matrix.Client) []types.Command

Commands supported:

!guggy some search query without quotes

Responds with a suitable GIF into the same room as the command.